@agoric/swingset-xsnap-supervisor 0.10.3-u20.0 → 0.10.3-u21.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.
@@ -1 +1 @@
1
- 68b65e318f6faef02c69070db78783bdb20c8737a95ee5634d0ef2258f274988
1
+ dc223308b5429050de02635b0f6deaf469e4d0140298fb785496fa003f2ed016
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swingset-xsnap-supervisor",
3
- "version": "0.10.3-u20.0",
3
+ "version": "0.10.3-u21.0",
4
4
  "description": "Supervisor/Liveslots bundle for swingset xsnap workers",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -14,16 +14,16 @@
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
22
  "test:c8": "c8 --all $C8_OPTIONS ava",
23
23
  "test:xs": "exit 0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@agoric/swingset-liveslots": "^0.10.2",
26
+ "@agoric/swingset-liveslots": "workspace:*",
27
27
  "@endo/errors": "^1.2.10",
28
28
  "@endo/import-bundle": "^1.4.0",
29
29
  "@endo/promise-kit": "^1.1.10"
@@ -34,7 +34,7 @@
34
34
  "@endo/init": "^1.1.9",
35
35
  "@endo/marshal": "^1.6.4",
36
36
  "ava": "^5.3.0",
37
- "c8": "^10.1.2"
37
+ "c8": "^10.1.3"
38
38
  },
39
39
  "files": [
40
40
  "LICENSE*",
@@ -56,7 +56,7 @@
56
56
  "workerThreads": false
57
57
  },
58
58
  "typeCoverage": {
59
- "atLeast": 83.68
59
+ "atLeast": 84.6
60
60
  },
61
- "gitHead": "8e4207fa19dabf76c1f91f8779b5b5b93570ecea"
61
+ "gitHead": "e4dd46857133403d584bcf822a81817b355532f9"
62
62
  }
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
- }