@agoric/spawner 0.6.9 → 0.6.10-u23.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/spawner",
3
- "version": "0.6.9",
3
+ "version": "0.6.10-u23.0",
4
4
  "description": "Wrapper for JavaScript map",
5
5
  "type": "module",
6
6
  "main": "./src/contractHost.js",
@@ -8,14 +8,12 @@
8
8
  "node": "^20.9 || ^22.11"
9
9
  },
10
10
  "scripts": {
11
- "build": "yarn build:bundles",
12
- "build:bundles": "node scripts/build-bundles.js",
13
11
  "test": "ava",
14
12
  "test:c8": "c8 --all ${C8_OPTIONS:-} ava",
15
13
  "test:xs": "exit 0",
16
14
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
17
15
  "lint-fix": "yarn lint:eslint --fix",
18
- "lint:eslint": "yarn run -T eslint ."
16
+ "lint:eslint": "node ../../scripts/eslint-repo.mjs ."
19
17
  },
20
18
  "repository": {
21
19
  "type": "git",
@@ -37,11 +35,11 @@
37
35
  "@endo/marshal": "^1.8.0"
38
36
  },
39
37
  "devDependencies": {
40
- "@agoric/internal": "0.4.0",
41
- "@agoric/swingset-vat": "0.33.0",
38
+ "@agoric/internal": "0.5.0-u23.0",
39
+ "@agoric/swingset-vat": "0.34.0-u23.0",
42
40
  "@endo/bundle-source": "^4.1.2",
43
41
  "@endo/init": "^1.1.12",
44
- "ava": "^5.3.0",
42
+ "ava": "^6.4.1",
45
43
  "c8": "^10.1.3"
46
44
  },
47
45
  "files": [
@@ -59,10 +57,11 @@
59
57
  "require": [
60
58
  "@endo/init/debug.js"
61
59
  ],
60
+ "workerThreads": false,
62
61
  "timeout": "2m"
63
62
  },
64
63
  "typeCoverage": {
65
64
  "atLeast": 55.05
66
65
  },
67
- "gitHead": "0922d0447ab8fae9d2d87415964403330b5ca313"
66
+ "gitHead": "1147be15b0704de17204d04e2407fa3192b98a1c"
68
67
  }
@@ -4,10 +4,9 @@ import { assert } from '@endo/errors';
4
4
  import { E } from '@endo/eventual-send';
5
5
  import { Far } from '@endo/marshal';
6
6
 
7
- // spawnBundle is built with 'yarn build'
8
- import spawnBundle from '../bundles/bundle-spawn.js';
9
-
10
- function makeSpawner(vatAdminSvc) {
7
+ function makeSpawner(vatAdminSvc, spawnBundleCapP = undefined) {
8
+ const spawnBundleRefP =
9
+ spawnBundleCapP || E(vatAdminSvc).getNamedBundleCap('spawn');
11
10
  return Far('spawner', {
12
11
  install(bundle, oldModuleFormat) {
13
12
  assert(!oldModuleFormat, 'oldModuleFormat not supported');
@@ -15,7 +14,8 @@ function makeSpawner(vatAdminSvc) {
15
14
  async spawn(argsP) {
16
15
  const meter = await E(vatAdminSvc).createUnlimitedMeter();
17
16
  const opts = { name: 'spawn', meter };
18
- const { root } = await E(vatAdminSvc).createVat(spawnBundle, opts);
17
+ const spawnBundleRef = await spawnBundleRefP;
18
+ const { root } = await E(vatAdminSvc).createVat(spawnBundleRef, opts);
19
19
  return E(E(root).loadBundle(bundle)).start(argsP);
20
20
  },
21
21
  });