@agoric/deploy-script-support 0.10.4-dev-f56a0df.0.f56a0df → 0.10.4-dev-3dacdc3.0.3dacdc3

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/deploy-script-support",
3
- "version": "0.10.4-dev-f56a0df.0.f56a0df",
3
+ "version": "0.10.4-dev-3dacdc3.0.3dacdc3",
4
4
  "description": "Helpers and other support for writing deploy scripts",
5
5
  "type": "module",
6
6
  "main": "src/helpers.js",
@@ -34,19 +34,19 @@
34
34
  },
35
35
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
36
36
  "dependencies": {
37
- "@agoric/client-utils": "0.1.1-dev-f56a0df.0.f56a0df",
38
- "@agoric/ertp": "0.16.3-dev-f56a0df.0.f56a0df",
39
- "@agoric/import-manager": "0.3.12-dev-f56a0df.0.f56a0df",
40
- "@agoric/internal": "0.3.3-dev-f56a0df.0.f56a0df",
41
- "@agoric/notifier": "0.6.3-dev-f56a0df.0.f56a0df",
42
- "@agoric/orchestration": "0.1.1-dev-f56a0df.0.f56a0df",
43
- "@agoric/pola-io": "0.1.1-dev-f56a0df.0.f56a0df",
44
- "@agoric/portfolio-api": "0.1.1-dev-f56a0df.0.f56a0df",
45
- "@agoric/smart-wallet": "0.5.4-dev-f56a0df.0.f56a0df",
46
- "@agoric/store": "0.9.3-dev-f56a0df.0.f56a0df",
47
- "@agoric/time": "0.3.3-dev-f56a0df.0.f56a0df",
48
- "@agoric/zoe": "0.26.3-dev-f56a0df.0.f56a0df",
49
- "@agoric/zone": "0.2.3-dev-f56a0df.0.f56a0df",
37
+ "@agoric/client-utils": "0.1.1-dev-3dacdc3.0.3dacdc3",
38
+ "@agoric/ertp": "0.16.3-dev-3dacdc3.0.3dacdc3",
39
+ "@agoric/import-manager": "0.3.12-dev-3dacdc3.0.3dacdc3",
40
+ "@agoric/internal": "0.3.3-dev-3dacdc3.0.3dacdc3",
41
+ "@agoric/notifier": "0.6.3-dev-3dacdc3.0.3dacdc3",
42
+ "@agoric/orchestration": "0.1.1-dev-3dacdc3.0.3dacdc3",
43
+ "@agoric/pola-io": "0.1.1-dev-3dacdc3.0.3dacdc3",
44
+ "@agoric/portfolio-api": "0.1.1-dev-3dacdc3.0.3dacdc3",
45
+ "@agoric/smart-wallet": "0.5.4-dev-3dacdc3.0.3dacdc3",
46
+ "@agoric/store": "0.9.3-dev-3dacdc3.0.3dacdc3",
47
+ "@agoric/time": "0.3.3-dev-3dacdc3.0.3dacdc3",
48
+ "@agoric/zoe": "0.26.3-dev-3dacdc3.0.3dacdc3",
49
+ "@agoric/zone": "0.2.3-dev-3dacdc3.0.3dacdc3",
50
50
  "@endo/base64": "^1.0.12",
51
51
  "@endo/bundle-source": "^4.1.2",
52
52
  "@endo/errors": "^1.2.13",
@@ -60,7 +60,7 @@
60
60
  "@endo/zip": "^1.0.11"
61
61
  },
62
62
  "devDependencies": {
63
- "@agoric/vats": "0.15.2-dev-f56a0df.0.f56a0df",
63
+ "@agoric/vats": "0.15.2-dev-3dacdc3.0.3dacdc3",
64
64
  "@endo/init": "^1.1.12",
65
65
  "ava": "^6.4.1",
66
66
  "import-meta-resolve": "^4.1.0"
@@ -83,5 +83,5 @@
83
83
  "typeCoverage": {
84
84
  "atLeast": 84.46
85
85
  },
86
- "gitHead": "f56a0df6c85ea0881e198a1369ae77f4f1593831"
86
+ "gitHead": "3dacdc33b578ee52258e5771192bf8e57beb603b"
87
87
  }
@@ -8,10 +8,10 @@ import { Fail } from '@endo/errors';
8
8
 
9
9
  /**
10
10
  * @param {string} cacheDir
11
- * @param {{ now: typeof Date.now, fs: promises, pathResolve: typeof resolve }} param1
11
+ * @param {{ now: typeof Date.now, fs: promises, pathResolve: typeof resolve, pid?: number }} param1
12
12
  */
13
13
  export const makeCacheAndGetBundleSpec =
14
- (cacheDir, { now, fs, pathResolve }) =>
14
+ (cacheDir, { now, fs, pathResolve, pid = process.pid }) =>
15
15
  /**
16
16
  * @param {Promise<BundleSourceResult<'endoZipBase64'>>} bundleP
17
17
  */
@@ -30,8 +30,7 @@ export const makeCacheAndGetBundleSpec =
30
30
  if (e.code !== 'ENOENT') {
31
31
  throw e;
32
32
  }
33
- // FIXME: We could take a hard dependency on `tmp` here, but is it worth it?
34
- const tmpFile = `${cacheFile}.${now()}`;
33
+ const tmpFile = `${cacheFile}.${pid}.${now()}.${Math.random().toString(16).slice(2)}.tmp`;
35
34
  await fs.writeFile(tmpFile, JSON.stringify(bundle, null, 2), {
36
35
  flag: 'wx',
37
36
  });