@agoric/swingset-liveslots 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.
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@agoric/swingset-liveslots",
3
- "version": "0.10.3-u20.0",
3
+ "version": "0.10.3-u21.0",
4
4
  "description": "SwingSet ocap support layer",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "engines": {
8
- "node": "^18.12 || ^20.9"
8
+ "node": "^20.9 || ^22.11"
9
9
  },
10
10
  "scripts": {
11
11
  "build": "exit 0",
12
12
  "test": "ava",
13
13
  "test:xs": "exit 0",
14
14
  "lint-fix": "yarn lint:eslint --fix",
15
- "lint": "run-s --continue-on-error lint:*",
16
- "lint:types": "tsc",
17
- "lint:eslint": "eslint .",
18
- "prepack": "tsc --build tsconfig.build.json",
15
+ "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
16
+ "lint:types": "yarn run -T tsc",
17
+ "lint:eslint": "yarn run -T eslint .",
18
+ "prepack": "yarn run -T tsc --build tsconfig.build.json",
19
19
  "postpack": "git clean -f ':!src/types-index.d.ts' '*.d.ts*' '*.tsbuildinfo'"
20
20
  },
21
21
  "dependencies": {
22
- "@agoric/internal": "^0.4.0-u20.0",
23
- "@agoric/store": "^0.9.3-u20.0",
22
+ "@agoric/internal": "workspace:*",
23
+ "@agoric/store": "workspace:*",
24
24
  "@endo/env-options": "^1.1.8",
25
25
  "@endo/errors": "^1.2.10",
26
26
  "@endo/eventual-send": "^1.3.1",
@@ -34,7 +34,7 @@
34
34
  "@endo/promise-kit": "^1.1.10"
35
35
  },
36
36
  "devDependencies": {
37
- "@agoric/kmarshal": "^0.1.1-u20.0",
37
+ "@agoric/kmarshal": "workspace:*",
38
38
  "ava": "^5.3.0"
39
39
  },
40
40
  "files": [
@@ -66,7 +66,7 @@
66
66
  "access": "public"
67
67
  },
68
68
  "typeCoverage": {
69
- "atLeast": 75.24
69
+ "atLeast": 75.21
70
70
  },
71
- "gitHead": "8e4207fa19dabf76c1f91f8779b5b5b93570ecea"
71
+ "gitHead": "e4dd46857133403d584bcf822a81817b355532f9"
72
72
  }
package/src/capdata.d.ts CHANGED
@@ -1,12 +1,16 @@
1
+ /**
2
+ * @import {assertCapData} from '@agoric/internal/src/marshal.js';
3
+ */
1
4
  /**
2
5
  * Assert function to ensure that something expected to be a capdata object
3
6
  * actually is. A capdata object should have a .body property that's a string
4
7
  * and a .slots property that's an array of strings.
5
8
  *
6
- * @param {any} capdata The object to be tested
9
+ * @see {assertCapData} for the general case
10
+ * @param {any} specimen The object to be tested
7
11
  * @throws {Error} if, upon inspection, the parameter does not satisfy the above
8
12
  * criteria.
9
- * @returns {asserts capdata is import('./types.js').SwingSetCapData}
13
+ * @returns {asserts specimen is import('./types.js').SwingSetCapData}
10
14
  */
11
- export function insistCapData(capdata: any): asserts capdata is import("./types.js").SwingSetCapData;
15
+ export function insistCapData(specimen: any): asserts specimen is import("./types.js").SwingSetCapData;
12
16
  //# sourceMappingURL=capdata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capdata.d.ts","sourceRoot":"","sources":["capdata.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,uCALW,GAAG,GAGD,QAAQ,OAAO,IAAI,OAAO,YAAY,EAAE,eAAe,CAQnE"}
1
+ {"version":3,"file":"capdata.d.ts","sourceRoot":"","sources":["capdata.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,wCALW,GAAG,GAGD,QAAQ,QAAQ,IAAI,OAAO,YAAY,EAAE,eAAe,CAWpE"}
package/src/capdata.js CHANGED
@@ -1,19 +1,27 @@
1
1
  import { Fail } from '@endo/errors';
2
2
 
3
+ /**
4
+ * @import {assertCapData} from '@agoric/internal/src/marshal.js';
5
+ */
6
+
3
7
  /**
4
8
  * Assert function to ensure that something expected to be a capdata object
5
9
  * actually is. A capdata object should have a .body property that's a string
6
10
  * and a .slots property that's an array of strings.
7
11
  *
8
- * @param {any} capdata The object to be tested
12
+ * @see {assertCapData} for the general case
13
+ * @param {any} specimen The object to be tested
9
14
  * @throws {Error} if, upon inspection, the parameter does not satisfy the above
10
15
  * criteria.
11
- * @returns {asserts capdata is import('./types.js').SwingSetCapData}
16
+ * @returns {asserts specimen is import('./types.js').SwingSetCapData}
12
17
  */
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
18
+ export function insistCapData(specimen) {
19
+ typeof specimen.body === 'string' ||
20
+ Fail`capdata has non-string .body ${specimen.body}`;
21
+ Array.isArray(specimen.slots) ||
22
+ Fail`capdata has non-Array slots ${specimen.slots}`;
23
+ assert(
24
+ specimen.slots.every(slot => typeof slot === 'string'),
25
+ 'All slots must be strings',
26
+ );
19
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fakeVirtualSupport.d.ts","sourceRoot":"","sources":["fakeVirtualSupport.js"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuQC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcC;AAED;;;mEAhIiB,wBAAmB,iDAIZ,GAAI,gDAE1B,GAAC,4BAGc,iBAAY;kFAkDJ,iBAAY;EAoFpC;AAED;;;;;;;;;;GAUG;AACH,+CAPG;IAAyB,SAAS;IACR,oBAAoB;IACR,SAAS;IACV,OAAO;IACP,OAAO;IAClB,IAAI;CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAjFH,GAC9B,+IAKuB,GAAG;0EAQd,GAAG,uJAKV,GAAG;+HAeL,GAAG,+IAKiB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