@dxos/phoenix 0.7.5-main.9d2a38b → 0.7.5-main.b19bfc8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/watchdog +8 -8
- package/package.json +6 -5
package/bin/watchdog
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env -S node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { log } from '@dxos/log';
|
|
4
|
+
import { WatchDog } from '../dist/lib/node-esm/index.mjs';
|
|
5
5
|
|
|
6
6
|
const params = JSON.parse(process.argv[2]);
|
|
7
7
|
|
|
8
8
|
const watchdog = new WatchDog(params);
|
|
9
|
-
watchdog
|
|
10
|
-
|
|
11
|
-
.then(() => {
|
|
9
|
+
watchdog.start().then(
|
|
10
|
+
() => {
|
|
12
11
|
log(`Watchdog started`);
|
|
13
|
-
}
|
|
14
|
-
|
|
12
|
+
},
|
|
13
|
+
(err) => {
|
|
15
14
|
log.catch(err);
|
|
16
|
-
}
|
|
15
|
+
},
|
|
16
|
+
);
|
|
17
17
|
|
|
18
18
|
process.on('SIGINT', async () => {
|
|
19
19
|
await watchdog.stop();
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/phoenix",
|
|
3
|
-
"version": "0.7.5-main.
|
|
3
|
+
"version": "0.7.5-main.b19bfc8",
|
|
4
4
|
"description": "Basic node daemon.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "DXOS.org",
|
|
9
9
|
"sideEffects": true,
|
|
10
|
+
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
13
|
"types": "./dist/types/src/index.d.ts",
|
|
@@ -24,10 +25,10 @@
|
|
|
24
25
|
],
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"pkg-up": "^3.1.0",
|
|
27
|
-
"@dxos/async": "0.7.5-main.
|
|
28
|
-
"@dxos/
|
|
29
|
-
"@dxos/log": "0.7.5-main.
|
|
30
|
-
"@dxos/
|
|
28
|
+
"@dxos/async": "0.7.5-main.b19bfc8",
|
|
29
|
+
"@dxos/invariant": "0.7.5-main.b19bfc8",
|
|
30
|
+
"@dxos/log": "0.7.5-main.b19bfc8",
|
|
31
|
+
"@dxos/node-std": "0.7.5-main.b19bfc8"
|
|
31
32
|
},
|
|
32
33
|
"publishConfig": {
|
|
33
34
|
"access": "public"
|