@agoric/swingset-xsnap-supervisor 0.10.3-other-dev-3eb1a1d.0 → 0.10.3-other-dev-fbe72e7.0.fbe72e7

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.
@@ -1 +1 @@
1
- 50b3ab6597809f50346d2d63367bd37ad6f7a37761ed9af50616d77a7f41293a
1
+ 4751467ce397e39f6445d34eab978d5f7d317f41dba9952b4c6fbbfd49fb9894
@@ -6,7 +6,7 @@ import {
6
6
  insistVatDeliveryObject,
7
7
  insistVatSyscallResult,
8
8
  } from '@agoric/swingset-liveslots';
9
- // import '../../types-ambient.js';
9
+
10
10
  // grumble... waitUntilQuiescent is exported and closes over ambient authority
11
11
  import { waitUntilQuiescent } from './waitUntilQuiescent.js';
12
12
  import { makeGcAndFinalize } from './gc-and-finalize.js';
@@ -100,11 +100,11 @@ const meterControl = makeMeterControl();
100
100
  /**
101
101
  * Wrap byte-level protocols with tagged array codec.
102
102
  *
103
- * @param {(cmd: ArrayBuffer) => ArrayBuffer} issueCommand as from xsnap
103
+ * @param {(cmd: ArrayBufferLike) => ArrayBuffer} issueCommand as from xsnap
104
104
  * @typedef { [unknown, ...unknown[]] } Tagged tagged array
105
105
  */
106
106
  function managerPort(issueCommand) {
107
- /** @type { (item: Tagged) => ArrayBuffer } */
107
+ /** @type { (item: Tagged) => ArrayBufferLike } */
108
108
  const encode = item => {
109
109
  let txt;
110
110
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swingset-xsnap-supervisor",
3
- "version": "0.10.3-other-dev-3eb1a1d.0+3eb1a1d",
3
+ "version": "0.10.3-other-dev-fbe72e7.0.fbe72e7",
4
4
  "description": "Supervisor/Liveslots bundle for swingset xsnap workers",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -14,23 +14,28 @@
14
14
  "build:bundle": "node scripts/build-bundle.js",
15
15
  "build": "yarn build:bundle",
16
16
  "clean": "rm -rf dist",
17
- "lint": "run-s --continue-on-error lint:*",
17
+ "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
18
18
  "lint:js": "eslint 'lib/**/*.js' 'src/**/*.js' 'scripts/**/*.js' 'test/**/*.js'",
19
- "lint:types": "tsc",
19
+ "lint:types": "yarn run -T tsc",
20
20
  "lint-fix": "eslint --fix 'lib/**/*.js' 'src/**/*.js' 'scripts/**/*.js' 'test/**/*.js'",
21
21
  "test": "ava",
22
- "test:c8": "c8 --all $C8_OPTIONS ava",
22
+ "test:c8": "c8 --all ${C8_OPTIONS:-} ava",
23
23
  "test:xs": "exit 0"
24
24
  },
25
+ "peerDependencies": {
26
+ "@agoric/swingset-liveslots": "*",
27
+ "@endo/errors": "^1.2.13",
28
+ "@endo/import-bundle": "^1.5.2",
29
+ "@endo/promise-kit": "^1.1.13"
30
+ },
25
31
  "devDependencies": {
26
- "@agoric/swingset-liveslots": "0.10.3-other-dev-3eb1a1d.0+3eb1a1d",
27
- "@endo/bundle-source": "^3.5.0",
28
- "@endo/errors": "^1.2.8",
29
- "@endo/import-bundle": "^1.3.2",
30
- "@endo/init": "^1.1.7",
31
- "@endo/marshal": "^1.6.2",
32
+ "@agoric/swingset-liveslots": "0.10.3-other-dev-fbe72e7.0.fbe72e7",
33
+ "@endo/bundle-source": "^4.1.2",
34
+ "@endo/import-bundle": "^1.5.2",
35
+ "@endo/init": "^1.1.12",
36
+ "@endo/marshal": "^1.8.0",
32
37
  "ava": "^5.3.0",
33
- "c8": "^10.1.2"
38
+ "c8": "^10.1.3"
34
39
  },
35
40
  "files": [
36
41
  "LICENSE*",
@@ -52,7 +57,10 @@
52
57
  "workerThreads": false
53
58
  },
54
59
  "typeCoverage": {
55
- "atLeast": 83.68
60
+ "atLeast": 84.6
61
+ },
62
+ "engines": {
63
+ "node": "^20.9 || ^22.11"
56
64
  },
57
- "gitHead": "3eb1a1d2d75b2b4a94807cd3bf759bc9fc531f05"
65
+ "gitHead": "fbe72e72107f9997f788674e668c660d92ec4492"
58
66
  }
package/lib/capdata.js DELETED
@@ -1,19 +0,0 @@
1
- import { Fail } from '@endo/errors';
2
-
3
- /**
4
- * Assert function to ensure that something expected to be a capdata object
5
- * actually is. A capdata object should have a .body property that's a string
6
- * and a .slots property that's an array of strings.
7
- *
8
- * @param {any} capdata The object to be tested
9
- * @throws {Error} if, upon inspection, the parameter does not satisfy the above
10
- * criteria.
11
- * @returns {asserts capdata is import('@endo/marshal').CapData<string>}
12
- */
13
- export function insistCapData(capdata) {
14
- typeof capdata.body === 'string' ||
15
- Fail`capdata has non-string .body ${capdata.body}`;
16
- Array.isArray(capdata.slots) ||
17
- Fail`capdata has non-Array slots ${capdata.slots}`;
18
- // TODO check that the .slots array elements are actually strings
19
- }