@agoric/solo 0.10.4-dev-fb76d70.0 → 0.10.4-dev-eb1d655.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.
Files changed (2) hide show
  1. package/package.json +16 -16
  2. package/src/vat-http.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/solo",
3
- "version": "0.10.4-dev-fb76d70.0+fb76d70",
3
+ "version": "0.10.4-dev-eb1d655.0+eb1d655",
4
4
  "description": "Agoric's Solo vat runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,19 +22,19 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/access-token": "0.4.22-dev-fb76d70.0+fb76d70",
26
- "@agoric/cache": "0.3.3-dev-fb76d70.0+fb76d70",
27
- "@agoric/cosmic-swingset": "0.41.4-dev-fb76d70.0+fb76d70",
28
- "@agoric/internal": "0.3.3-dev-fb76d70.0+fb76d70",
29
- "@agoric/notifier": "0.6.3-dev-fb76d70.0+fb76d70",
30
- "@agoric/spawner": "0.6.9-dev-fb76d70.0+fb76d70",
31
- "@agoric/store": "0.9.3-dev-fb76d70.0+fb76d70",
32
- "@agoric/swing-store": "0.9.2-dev-fb76d70.0+fb76d70",
33
- "@agoric/swingset-vat": "0.32.3-dev-fb76d70.0+fb76d70",
34
- "@agoric/telemetry": "0.6.3-dev-fb76d70.0+fb76d70",
35
- "@agoric/time": "0.3.3-dev-fb76d70.0+fb76d70",
36
- "@agoric/vats": "0.15.2-dev-fb76d70.0+fb76d70",
37
- "@agoric/wallet": "0.18.4-dev-fb76d70.0+fb76d70",
25
+ "@agoric/access-token": "0.4.22-dev-eb1d655.0+eb1d655",
26
+ "@agoric/cache": "0.3.3-dev-eb1d655.0+eb1d655",
27
+ "@agoric/cosmic-swingset": "0.41.4-dev-eb1d655.0+eb1d655",
28
+ "@agoric/internal": "0.3.3-dev-eb1d655.0+eb1d655",
29
+ "@agoric/notifier": "0.6.3-dev-eb1d655.0+eb1d655",
30
+ "@agoric/spawner": "0.6.9-dev-eb1d655.0+eb1d655",
31
+ "@agoric/store": "0.9.3-dev-eb1d655.0+eb1d655",
32
+ "@agoric/swing-store": "0.9.2-dev-eb1d655.0+eb1d655",
33
+ "@agoric/swingset-vat": "0.32.3-dev-eb1d655.0+eb1d655",
34
+ "@agoric/telemetry": "0.6.3-dev-eb1d655.0+eb1d655",
35
+ "@agoric/time": "0.3.3-dev-eb1d655.0+eb1d655",
36
+ "@agoric/vats": "0.15.2-dev-eb1d655.0+eb1d655",
37
+ "@agoric/wallet": "0.18.4-dev-eb1d655.0+eb1d655",
38
38
  "@endo/captp": "^4.4.2",
39
39
  "@endo/errors": "^1.2.7",
40
40
  "@endo/eventual-send": "^1.2.7",
@@ -55,7 +55,7 @@
55
55
  "ws": "^7.2.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@agoric/ertp": "0.16.3-dev-fb76d70.0+fb76d70",
58
+ "@agoric/ertp": "0.16.3-dev-eb1d655.0+eb1d655",
59
59
  "@endo/bundle-source": "^3.4.2",
60
60
  "ava": "^5.3.0",
61
61
  "c8": "^9.1.0"
@@ -79,5 +79,5 @@
79
79
  "typeCoverage": {
80
80
  "atLeast": 74.05
81
81
  },
82
- "gitHead": "fb76d7061a2ba71db7c7bb746ea8f34dbe5dbed0"
82
+ "gitHead": "eb1d655e6b33c0044138e95867ae8ad527115de3"
83
83
  }
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';
@@ -82,7 +83,7 @@ export function buildRootObject(vatPowers) {
82
83
  D(commandDevice).sendResponse(
83
84
  count,
84
85
  isException,
85
- obj || JSON.parse(JSON.stringify(obj)),
86
+ obj || deepCopyJsonable(obj),
86
87
  );
87
88
 
88
89
  // Map an URL only to its latest handler.
@@ -186,7 +187,7 @@ export function buildRootObject(vatPowers) {
186
187
  // Launder the data, since the command device tends to pass device nodes
187
188
  // when there are empty objects, which screw things up for us.
188
189
  // Analysis is in https://github.com/Agoric/agoric-sdk/pull/1956
189
- const obj = JSON.parse(JSON.stringify(rawObj));
190
+ const obj = deepCopyJsonable(rawObj);
190
191
  console.debug(
191
192
  `vat-http.inbound (from browser) ${count}`,
192
193
  JSON.stringify(obj, undefined, 2),