@agoric/internal 0.3.3-u11.0 → 0.3.3-u11wf.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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [0.3.3-u11wf.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/internal@0.3.3-u11.0...@agoric/internal@0.3.3-u11wf.0) (2023-09-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **internal:** fakeStorage.getBody() supports index other than -1 ([d2e05c4](https://github.com/Agoric/agoric-sdk/commit/d2e05c43dcd5dfa3719feecc0b303b8294efeef0))
12
+
13
+
14
+
6
15
  ### [0.3.3-u11.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/internal@0.3.2...@agoric/internal@0.3.3-u11.0) (2023-08-24)
7
16
 
8
17
  **Note:** Version bump only for package @agoric/internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/internal",
3
- "version": "0.3.3-u11.0",
3
+ "version": "0.3.3-u11wf.0",
4
4
  "description": "Externally unsupported utilities internal to agoric-sdk",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -20,17 +20,17 @@
20
20
  "lint:types": "tsc -p jsconfig.json"
21
21
  },
22
22
  "dependencies": {
23
- "@agoric/zone": "^0.2.3-u11.0",
24
- "@endo/far": "^0.2.18",
25
- "@endo/marshal": "^0.8.5",
26
- "@endo/patterns": "^0.2.2",
27
- "@endo/promise-kit": "^0.2.56",
28
- "@endo/stream": "^0.3.25",
23
+ "@agoric/zone": "^0.2.3-u11wf.0",
24
+ "@endo/far": "0.2.18",
25
+ "@endo/marshal": "0.8.5",
26
+ "@endo/patterns": "0.2.2",
27
+ "@endo/promise-kit": "0.2.56",
28
+ "@endo/stream": "0.3.25",
29
29
  "anylogger": "^0.21.0",
30
30
  "jessie.js": "^0.3.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@endo/init": "^0.5.56",
33
+ "@endo/init": "0.5.56",
34
34
  "ava": "^5.2.0",
35
35
  "tsd": "^0.28.1"
36
36
  },
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "92b6cd72484079b0349d8ccfa4510aeb820e8d67"
45
+ "gitHead": "faf9ba6ab8b2b69bf25f435f262f0b5bd2f2bc97"
46
46
  }
@@ -44,9 +44,10 @@ export function makeMockChainStorageRoot(): {
44
44
  *
45
45
  * @param {string} path
46
46
  * @param {import('./lib-chainStorage.js').Marshaller} marshaller
47
+ * @param {number} [index]
47
48
  * @returns {unknown}
48
49
  */
49
- getBody: (path: string, marshaller?: import('./lib-chainStorage.js').Marshaller) => unknown;
50
+ getBody: (path: string, marshaller?: import('./lib-chainStorage.js').Marshaller, index?: number | undefined) => unknown;
50
51
  keys: () => string[];
51
52
  getPath(): string;
52
53
  getStoreKey(): Promise<import("./lib-chainStorage.js").VStorageKey>;
@@ -63,9 +64,10 @@ export function makeMockChainStorageRoot(): {
63
64
  *
64
65
  * @param {string} path
65
66
  * @param {import('./lib-chainStorage.js').Marshaller} marshaller
67
+ * @param {number} [index]
66
68
  * @returns {unknown}
67
69
  */
68
- getBody: (path: string, marshaller?: import('./lib-chainStorage.js').Marshaller) => unknown;
70
+ getBody: (path: string, marshaller?: import('./lib-chainStorage.js').Marshaller, index?: number | undefined) => unknown;
69
71
  keys: () => string[];
70
72
  getPath(): string;
71
73
  getStoreKey(): Promise<import("./lib-chainStorage.js").VStorageKey>;
@@ -1 +1 @@
1
- {"version":3,"file":"storage-test-utils.d.ts","sourceRoot":"","sources":["storage-test-utils.js"],"names":[],"mappings":"AAkCO,yCAHI,MAAM,UACN,MAAM,wDAGC;AAElB;;;GAGG;AACH;;;;;EAEG;AAsBW,+CAAU,GAAG,GAAK,GAAG,CAAA;AAgC5B,6CAHI,MAAM,gBACN;;eAAwC,CAAC,CAAC;;;;;;;;;;;;;;;;;;yBAyBvC,OAAO,4BAA4B,EAAE,cAAc;;;;EAoFhE;AAIM;IAIH;;;;;;;;;OASG;oBAHQ,MAAM,eACN,OAAO,uBAAuB,EAAE,UAAU,KACxC,OAAO;;;;;;;;;IARpB;;;;;;;;;OASG;oBAHQ,MAAM,eACN,OAAO,uBAAuB,EAAE,UAAU,KACxC,OAAO;;;;;;;;GAWvB;;;;;;;;;;;;;;;;;;eAnNiF,CAAC,KAAK,CAAC;;;6BA0L3E,WAAY,yBAAyB,CAAC;mCA0BtC,WAAW,+BAA+B,CAAC"}
1
+ {"version":3,"file":"storage-test-utils.d.ts","sourceRoot":"","sources":["storage-test-utils.js"],"names":[],"mappings":"AAkCO,yCAHI,MAAM,UACN,MAAM,wDAGC;AAElB;;;GAGG;AACH;;;;;EAEG;AAsBW,+CAAU,GAAG,GAAK,GAAG,CAAA;AAgC5B,6CAHI,MAAM,gBACN;;eAAwC,CAAC,CAAC;;;;;;;;;;;;;;;;;;yBAyBvC,OAAO,4BAA4B,EAAE,cAAc;;;;EAoFhE;AAIM;IAIH;;;;;;;;;;OAUG;oBAJQ,MAAM,eACN,OAAO,uBAAuB,EAAE,UAAU,iCAExC,OAAO;;;;;;;;;IATpB;;;;;;;;;;OAUG;oBAJQ,MAAM,eACN,OAAO,uBAAuB,EAAE,UAAU,iCAExC,OAAO;;;;;;;;GAWvB;;;;;;;;;;;;;;;;;;eApNiF,CAAC,KAAK,CAAC;;;6BA0L3E,WAAY,yBAAyB,CAAC;mCA2BtC,WAAW,+BAA+B,CAAC"}
@@ -218,14 +218,15 @@ export const makeMockChainStorageRoot = () => {
218
218
  *
219
219
  * @param {string} path
220
220
  * @param {import('./lib-chainStorage.js').Marshaller} marshaller
221
+ * @param {number} [index]
221
222
  * @returns {unknown}
222
223
  */
223
- getBody: (path, marshaller = defaultMarshaller) => {
224
+ getBody: (path, marshaller = defaultMarshaller, index = -1) => {
224
225
  data.size || Fail`no data in storage`;
225
226
  /** @type {ReturnType<typeof import('@endo/marshal').makeMarshal>['fromCapData']} */
226
227
  const fromCapData = (...args) =>
227
228
  Reflect.apply(marshaller.fromCapData, marshaller, args);
228
- return unmarshalFromVstorage(data, path, fromCapData);
229
+ return unmarshalFromVstorage(data, path, fromCapData, index);
229
230
  },
230
231
  keys: () => [...data.keys()],
231
232
  });