agoric 0.21.2-dev-8c79835.0 → 0.21.2-dev-59b637f.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-8c79835.0+8c79835",
3
+ "version": "0.21.2-dev-59b637f.0+59b637f",
4
4
  "description": "Manage the Agoric Javascript smart contract platform",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -29,29 +29,29 @@
29
29
  "lint:eslint": "eslint ."
30
30
  },
31
31
  "devDependencies": {
32
- "@agoric/cosmic-swingset": "0.41.4-dev-8c79835.0+8c79835",
33
- "@agoric/deploy-script-support": "0.10.4-dev-8c79835.0+8c79835",
32
+ "@agoric/cosmic-swingset": "0.41.4-dev-59b637f.0+59b637f",
33
+ "@agoric/deploy-script-support": "0.10.4-dev-59b637f.0+59b637f",
34
34
  "ava": "^5.3.0",
35
35
  "c8": "^9.1.0",
36
36
  "dd-trace": "^4.11.1"
37
37
  },
38
38
  "dependencies": {
39
- "@agoric/access-token": "0.4.22-dev-8c79835.0+8c79835",
40
- "@agoric/cache": "0.3.3-dev-8c79835.0+8c79835",
41
- "@agoric/casting": "0.4.3-dev-8c79835.0+8c79835",
42
- "@agoric/client-utils": "0.1.1-dev-8c79835.0+8c79835",
43
- "@agoric/cosmic-proto": "0.4.1-dev-8c79835.0+8c79835",
44
- "@agoric/ertp": "0.16.3-dev-8c79835.0+8c79835",
45
- "@agoric/governance": "0.10.4-dev-8c79835.0+8c79835",
46
- "@agoric/inter-protocol": "0.16.2-dev-8c79835.0+8c79835",
47
- "@agoric/internal": "0.3.3-dev-8c79835.0+8c79835",
48
- "@agoric/network": "0.1.1-dev-8c79835.0+8c79835",
49
- "@agoric/smart-wallet": "0.5.4-dev-8c79835.0+8c79835",
50
- "@agoric/store": "0.9.3-dev-8c79835.0+8c79835",
51
- "@agoric/swingset-vat": "0.32.3-dev-8c79835.0+8c79835",
52
- "@agoric/vats": "0.15.2-dev-8c79835.0+8c79835",
53
- "@agoric/zoe": "0.26.3-dev-8c79835.0+8c79835",
54
- "@agoric/zone": "0.2.3-dev-8c79835.0+8c79835",
39
+ "@agoric/access-token": "0.4.22-dev-59b637f.0+59b637f",
40
+ "@agoric/cache": "0.3.3-dev-59b637f.0+59b637f",
41
+ "@agoric/casting": "0.4.3-dev-59b637f.0+59b637f",
42
+ "@agoric/client-utils": "0.1.1-dev-59b637f.0+59b637f",
43
+ "@agoric/cosmic-proto": "0.4.1-dev-59b637f.0+59b637f",
44
+ "@agoric/ertp": "0.16.3-dev-59b637f.0+59b637f",
45
+ "@agoric/governance": "0.10.4-dev-59b637f.0+59b637f",
46
+ "@agoric/inter-protocol": "0.16.2-dev-59b637f.0+59b637f",
47
+ "@agoric/internal": "0.3.3-dev-59b637f.0+59b637f",
48
+ "@agoric/network": "0.1.1-dev-59b637f.0+59b637f",
49
+ "@agoric/smart-wallet": "0.5.4-dev-59b637f.0+59b637f",
50
+ "@agoric/store": "0.9.3-dev-59b637f.0+59b637f",
51
+ "@agoric/swingset-vat": "0.32.3-dev-59b637f.0+59b637f",
52
+ "@agoric/vats": "0.15.2-dev-59b637f.0+59b637f",
53
+ "@agoric/zoe": "0.26.3-dev-59b637f.0+59b637f",
54
+ "@agoric/zone": "0.2.3-dev-59b637f.0+59b637f",
55
55
  "@confio/relayer": "^0.11.3",
56
56
  "@cosmjs/crypto": "^0.32.3",
57
57
  "@cosmjs/encoding": "^0.32.3",
@@ -102,5 +102,5 @@
102
102
  "typeCoverage": {
103
103
  "atLeast": 77.54
104
104
  },
105
- "gitHead": "8c79835a8218f0317cfd1fcb782286408343119e"
105
+ "gitHead": "59b637f00caf53777371f824c5367a567eb26ec9"
106
106
  }
package/src/install.js CHANGED
@@ -131,7 +131,6 @@ export default async function installMain(progname, rawArgs, powers, opts) {
131
131
  // Ensure we update the package.json before exiting.
132
132
  const updatePackageJson = async () => {
133
133
  // Don't update on exit anymore.
134
- // eslint-disable-next-line no-use-before-define
135
134
  process.off('beforeExit', updatePackageJsonOnExit);
136
135
  log.info(`updating ${pjson}`);
137
136
  await fs.writeFile(
package/src/lib/format.js CHANGED
@@ -100,14 +100,15 @@ export const purseBalanceTuples = (purses, assets) => {
100
100
  */
101
101
  export const fmtRecordOfLines = record => {
102
102
  const { stringify } = JSON;
103
+ /** @type {Array<[string, string[]]>} */
103
104
  const groups = Object.entries(record).map(([key, items]) => [
104
105
  key,
105
106
  items.map(item => ` ${stringify(item)}`),
106
107
  ]);
107
- const lineEntries = groups.map(
108
- // @ts-expect-error ???
109
- ([key, lines]) => ` ${stringify(key)}: [\n${lines.join(',\n')}\n ]`,
110
- );
108
+ const lineEntries = groups.map(([key, lines]) => {
109
+ const linesStr = lines.length === 0 ? `[]` : `[\n${lines.join(',\n')}\n ]`;
110
+ return ` ${stringify(key)}: ${linesStr}`;
111
+ });
111
112
  return `{\n${lineEntries.join(',\n')}\n}`;
112
113
  };
113
114