@agoric/xsnap 0.14.3-dev-0705f2c.0 → 0.14.3-dev-a9680dd.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/xsnap",
3
- "version": "0.14.3-dev-0705f2c.0+0705f2c",
3
+ "version": "0.14.3-dev-a9680dd.0+a9680dd",
4
4
  "description": "Snapshotting VM worker based on Moddable's XS Javascript engine",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -28,10 +28,10 @@
28
28
  "test:xs": "exit 0"
29
29
  },
30
30
  "dependencies": {
31
- "@agoric/assert": "0.6.1-dev-0705f2c.0+0705f2c",
32
- "@agoric/internal": "0.3.3-dev-0705f2c.0+0705f2c",
33
- "@agoric/xsnap-lockdown": "0.14.1-dev-0705f2c.0+0705f2c",
31
+ "@agoric/internal": "0.3.3-dev-a9680dd.0+a9680dd",
32
+ "@agoric/xsnap-lockdown": "0.14.1-dev-a9680dd.0+a9680dd",
34
33
  "@endo/bundle-source": "^3.2.3",
34
+ "@endo/errors": "^1.2.2",
35
35
  "@endo/eventual-send": "^1.2.2",
36
36
  "@endo/init": "^1.1.2",
37
37
  "@endo/netstring": "^1.0.7",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 93.95
80
80
  },
81
- "gitHead": "0705f2c34da9a89c2b3441b47f8e5bfca53a9590"
81
+ "gitHead": "a9680dd04485e4a63c4fcd588ec38d2558243877"
82
82
  }
package/src/avaXS.js CHANGED
@@ -11,7 +11,7 @@ import '@endo/init';
11
11
  import fs from 'fs';
12
12
  import { tmpName } from 'tmp';
13
13
 
14
- import { assert, q, Fail } from '@agoric/assert';
14
+ import { assert, q, Fail } from '@endo/errors';
15
15
  import { getDebugLockdownBundle } from '@agoric/xsnap-lockdown';
16
16
  import { xsnap } from './xsnap.js';
17
17
 
package/src/xsnap.js CHANGED
@@ -1,19 +1,10 @@
1
1
  /* global process */
2
2
  /* eslint no-await-in-loop: ["off"] */
3
3
 
4
- /**
5
- * @typedef {typeof import('child_process').spawn} Spawn
6
- * @import {Writable} from 'stream'
7
- */
8
-
9
- /**
10
- * @template T
11
- * @typedef {import('./defer.js').Deferred<T>} Deferred
12
- */
13
-
14
4
  import { finished } from 'stream/promises';
15
5
  import { PassThrough, Readable } from 'stream';
16
6
  import { promisify } from 'util';
7
+ import { Fail, q } from '@endo/errors';
17
8
  import { makeNetstringReader, makeNetstringWriter } from '@endo/netstring';
18
9
  import { makeNodeReader, makeNodeWriter } from '@endo/stream-node';
19
10
  import { makePromiseKit, racePromises } from '@endo/promise-kit';
@@ -21,7 +12,15 @@ import { forever } from '@agoric/internal';
21
12
  import { ErrorCode, ErrorSignal, ErrorMessage, METER_TYPE } from '../api.js';
22
13
  import { defer } from './defer.js';
23
14
 
24
- const { Fail, quote: q } = assert;
15
+ /**
16
+ * @typedef {typeof import('child_process').spawn} Spawn
17
+ * @import {Writable} from 'stream'
18
+ */
19
+
20
+ /**
21
+ * @template T
22
+ * @typedef {import('./defer.js').Deferred<T>} Deferred
23
+ */
25
24
 
26
25
  // This will need adjustment, but seems to be fine for a start.
27
26
  export const DEFAULT_CRANK_METERING_LIMIT = 1e8;