@agoric/swingset-liveslots 0.10.3-u20.0 → 0.10.3-u21.0.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/package.json +11 -11
- package/src/capdata.d.ts +7 -3
- package/src/capdata.d.ts.map +1 -1
- package/src/capdata.js +16 -8
- package/tools/fakeVirtualSupport.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/swingset-liveslots",
|
|
3
|
-
"version": "0.10.3-
|
|
3
|
+
"version": "0.10.3-u21.0.1",
|
|
4
4
|
"description": "SwingSet ocap support layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
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": "
|
|
23
|
-
"@agoric/store": "
|
|
22
|
+
"@agoric/internal": "0.4.0-u21.0.1",
|
|
23
|
+
"@agoric/store": "0.9.3-u21.0.1",
|
|
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": "
|
|
37
|
+
"@agoric/kmarshal": "0.1.1-u21.0.1",
|
|
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.
|
|
69
|
+
"atLeast": 75.21
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "16519b2de1eb2afda2b4ec866f55eadd4bb18223"
|
|
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
|
-
* @
|
|
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
|
|
13
|
+
* @returns {asserts specimen is import('./types.js').SwingSetCapData}
|
|
10
14
|
*/
|
|
11
|
-
export function insistCapData(
|
|
15
|
+
export function insistCapData(specimen: any): asserts specimen is import("./types.js").SwingSetCapData;
|
|
12
16
|
//# sourceMappingURL=capdata.d.ts.map
|
package/src/capdata.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capdata.d.ts","sourceRoot":"","sources":["capdata.js"],"names":[],"mappings":"AAEA
|
|
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
|
-
* @
|
|
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
|
|
16
|
+
* @returns {asserts specimen is import('./types.js').SwingSetCapData}
|
|
12
17
|
*/
|
|
13
|
-
export function insistCapData(
|
|
14
|
-
typeof
|
|
15
|
-
Fail`capdata has non-string .body ${
|
|
16
|
-
Array.isArray(
|
|
17
|
-
Fail`capdata has non-Array slots ${
|
|
18
|
-
|
|
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;;;
|
|
1
|
+
{"version":3,"file":"fakeVirtualSupport.d.ts","sourceRoot":"","sources":["fakeVirtualSupport.js"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuQC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcC;AAED;;;4IA5HwB,GAAI,gDAE1B,GAAC;;EAyIF;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,GAAG;oIAOA,GAC1B,uJAGG,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gJAvHkB,GAAI,gDAE1B,GAAC;;;EAqKF;AAED;;;;;;;;iEApG+B,GAC9B,+IAKuB,GAAG;sEAQd,GAAG,uJAKV,GAAG;2HAeL,GAAG,+IAKiB,GAAG;gIAOA,GAC1B,uJAGG,GAAE;;;;;;;;;;;;;;;;;;;EA0DL;AAED;;;;;;;;;;;;EAMC"}
|