@agoric/xsnap 0.14.3-u18.0 → 0.14.3-u18.1

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/api.js CHANGED
@@ -7,7 +7,7 @@
7
7
  * Also, update golden master test/xs-perf.test.js to reflect new meter
8
8
  * version.
9
9
  */
10
- export const METER_TYPE = 'xs-meter-32';
10
+ export const METER_TYPE = 'xs-meter-33';
11
11
 
12
12
  export const ExitCode = {
13
13
  E_UNKNOWN_ERROR: -1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/xsnap",
3
- "version": "0.14.3-u18.0",
3
+ "version": "0.14.3-u18.1",
4
4
  "description": "Snapshotting VM worker based on Moddable's XS Javascript engine",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -24,29 +24,29 @@
24
24
  "lint:types": "tsc",
25
25
  "lint-fix": "eslint --fix 'src/**/*.js' 'test/**/*.js' api.js",
26
26
  "test": "ava",
27
- "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
27
+ "test:c8": "c8 --all $C8_OPTIONS ava",
28
28
  "test:xs": "exit 0"
29
29
  },
30
30
  "dependencies": {
31
- "@agoric/internal": "^0.4.0-u18.0",
32
- "@agoric/xsnap-lockdown": "^0.14.1-u18.0",
33
- "@endo/bundle-source": "^3.4.2",
34
- "@endo/errors": "^1.2.7",
35
- "@endo/eventual-send": "^1.2.7",
36
- "@endo/init": "^1.1.6",
37
- "@endo/netstring": "^1.0.12",
38
- "@endo/promise-kit": "^1.1.7",
39
- "@endo/stream": "^1.2.7",
40
- "@endo/stream-node": "^1.1.7",
31
+ "@agoric/internal": "^0.4.0-u18.1",
32
+ "@agoric/xsnap-lockdown": "^0.14.1-u18.1",
33
+ "@endo/bundle-source": "^3.5.0",
34
+ "@endo/errors": "^1.2.8",
35
+ "@endo/eventual-send": "^1.2.8",
36
+ "@endo/init": "^1.1.7",
37
+ "@endo/netstring": "^1.0.13",
38
+ "@endo/promise-kit": "^1.1.8",
39
+ "@endo/stream": "^1.2.8",
40
+ "@endo/stream-node": "^1.1.8",
41
41
  "glob": "^7.1.6",
42
42
  "tmp": "^0.2.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@endo/base64": "^1.0.8",
46
- "@endo/nat": "^5.0.12",
45
+ "@endo/base64": "^1.0.9",
46
+ "@endo/nat": "^5.0.13",
47
47
  "@types/glob": "^8.1.0",
48
48
  "ava": "^5.3.0",
49
- "c8": "^9.1.0"
49
+ "c8": "^10.1.2"
50
50
  },
51
51
  "files": [
52
52
  "LICENSE*",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 93.51
80
80
  },
81
- "gitHead": "c22e7250188bbdb07bc021dffdb88af0309a7aa8"
81
+ "gitHead": "f8c45b8a2e29a51522a81a6692af25b2d7f6b50f"
82
82
  }
package/src/avaXS.js CHANGED
@@ -112,7 +112,7 @@ async function runTestScript(
112
112
  /**
113
113
  * Handle callback "command" from xsnap subprocess.
114
114
  *
115
- * @type { (msg: ArrayBuffer) => Promise<ArrayBuffer> }
115
+ * @type { (msg: ArrayBuffer) => Promise<Uint8Array<ArrayBufferLike>> }
116
116
  */
117
117
  async function handleCommand(message) {
118
118
  /**
package/src/globals.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare var issueCommand: (msg: ArrayBuffer) => ArrayBuffer;
1
+ declare var issueCommand: (msg: ArrayBufferLike) => ArrayBuffer;
2
2
 
3
3
  namespace global {
4
- declare var issueCommand: (msg: ArrayBuffer) => ArrayBuffer;
4
+ declare var issueCommand: (msg: ArrayBufferLike) => ArrayBuffer;
5
5
  }
package/src/xsnap.js CHANGED
@@ -501,7 +501,6 @@ export async function xsnap(options) {
501
501
  if (cleaned) return;
502
502
  cleaned = true;
503
503
  sourceStream.unpipe(output);
504
- // eslint-disable-next-line no-use-before-define
505
504
  output.off('data', onData);
506
505
  output.end();
507
506
  };