@agoric/zoe 0.26.3-dev-6f1e77c.0.6f1e77c → 0.26.3-dev-481e663.0.481e663
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 +14 -14
- package/tools/setup-zoe.d.ts.map +1 -1
- package/tools/setup-zoe.js +19 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-dev-
|
|
3
|
+
"version": "0.26.3-dev-481e663.0.481e663",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
44
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
45
|
-
"@agoric/internal": "0.3.3-dev-
|
|
46
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
47
|
-
"@agoric/store": "0.9.3-dev-
|
|
48
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
49
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
50
|
-
"@agoric/time": "0.3.3-dev-
|
|
51
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
52
|
-
"@agoric/vow": "0.1.1-dev-
|
|
53
|
-
"@agoric/zone": "0.2.3-dev-
|
|
43
|
+
"@agoric/base-zone": "0.1.1-dev-481e663.0.481e663",
|
|
44
|
+
"@agoric/ertp": "0.16.3-dev-481e663.0.481e663",
|
|
45
|
+
"@agoric/internal": "0.3.3-dev-481e663.0.481e663",
|
|
46
|
+
"@agoric/notifier": "0.6.3-dev-481e663.0.481e663",
|
|
47
|
+
"@agoric/store": "0.9.3-dev-481e663.0.481e663",
|
|
48
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-481e663.0.481e663",
|
|
49
|
+
"@agoric/swingset-vat": "0.32.3-dev-481e663.0.481e663",
|
|
50
|
+
"@agoric/time": "0.3.3-dev-481e663.0.481e663",
|
|
51
|
+
"@agoric/vat-data": "0.5.3-dev-481e663.0.481e663",
|
|
52
|
+
"@agoric/vow": "0.1.1-dev-481e663.0.481e663",
|
|
53
|
+
"@agoric/zone": "0.2.3-dev-481e663.0.481e663",
|
|
54
54
|
"@endo/bundle-source": "^4.1.2",
|
|
55
55
|
"@endo/captp": "^4.4.8",
|
|
56
56
|
"@endo/common": "^1.2.13",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"yargs-parser": "^21.1.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
70
|
+
"@agoric/kmarshal": "0.1.1-dev-481e663.0.481e663",
|
|
71
71
|
"@endo/init": "^1.1.12",
|
|
72
72
|
"ava": "^6.4.1",
|
|
73
73
|
"c8": "^10.1.3",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"typeCoverage": {
|
|
98
98
|
"atLeast": 84.84
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "481e6630135d415df1caccfb0a4fcffb77eaed13"
|
|
101
101
|
}
|
package/tools/setup-zoe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAqBO,gDAFI,WAAW;;;;;;;EAOrB;AAKM,6CAFI,WAAW,2EAGqB;AAapC,gCAPgB,CAAC,mFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;sCA6D9B,MAAM,aACN,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;GAoBnC;iCArH8D,sBAAsB;qCACrC,uBAAuB;kCAAvB,uBAAuB;yCADR,sBAAsB;gCAAtB,sBAAsB"}
|
package/tools/setup-zoe.js
CHANGED
|
@@ -11,6 +11,11 @@ import fakeVatAdmin, { makeFakeVatAdmin } from './fakeVatAdmin.js';
|
|
|
11
11
|
* @import {FeeIssuerConfig, Installation} from '../src/types-index.js';
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
/** @type {Map<string, Promise<import('@agoric/swingset-vat').EndoZipBase64Bundle | import('@agoric/swingset-vat').TestBundle>>} */
|
|
15
|
+
const bundledPathCache = new Map();
|
|
16
|
+
/** @type {WeakMap<object, Promise<import('@agoric/swingset-vat').EndoZipBase64Bundle | import('@agoric/swingset-vat').TestBundle>>} */
|
|
17
|
+
const bundledExportsCache = new WeakMap();
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* @param {VatAdminSvc} [vatAdminSvc]
|
|
16
21
|
*/
|
|
@@ -69,17 +74,26 @@ export const setUpZoeForTest = async ({
|
|
|
69
74
|
const bundleModule = async pathOrExports => {
|
|
70
75
|
if (typeof pathOrExports === 'string') {
|
|
71
76
|
const path = pathOrExports;
|
|
72
|
-
|
|
77
|
+
const pending = bundledPathCache.get(path) || bundleSource(path);
|
|
78
|
+
bundledPathCache.set(path, pending);
|
|
79
|
+
return pending;
|
|
73
80
|
} else {
|
|
74
81
|
assert.equal(
|
|
75
82
|
Object.getOwnPropertyDescriptor(pathOrExports, Symbol.toStringTag)
|
|
76
83
|
?.value,
|
|
77
84
|
'Module',
|
|
78
85
|
);
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
const pending =
|
|
87
|
+
bundledExportsCache.get(pathOrExports) ||
|
|
88
|
+
(() => {
|
|
89
|
+
// Copy all the properties so this object can be hardened.
|
|
90
|
+
const exports = { ...pathOrExports };
|
|
91
|
+
return Promise.resolve(
|
|
92
|
+
/** @type {TestBundle} */ (bundleTestExports(exports)),
|
|
93
|
+
);
|
|
94
|
+
})();
|
|
95
|
+
bundledExportsCache.set(pathOrExports, pending);
|
|
96
|
+
return pending;
|
|
83
97
|
}
|
|
84
98
|
};
|
|
85
99
|
|