@agoric/deploy-script-support 0.10.4-dev-853cca5.0 → 0.10.4-dev-01baa28.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/deploy-script-support",
3
- "version": "0.10.4-dev-853cca5.0+853cca5",
3
+ "version": "0.10.4-dev-01baa28.0+01baa28",
4
4
  "description": "Helpers and other support for writing deploy scripts",
5
5
  "type": "module",
6
6
  "main": "src/helpers.js",
@@ -34,14 +34,14 @@
34
34
  },
35
35
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
36
36
  "dependencies": {
37
- "@agoric/assert": "0.6.1-dev-853cca5.0+853cca5",
38
- "@agoric/ertp": "0.16.3-dev-853cca5.0+853cca5",
39
- "@agoric/import-manager": "0.3.12-dev-853cca5.0+853cca5",
40
- "@agoric/internal": "0.3.3-dev-853cca5.0+853cca5",
41
- "@agoric/notifier": "0.6.3-dev-853cca5.0+853cca5",
42
- "@agoric/store": "0.9.3-dev-853cca5.0+853cca5",
43
- "@agoric/time": "0.3.3-dev-853cca5.0+853cca5",
44
- "@agoric/zoe": "0.26.3-dev-853cca5.0+853cca5",
37
+ "@agoric/assert": "0.6.1-dev-01baa28.0+01baa28",
38
+ "@agoric/ertp": "0.16.3-dev-01baa28.0+01baa28",
39
+ "@agoric/import-manager": "0.3.12-dev-01baa28.0+01baa28",
40
+ "@agoric/internal": "0.3.3-dev-01baa28.0+01baa28",
41
+ "@agoric/notifier": "0.6.3-dev-01baa28.0+01baa28",
42
+ "@agoric/store": "0.9.3-dev-01baa28.0+01baa28",
43
+ "@agoric/time": "0.3.3-dev-01baa28.0+01baa28",
44
+ "@agoric/zoe": "0.26.3-dev-01baa28.0+01baa28",
45
45
  "@endo/base64": "^1.0.1",
46
46
  "@endo/bundle-source": "^3.0.2",
47
47
  "@endo/far": "^1.0.2",
@@ -51,7 +51,7 @@
51
51
  "@endo/zip": "^1.0.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@agoric/vats": "0.15.2-dev-853cca5.0+853cca5",
54
+ "@agoric/vats": "0.15.2-dev-01baa28.0+01baa28",
55
55
  "@endo/init": "^1.0.2",
56
56
  "ava": "^5.3.0",
57
57
  "import-meta-resolve": "^2.2.1"
@@ -75,5 +75,5 @@
75
75
  "typeCoverage": {
76
76
  "atLeast": 80.06
77
77
  },
78
- "gitHead": "853cca53c655012a47acf3dd7f48aba04f31b4dc"
78
+ "gitHead": "01baa289630178564af8c04e0298952d6829517d"
79
79
  }
@@ -18,6 +18,9 @@ export const start = () => {
18
18
  });
19
19
  };
20
20
 
21
+ /**
22
+ * @param {{ zoe: ERef<ZoeService> }} opts
23
+ */
21
24
  const makeBundler = ({ zoe }) => {
22
25
  /** @type { Map<string, [string, Uint8Array]>} */
23
26
  const nameToContent = new Map();
@@ -16,7 +16,7 @@ export {};
16
16
  */
17
17
 
18
18
  /**
19
- * @typedef {{ bundleName: string } | { bundleID: string} } ManifestBundleRef
19
+ * @typedef {{fileName?: string} & ({ bundleName: string } | { bundleID: string}) } ManifestBundleRef
20
20
  */
21
21
 
22
22
  /**
@@ -26,10 +26,10 @@ export {};
26
26
  */
27
27
 
28
28
  /**
29
- * @callback InstallBundle
29
+ * @callback InstallEntrypoint
30
30
  * @param {string} srcSpec
31
- * @param {string} bundlePath
32
- * @param {any} [opts]
31
+ * @param {string} [bundlePath]
32
+ * @param {unknown} [opts]
33
33
  * @returns {Promise<ManifestBundleRef>}
34
34
  */
35
35
 
@@ -37,8 +37,8 @@ export {};
37
37
  * @callback ProposalBuilder
38
38
  * @param {{
39
39
  * publishRef: PublishBundleRef,
40
- * install: InstallBundle,
41
- * wrapInstall?: <T>(f: T) => T }
40
+ * install: InstallEntrypoint,
41
+ * wrapInstall?: <T extends InstallEntrypoint>(f: T) => T }
42
42
  * } powers
43
43
  * @param {...any} args
44
44
  * @returns {Promise<ProposalResult>}
@@ -14,6 +14,7 @@ import { E } from '@endo/far';
14
14
  import url from 'url';
15
15
 
16
16
  /** @typedef {ReturnType<import('./endo-pieces-contract.js')['start']>['publicFacet']} BundleMaker */
17
+ /** @typedef {ReturnType<BundleMaker['makeBundler']>} Bundler */
17
18
 
18
19
  export const makeGetBundlerMaker =
19
20
  (homeP, { lookup, bundleSource }) =>
@@ -39,6 +39,7 @@ export const makeWriteCoreProposal = (
39
39
  const { bundleSource, pathResolve } = endowments;
40
40
 
41
41
  let bundlerCache;
42
+ /** @returns {import('./getBundlerMaker.js').Bundler} */
42
43
  const getBundler = () => {
43
44
  if (!bundlerCache) {
44
45
  bundlerCache = E(getBundlerMaker()).makeBundler({
@@ -120,6 +121,7 @@ export const makeWriteCoreProposal = (
120
121
 
121
122
  // Await a reference then publish to the board.
122
123
  const cmds = [];
124
+ /** @param {Promise<import('./externalTypes.js').ManifestBundleRef>} refP */
123
125
  const publishRef = async refP => {
124
126
  const { fileName, ...ref } = await refP;
125
127
  if (fileName) {