@agoric/internal 0.3.3-dev-5c48184.0.5c48184 → 0.3.3-dev-16b3088.0.16b3088
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/internal",
|
|
3
|
-
"version": "0.3.3-dev-
|
|
3
|
+
"version": "0.3.3-dev-16b3088.0.16b3088",
|
|
4
4
|
"description": "Externally unsupported utilities internal to agoric-sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint:types": "yarn run -T tsc"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
23
|
+
"@agoric/base-zone": "0.1.1-dev-16b3088.0.16b3088",
|
|
24
24
|
"@endo/cache-map": "^1.1.0",
|
|
25
25
|
"@endo/common": "^1.2.13",
|
|
26
26
|
"@endo/compartment-mapper": "^1.6.3",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"jessie.js": "^0.3.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
41
|
+
"@agoric/cosmic-proto": "0.4.1-dev-16b3088.0.16b3088",
|
|
42
42
|
"@endo/exo": "^1.5.12",
|
|
43
43
|
"@endo/init": "^1.1.12",
|
|
44
44
|
"@endo/ses-ava": "^1.3.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"typeCoverage": {
|
|
67
67
|
"atLeast": 93.22
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "16b3088f087c41603325fb423c77b4c1a32809ed"
|
|
70
70
|
}
|
|
@@ -10,6 +10,4 @@ export function startSubprocessWorker(execPath: any, procArgs?: any[], { netstri
|
|
|
10
10
|
terminate: () => void;
|
|
11
11
|
done: Promise<any>;
|
|
12
12
|
};
|
|
13
|
-
export type IOType = import("child_process").IOType;
|
|
14
|
-
export type Writable = import("stream").Writable;
|
|
15
13
|
//# sourceMappingURL=spawnSubprocessWorker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawnSubprocessWorker.d.ts","sourceRoot":"","sources":["spawnSubprocessWorker.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spawnSubprocessWorker.d.ts","sourceRoot":"","sources":["spawnSubprocessWorker.js"],"names":[],"mappings":"AAgCA;;;;;;;;;;;EA0DC"}
|
|
@@ -8,6 +8,11 @@ import {
|
|
|
8
8
|
netstringDecoderStream,
|
|
9
9
|
} from '../netstring.js';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @import {IOType} from 'child_process'
|
|
13
|
+
* @import {Writable} from 'stream'
|
|
14
|
+
*/
|
|
15
|
+
|
|
11
16
|
// Start a subprocess from a given executable, and arrange a bidirectional
|
|
12
17
|
// message channel with a "supervisor" within that process. Return a {
|
|
13
18
|
// toChild, fromChild } pair of Streams which accept/emit hardened Arrays of
|
|
@@ -18,9 +23,6 @@ function parentLog(first, ...args) {
|
|
|
18
23
|
// console.error(`--parent: ${first}`, ...args);
|
|
19
24
|
}
|
|
20
25
|
|
|
21
|
-
/** @typedef {import('child_process').IOType} IOType */
|
|
22
|
-
/** @typedef {import('stream').Writable} Writable */
|
|
23
|
-
|
|
24
26
|
// we send on fd3, and receive on fd4. We pass fd1/2 (stdout/err) through, so
|
|
25
27
|
// console log/err from the child shows up normally. We don't use Node's
|
|
26
28
|
// built-in serialization feature ('ipc') because the child process won't
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shutdown.d.ts","sourceRoot":"","sources":["shutdown.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shutdown.d.ts","sourceRoot":"","sources":["shutdown.js"],"names":[],"mappings":"AAOO;;EA8DN;AAGM,wDAON"}
|
package/src/node/shutdown.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import anylogger from 'anylogger';
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5
|
+
// @ts-ignore TODO remove when anylogger has types
|
|
4
6
|
const console = anylogger('shutdown');
|
|
5
7
|
|
|
6
8
|
export const makeFreshShutdown = (verbose = true) => {
|