agoric 0.21.2-dev-662598c.0 → 0.21.2-dev-276bcab.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,6 +1,6 @@
1
1
  {
2
2
  "name": "agoric",
3
- "version": "0.21.2-dev-662598c.0+662598c",
3
+ "version": "0.21.2-dev-276bcab.0+276bcab",
4
4
  "description": "Manage the Agoric Javascript smart contract platform",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -30,28 +30,28 @@
30
30
  "lint:eslint": "eslint ."
31
31
  },
32
32
  "devDependencies": {
33
- "@agoric/cosmic-swingset": "0.41.4-dev-662598c.0+662598c",
34
- "@agoric/deploy-script-support": "0.10.4-dev-662598c.0+662598c",
33
+ "@agoric/cosmic-swingset": "0.41.4-dev-276bcab.0+276bcab",
34
+ "@agoric/deploy-script-support": "0.10.4-dev-276bcab.0+276bcab",
35
35
  "ava": "^5.3.0",
36
36
  "c8": "^10.1.2"
37
37
  },
38
38
  "dependencies": {
39
- "@agoric/access-token": "0.4.22-dev-662598c.0+662598c",
40
- "@agoric/cache": "0.3.3-dev-662598c.0+662598c",
41
- "@agoric/casting": "0.4.3-dev-662598c.0+662598c",
42
- "@agoric/client-utils": "0.1.1-dev-662598c.0+662598c",
43
- "@agoric/cosmic-proto": "0.4.1-dev-662598c.0+662598c",
44
- "@agoric/ertp": "0.16.3-dev-662598c.0+662598c",
45
- "@agoric/governance": "0.10.4-dev-662598c.0+662598c",
46
- "@agoric/inter-protocol": "0.16.2-dev-662598c.0+662598c",
47
- "@agoric/internal": "0.3.3-dev-662598c.0+662598c",
48
- "@agoric/network": "0.1.1-dev-662598c.0+662598c",
49
- "@agoric/smart-wallet": "0.5.4-dev-662598c.0+662598c",
50
- "@agoric/store": "0.9.3-dev-662598c.0+662598c",
51
- "@agoric/swingset-vat": "0.32.3-dev-662598c.0+662598c",
52
- "@agoric/vats": "0.15.2-dev-662598c.0+662598c",
53
- "@agoric/zoe": "0.26.3-dev-662598c.0+662598c",
54
- "@agoric/zone": "0.2.3-dev-662598c.0+662598c",
39
+ "@agoric/access-token": "0.4.22-dev-276bcab.0+276bcab",
40
+ "@agoric/cache": "0.3.3-dev-276bcab.0+276bcab",
41
+ "@agoric/casting": "0.4.3-dev-276bcab.0+276bcab",
42
+ "@agoric/client-utils": "0.1.1-dev-276bcab.0+276bcab",
43
+ "@agoric/cosmic-proto": "0.4.1-dev-276bcab.0+276bcab",
44
+ "@agoric/ertp": "0.16.3-dev-276bcab.0+276bcab",
45
+ "@agoric/governance": "0.10.4-dev-276bcab.0+276bcab",
46
+ "@agoric/inter-protocol": "0.16.2-dev-276bcab.0+276bcab",
47
+ "@agoric/internal": "0.3.3-dev-276bcab.0+276bcab",
48
+ "@agoric/network": "0.1.1-dev-276bcab.0+276bcab",
49
+ "@agoric/smart-wallet": "0.5.4-dev-276bcab.0+276bcab",
50
+ "@agoric/store": "0.9.3-dev-276bcab.0+276bcab",
51
+ "@agoric/swingset-vat": "0.32.3-dev-276bcab.0+276bcab",
52
+ "@agoric/vats": "0.15.2-dev-276bcab.0+276bcab",
53
+ "@agoric/zoe": "0.26.3-dev-276bcab.0+276bcab",
54
+ "@agoric/zone": "0.2.3-dev-276bcab.0+276bcab",
55
55
  "@cosmjs/crypto": "^0.33.0",
56
56
  "@cosmjs/encoding": "^0.33.0",
57
57
  "@cosmjs/math": "^0.33.0",
@@ -75,7 +75,6 @@
75
75
  "chalk": "^5.2.0",
76
76
  "commander": "^12.1.0",
77
77
  "deterministic-json": "^1.0.5",
78
- "esm": "agoric-labs/esm#Agoric-built",
79
78
  "inquirer": "^8.2.2",
80
79
  "opener": "^1.5.2",
81
80
  "tmp": "^0.2.1",
@@ -102,5 +101,5 @@
102
101
  "typeCoverage": {
103
102
  "atLeast": 79.15
104
103
  },
105
- "gitHead": "662598c30fc52fe1a9e9ea6d0ce9e46cfb705a7f"
104
+ "gitHead": "276bcabc1afd3745f168ca9d48283ff874173a3e"
106
105
  }
package/src/bin-agops.js CHANGED
@@ -3,8 +3,6 @@
3
3
  // @ts-check
4
4
  // @jessie-check
5
5
 
6
- import '@endo/init/pre.js';
7
-
8
6
  import '@endo/init';
9
7
 
10
8
  import { E } from '@endo/far';
package/src/entrypoint.js CHANGED
@@ -2,8 +2,6 @@
2
2
  /* eslint-env node */
3
3
  // @jessie-check
4
4
 
5
- import '@endo/init/pre.js';
6
- import 'esm';
7
5
  import '@endo/init/legacy.js';
8
6
 
9
7
  import path from 'path';
package/src/scripts.js CHANGED
@@ -2,15 +2,11 @@
2
2
  /* eslint-env node */
3
3
  import bundleSource from '@endo/bundle-source';
4
4
  import { E } from '@endo/captp';
5
- import { search as readContainingPackageDescriptor } from '@endo/compartment-mapper';
6
5
 
7
- import createEsmRequire from 'esm';
8
6
  import { createRequire } from 'module';
9
7
  import path from 'path';
10
- import url from 'url';
11
8
 
12
9
  const require = createRequire(import.meta.url);
13
- const esmRequire = createEsmRequire(/** @type {NodeModule} */ ({}));
14
10
 
15
11
  const PATH_SEP_RE = new RegExp(`${path.sep.replace(/\\/g, '\\\\')}`, 'g');
16
12
 
@@ -133,31 +129,8 @@ export { bootPlugin } from ${JSON.stringify(absPath)};
133
129
  // Use a dynamic import to load the deploy script.
134
130
  // It is unconfined.
135
131
 
136
- // Use Node.js ESM support if package.json of template says "type":
137
- // "module".
138
- const read = async location => fs.readFile(url.fileURLToPath(location));
139
- const { packageDescriptorText } = await readContainingPackageDescriptor(
140
- read,
141
- url.pathToFileURL(moduleFile).href,
142
- ).catch(cause => {
143
- throw Error(
144
- `Expected a package.json beside deploy script ${moduleFile}, ${cause}`,
145
- { cause },
146
- );
147
- });
148
- const packageDescriptor = JSON.parse(packageDescriptorText);
149
- const nativeEsm = packageDescriptor.type === 'module';
150
- console.log(
151
- `Deploy script will run with ${
152
- nativeEsm ? 'Node.js ESM' : 'standardthings/esm emulation'
153
- }`,
154
- );
155
-
156
132
  const modulePath = pathResolve(moduleFile);
157
- let mainNS = await (nativeEsm && import(modulePath));
158
- if (!mainNS) {
159
- mainNS = esmRequire(modulePath);
160
- }
133
+ const mainNS = await import(modulePath);
161
134
 
162
135
  const allEndowments = harden({
163
136
  home: bootP,