@agoric/async-flow 0.1.1-dev-0705f2c.0 → 0.1.1-dev-a9680dd.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 +8 -8
- package/src/convert.js +1 -1
- package/src/endowments.d.ts +1 -1
- package/src/endowments.d.ts.map +1 -1
- package/src/endowments.js +4 -2
- package/src/equate.js +1 -1
- package/src/replay-membrane.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/async-flow",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-a9680dd.0+a9680dd",
|
|
4
4
|
"description": "Upgrade async functions at await points by replay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/Agoric/agoric-sdk",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"author": "Agoric",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/store": "0.9.3-dev-
|
|
30
|
-
"@agoric/vow": "0.1.1-dev-
|
|
27
|
+
"@agoric/base-zone": "0.1.1-dev-a9680dd.0+a9680dd",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-a9680dd.0+a9680dd",
|
|
29
|
+
"@agoric/store": "0.9.3-dev-a9680dd.0+a9680dd",
|
|
30
|
+
"@agoric/vow": "0.1.1-dev-a9680dd.0+a9680dd",
|
|
31
31
|
"@endo/common": "^1.2.2",
|
|
32
32
|
"@endo/errors": "^1.2.2",
|
|
33
33
|
"@endo/eventual-send": "^1.2.2",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@endo/promise-kit": "^1.1.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
41
|
-
"@agoric/zone": "0.2.3-dev-
|
|
40
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-a9680dd.0+a9680dd",
|
|
41
|
+
"@agoric/zone": "0.2.3-dev-a9680dd.0+a9680dd",
|
|
42
42
|
"@endo/env-options": "^1.1.4",
|
|
43
43
|
"@endo/ses-ava": "^1.2.2",
|
|
44
44
|
"ava": "^5.3.0"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"typeCoverage": {
|
|
63
63
|
"atLeast": 77.83
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "a9680dd04485e4a63c4fcd588ec38d2558243877"
|
|
66
66
|
}
|
package/src/convert.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Fail, X, annotateError, makeError, q } from '@endo/errors';
|
|
2
2
|
import { throwLabeled } from '@endo/common/throw-labeled.js';
|
|
3
|
+
import { objectMap } from '@endo/common/object-map.js';
|
|
3
4
|
import {
|
|
4
5
|
getErrorConstructor,
|
|
5
6
|
getTag,
|
|
@@ -8,7 +9,6 @@ import {
|
|
|
8
9
|
passStyleOf,
|
|
9
10
|
} from '@endo/pass-style';
|
|
10
11
|
import { isVow } from '@agoric/vow/src/vow-utils.js';
|
|
11
|
-
import { objectMap } from '@endo/common/object-map.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @import {Passable} from '@endo/pass-style'
|
package/src/endowments.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function forwardingMethods(rem: any): {
|
|
2
2
|
[k: string]: any;
|
|
3
3
|
};
|
|
4
|
-
export function makeStateRecord(dataRecord:
|
|
4
|
+
export function makeStateRecord<K extends string | number | symbol, R extends Record<K, any>>(dataRecord: R): R;
|
|
5
5
|
export function prepareEndowmentTools(outerZone: Zone, outerOptions?: PreparationOptions | undefined): {
|
|
6
6
|
prepareEndowment: (zone: Zone, tag: string, e: unknown) => any;
|
|
7
7
|
unwrap: (wrapped: any, guestWrapped: any) => any;
|
package/src/endowments.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endowments.d.ts","sourceRoot":"","sources":["endowments.js"],"names":[],"mappings":"AA4CO;;EASN;
|
|
1
|
+
{"version":3,"file":"endowments.d.ts","sourceRoot":"","sources":["endowments.js"],"names":[],"mappings":"AA4CO;;EASN;AAaM,gCALmC,CAAC,SAA5B,MAAM,GAAG,MAAM,GAAG,MAAQ,EACX,CAAC,SAAjB,MAAM,CAAC,CAAC,EAAE,GAAG,CAAE,cAClB,CAAC,GACC,CAAC,CAqBX;AAMI,iDAHI,IAAI;6BA6GF,IAAI,OACJ,MAAM,KACN,OAAO;;EAyFnB;4BA9QY,SAAS,GAAG,UAAU,GAAG,KAAK,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO;6BAkR1E,UAAU,aA5MZ,IAAI;6BA6GF,IAAI,OACJ,MAAM,KACN,OAAO;;EA6F0B;0BAxRvB,mBAAmB;wCAEL,iBAAiB"}
|
package/src/endowments.js
CHANGED
|
@@ -59,8 +59,10 @@ export const forwardingMethods = rem => {
|
|
|
59
59
|
* gets and sets, but is implemented using accessors, so it will be recognized
|
|
60
60
|
* as a state record.
|
|
61
61
|
*
|
|
62
|
-
* @
|
|
63
|
-
* @
|
|
62
|
+
* @template { string | number | symbol } K
|
|
63
|
+
* @template {Record<K, any>} R
|
|
64
|
+
* @param {R} dataRecord
|
|
65
|
+
* @returns {R}
|
|
64
66
|
*/
|
|
65
67
|
export const makeStateRecord = dataRecord =>
|
|
66
68
|
harden(
|
package/src/equate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fail, X, annotateError, q } from '@endo/errors';
|
|
2
2
|
import { throwLabeled } from '@endo/common/throw-labeled.js';
|
|
3
3
|
import { getTag, isObject, passStyleOf } from '@endo/pass-style';
|
|
4
|
-
import { isVow } from '@agoric/vow/src/vow-utils.js';
|
|
5
4
|
import { recordNames } from '@endo/marshal';
|
|
5
|
+
import { isVow } from '@agoric/vow/src/vow-utils.js';
|
|
6
6
|
|
|
7
7
|
const { is } = Object;
|
|
8
8
|
|
package/src/replay-membrane.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* eslint-disable no-use-before-define */
|
|
2
2
|
import { Fail, X, b, makeError, q } from '@endo/errors';
|
|
3
|
+
import { E } from '@endo/eventual-send';
|
|
4
|
+
import { getMethodNames } from '@endo/eventual-send/utils.js';
|
|
5
|
+
import { throwLabeled } from '@endo/common/throw-labeled.js';
|
|
6
|
+
import { objectMap } from '@endo/common/object-map.js';
|
|
3
7
|
import {
|
|
4
8
|
Far,
|
|
5
9
|
Remotable,
|
|
@@ -8,11 +12,7 @@ import {
|
|
|
8
12
|
makeTagged,
|
|
9
13
|
passStyleOf,
|
|
10
14
|
} from '@endo/pass-style';
|
|
11
|
-
import { E } from '@endo/eventual-send';
|
|
12
|
-
import { throwLabeled } from '@endo/common/throw-labeled.js';
|
|
13
15
|
import { heapVowE } from '@agoric/vow/vat.js';
|
|
14
|
-
import { getMethodNames } from '@endo/eventual-send/utils.js';
|
|
15
|
-
import { objectMap } from '@endo/common/object-map.js';
|
|
16
16
|
import { isVow } from '@agoric/vow/src/vow-utils.js';
|
|
17
17
|
import { makeEquate } from './equate.js';
|
|
18
18
|
import { makeConvertKit } from './convert.js';
|