@agoric/solo 0.10.4-upgrade-18-dev-6ddbef0.0 → 0.10.4-upgrade-19-dev-ae3bcff.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/solo",
3
- "version": "0.10.4-upgrade-18-dev-6ddbef0.0+6ddbef0",
3
+ "version": "0.10.4-upgrade-19-dev-ae3bcff.0+ae3bcff",
4
4
  "description": "Agoric's Solo vat runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "scripts": {
12
12
  "build": "exit 0",
13
13
  "test": "ava",
14
- "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
14
+ "test:c8": "c8 --all $C8_OPTIONS ava",
15
15
  "test:xs": "exit 0",
16
16
  "lint-fix": "yarn lint:eslint --fix",
17
17
  "lint": "run-s --continue-on-error lint:*",
@@ -22,32 +22,32 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/access-token": "0.4.22-upgrade-18-dev-6ddbef0.0+6ddbef0",
26
- "@agoric/cache": "0.3.3-upgrade-18-dev-6ddbef0.0+6ddbef0",
27
- "@agoric/cosmic-swingset": "0.41.4-upgrade-18-dev-6ddbef0.0+6ddbef0",
28
- "@agoric/internal": "0.3.3-upgrade-18-dev-6ddbef0.0+6ddbef0",
29
- "@agoric/notifier": "0.6.3-upgrade-18-dev-6ddbef0.0+6ddbef0",
30
- "@agoric/spawner": "0.6.9-upgrade-18-dev-6ddbef0.0+6ddbef0",
31
- "@agoric/store": "0.9.3-upgrade-18-dev-6ddbef0.0+6ddbef0",
32
- "@agoric/swing-store": "0.9.2-upgrade-18-dev-6ddbef0.0+6ddbef0",
33
- "@agoric/swingset-vat": "0.32.3-upgrade-18-dev-6ddbef0.0+6ddbef0",
34
- "@agoric/telemetry": "0.6.3-upgrade-18-dev-6ddbef0.0+6ddbef0",
35
- "@agoric/time": "0.3.3-upgrade-18-dev-6ddbef0.0+6ddbef0",
36
- "@agoric/vats": "0.15.2-upgrade-18-dev-6ddbef0.0+6ddbef0",
37
- "@agoric/wallet": "0.18.4-upgrade-18-dev-6ddbef0.0+6ddbef0",
38
- "@endo/captp": "^4.4.2",
39
- "@endo/errors": "^1.2.7",
40
- "@endo/eventual-send": "^1.2.7",
41
- "@endo/import-bundle": "^1.3.1",
42
- "@endo/init": "^1.1.6",
43
- "@endo/marshal": "^1.6.1",
44
- "@endo/promise-kit": "^1.1.7",
25
+ "@agoric/access-token": "0.4.22-upgrade-19-dev-ae3bcff.0+ae3bcff",
26
+ "@agoric/cache": "0.3.3-upgrade-19-dev-ae3bcff.0+ae3bcff",
27
+ "@agoric/cosmic-swingset": "0.41.4-upgrade-19-dev-ae3bcff.0+ae3bcff",
28
+ "@agoric/internal": "0.3.3-upgrade-19-dev-ae3bcff.0+ae3bcff",
29
+ "@agoric/notifier": "0.6.3-upgrade-19-dev-ae3bcff.0+ae3bcff",
30
+ "@agoric/spawner": "0.6.9-upgrade-19-dev-ae3bcff.0+ae3bcff",
31
+ "@agoric/store": "0.9.3-upgrade-19-dev-ae3bcff.0+ae3bcff",
32
+ "@agoric/swing-store": "0.9.2-upgrade-19-dev-ae3bcff.0+ae3bcff",
33
+ "@agoric/swingset-vat": "0.32.3-upgrade-19-dev-ae3bcff.0+ae3bcff",
34
+ "@agoric/telemetry": "0.6.3-upgrade-19-dev-ae3bcff.0+ae3bcff",
35
+ "@agoric/time": "0.3.3-upgrade-19-dev-ae3bcff.0+ae3bcff",
36
+ "@agoric/vats": "0.15.2-upgrade-19-dev-ae3bcff.0+ae3bcff",
37
+ "@agoric/wallet": "0.18.4-upgrade-19-dev-ae3bcff.0+ae3bcff",
38
+ "@endo/captp": "^4.4.4",
39
+ "@endo/errors": "^1.2.9",
40
+ "@endo/eventual-send": "^1.3.0",
41
+ "@endo/import-bundle": "^1.3.3",
42
+ "@endo/init": "^1.1.8",
43
+ "@endo/marshal": "^1.6.3",
44
+ "@endo/promise-kit": "^1.1.9",
45
45
  "anylogger": "^0.21.0",
46
46
  "deterministic-json": "^1.0.5",
47
47
  "esm": "agoric-labs/esm#Agoric-built",
48
48
  "express": "^5.0.1",
49
49
  "http-proxy-middleware": "^2.0.6",
50
- "import-meta-resolve": "^2.2.1",
50
+ "import-meta-resolve": "^4.1.0",
51
51
  "minimist": "^1.2.0",
52
52
  "morgan": "^1.10.0",
53
53
  "temp": "^0.9.1",
@@ -55,10 +55,10 @@
55
55
  "ws": "^7.2.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@agoric/ertp": "0.16.3-upgrade-18-dev-6ddbef0.0+6ddbef0",
59
- "@endo/bundle-source": "^3.4.2",
58
+ "@agoric/ertp": "0.16.3-upgrade-19-dev-ae3bcff.0+ae3bcff",
59
+ "@endo/bundle-source": "^3.5.1",
60
60
  "ava": "^5.3.0",
61
- "c8": "^9.1.0"
61
+ "c8": "^10.1.2"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -77,7 +77,7 @@
77
77
  "workerThreads": false
78
78
  },
79
79
  "typeCoverage": {
80
- "atLeast": 73.54
80
+ "atLeast": 74.02
81
81
  },
82
- "gitHead": "6ddbef09f18c18f205e8d166c363ff4884115ce9"
82
+ "gitHead": "ae3bcff04c91eee841d9ab310aca64ee903ca12b"
83
83
  }
@@ -696,14 +696,12 @@ ${chainID} chain does not yet know of address ${clientAddr}${adviseEgress(
696
696
  .then(txResult => {
697
697
  // The result had an error code (not 0 or undefined for success).
698
698
  if (txResult.code) {
699
- // eslint-disable-next-line no-use-before-define
700
699
  failedSend(
701
700
  makeError(`Error in tx processing: ${txResult.log}`),
702
701
  );
703
702
  }
704
703
  })
705
704
  .catch(err =>
706
- // eslint-disable-next-line no-use-before-define
707
705
  failedSend(makeError(`Error in tx processing: ${err}`)),
708
706
  );
709
707
 
package/src/start.js CHANGED
@@ -17,7 +17,11 @@ import anylogger from 'anylogger';
17
17
  // import djson from 'deterministic-json';
18
18
 
19
19
  import { assert, Fail } from '@endo/errors';
20
- import { makeSlogSender, tryFlushSlogSender } from '@agoric/telemetry';
20
+ import {
21
+ getTelemetryProviders,
22
+ makeSlogSender,
23
+ tryFlushSlogSender,
24
+ } from '@agoric/telemetry';
21
25
  import {
22
26
  loadSwingsetConfigFile,
23
27
  buildCommand,
@@ -36,7 +40,6 @@ import { makeWithQueue } from '@agoric/internal/src/queue.js';
36
40
  import { makeShutdown } from '@agoric/internal/src/node/shutdown.js';
37
41
  import {
38
42
  makeDefaultMeterProvider,
39
- getTelemetryProviders,
40
43
  makeSlogCallbacks,
41
44
  exportKernelStats,
42
45
  } from '@agoric/cosmic-swingset/src/kernel-stats.js';
@@ -120,7 +123,6 @@ const buildSwingset = async (
120
123
  const withInputQueue = makeWithQueue();
121
124
  const queueThunkForKernel = withInputQueue(async thunk => {
122
125
  thunk();
123
- // eslint-disable-next-line no-use-before-define
124
126
  await processKernel();
125
127
  });
126
128
 
@@ -365,7 +367,7 @@ const deployWallet = async ({ agWallet, deploys, hostport }) => {
365
367
  // This part only runs if there were wallet deploys to do.
366
368
  const resolvedDeploys = deploys.map(dep => path.resolve(agWallet, dep));
367
369
 
368
- const resolvedUrl = await importMetaResolve(
370
+ const resolvedUrl = importMetaResolve(
369
371
  'agoric/src/entrypoint.js',
370
372
  import.meta.url,
371
373
  );
@@ -481,7 +483,7 @@ const start = async (basedir, argv) => {
481
483
  // Remove wallet traces.
482
484
  await unlink('html/wallet').catch(_ => {});
483
485
 
484
- const packageUrl = await importMetaResolve(
486
+ const packageUrl = importMetaResolve(
485
487
  `${wallet}/package.json`,
486
488
  import.meta.url,
487
489
  );
@@ -496,7 +498,7 @@ const start = async (basedir, argv) => {
496
498
  );
497
499
 
498
500
  const agWallet = path.dirname(pjs);
499
- const agWalletHtmlUrl = await importMetaResolve(htmlBasePath, packageUrl);
501
+ const agWalletHtmlUrl = importMetaResolve(htmlBasePath, packageUrl);
500
502
  const agWalletHtml = new URL(agWalletHtmlUrl).pathname;
501
503
 
502
504
  let hostport;
package/src/vat-http.js CHANGED
@@ -3,6 +3,7 @@ import { E } from '@endo/eventual-send';
3
3
  import { makePromiseKit } from '@endo/promise-kit';
4
4
  import { Far } from '@endo/marshal';
5
5
 
6
+ import { deepCopyJsonable } from '@agoric/internal/src/js-utils.js';
6
7
  import { makeNotifierKit } from '@agoric/notifier';
7
8
  import { makeCache } from '@agoric/cache';
8
9
  import { getReplHandler } from '@agoric/vats/src/repl.js';
@@ -27,7 +28,6 @@ export function buildRootObject(vatPowers) {
27
28
 
28
29
  const lookup = async (...path) => {
29
30
  // Take a snapshot of the current home.
30
- // eslint-disable-next-line no-use-before-define
31
31
  const root = replObjects.home;
32
32
 
33
33
  if (path.length === 1 && Array.isArray(path[0])) {
@@ -82,7 +82,7 @@ export function buildRootObject(vatPowers) {
82
82
  D(commandDevice).sendResponse(
83
83
  count,
84
84
  isException,
85
- obj || JSON.parse(JSON.stringify(obj)),
85
+ obj || deepCopyJsonable(obj),
86
86
  );
87
87
 
88
88
  // Map an URL only to its latest handler.
@@ -186,7 +186,7 @@ export function buildRootObject(vatPowers) {
186
186
  // Launder the data, since the command device tends to pass device nodes
187
187
  // when there are empty objects, which screw things up for us.
188
188
  // Analysis is in https://github.com/Agoric/agoric-sdk/pull/1956
189
- const obj = JSON.parse(JSON.stringify(rawObj));
189
+ const obj = deepCopyJsonable(rawObj);
190
190
  console.debug(
191
191
  `vat-http.inbound (from browser) ${count}`,
192
192
  JSON.stringify(obj, undefined, 2),
package/src/web.js CHANGED
@@ -370,7 +370,6 @@ export async function makeHTTPListener(
370
370
  return;
371
371
  }
372
372
 
373
- // eslint-disable-next-line no-use-before-define
374
373
  sendJSON({ ...res, meta });
375
374
  } catch (error) {
376
375
  inboundCommand(
package/test/home.test.js CHANGED
@@ -30,7 +30,7 @@ export const Stable = harden(
30
30
  //#region setup (ambient authority is confined to this region)
31
31
  test.before('setup', async t => {
32
32
  const loadBundle = async specifier => {
33
- const contractUrl = await importMetaResolve(specifier, import.meta.url);
33
+ const contractUrl = importMetaResolve(specifier, import.meta.url);
34
34
  const contractRoot = new URL(contractUrl).pathname;
35
35
  t.log({ contractRoot });
36
36
  const bundle = await bundleSourceAmbient(contractRoot);