@dxos/phoenix 0.8.4-staging.ac66bdf99f → 0.9.0
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/node-esm/index.mjs +6 -37
- package/dist/lib/node-esm/index.mjs.map +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/phoenix.d.ts.map +1 -1
- package/dist/types/src/testing-utils.d.ts.map +1 -1
- package/dist/types/src/utils.d.ts.map +1 -1
- package/dist/types/src/watchdog.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -9
- package/src/phoenix.node.test.ts +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/phoenix",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Basic node daemon.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
@@ -20,9 +20,6 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"types": "dist/types/src/index.d.ts",
|
|
23
|
-
"typesVersions": {
|
|
24
|
-
"*": {}
|
|
25
|
-
},
|
|
26
23
|
"files": [
|
|
27
24
|
"bin",
|
|
28
25
|
"dist",
|
|
@@ -30,10 +27,10 @@
|
|
|
30
27
|
],
|
|
31
28
|
"dependencies": {
|
|
32
29
|
"pkg-up": "^3.1.0",
|
|
33
|
-
"@dxos/async": "0.
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
30
|
+
"@dxos/async": "0.9.0",
|
|
31
|
+
"@dxos/invariant": "0.9.0",
|
|
32
|
+
"@dxos/node-std": "0.9.0",
|
|
33
|
+
"@dxos/log": "0.9.0"
|
|
37
34
|
},
|
|
38
35
|
"publishConfig": {
|
|
39
36
|
"access": "public"
|
package/src/phoenix.node.test.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { spawn } from 'node:child_process';
|
|
6
|
-
import {
|
|
6
|
+
import { readFileSync } from 'node:fs';
|
|
7
7
|
import { join } from 'node:path';
|
|
8
8
|
import { describe, expect, onTestFinished, test } from 'vitest';
|
|
9
9
|
|
|
@@ -24,7 +24,6 @@ describe.skipIf(process.env.CI)('DaemonManager', () => {
|
|
|
24
24
|
await trigger.wait({ timeout: 1_000 });
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
// Fails on CI
|
|
28
27
|
test('start/stop detached watchdog', async () => {
|
|
29
28
|
const runId = Math.random().toString();
|
|
30
29
|
const pidFile = join(TEST_DIR, `pid-${runId}.pid`);
|
|
@@ -44,9 +43,11 @@ describe.skipIf(process.env.CI)('DaemonManager', () => {
|
|
|
44
43
|
errFile,
|
|
45
44
|
});
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
expect
|
|
46
|
+
// Poll for log content directly — the file is pre-created empty by Phoenix.start(),
|
|
47
|
+
// so polling for existence would resolve immediately before the child writes its output.
|
|
48
|
+
await expect
|
|
49
|
+
.poll(() => readFileSync(params.logFile, { encoding: 'utf-8' }), { timeout: 5000 })
|
|
50
|
+
.toContain('neverEndingProcess started');
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
// Stop
|