@agoric/xsnap 0.14.3-dev-e077dea.0.e077dea → 0.14.3-dev-f6d536e.0.f6d536e

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/xsnap",
3
- "version": "0.14.3-dev-e077dea.0.e077dea",
3
+ "version": "0.14.3-dev-f6d536e.0.f6d536e",
4
4
  "description": "Snapshotting VM worker based on Moddable's XS Javascript engine",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -28,8 +28,8 @@
28
28
  "test:xs": "exit 0"
29
29
  },
30
30
  "dependencies": {
31
- "@agoric/internal": "0.3.3-dev-e077dea.0.e077dea",
32
- "@agoric/xsnap-lockdown": "0.14.1-dev-e077dea.0.e077dea",
31
+ "@agoric/internal": "0.3.3-dev-f6d536e.0.f6d536e",
32
+ "@agoric/xsnap-lockdown": "0.14.1-dev-f6d536e.0.f6d536e",
33
33
  "@endo/bundle-source": "^4.1.2",
34
34
  "@endo/errors": "^1.2.13",
35
35
  "@endo/eventual-send": "^1.3.4",
@@ -80,5 +80,5 @@
80
80
  "engines": {
81
81
  "node": "^20.9 || ^22.11"
82
82
  },
83
- "gitHead": "e077dea89e84b0785c5be07d6a137c0980f94dbf"
83
+ "gitHead": "f6d536e4bdfe4e197f68a00dbc591d2caa02535c"
84
84
  }
package/src/ava-xs.js CHANGED
@@ -5,7 +5,7 @@ import { spawn } from 'child_process';
5
5
  import { type as osType } from 'os';
6
6
  import { promises as fsp } from 'fs';
7
7
  import path from 'path';
8
- import glob from 'glob';
8
+ import { glob } from 'glob';
9
9
  import bundleSource from '@endo/bundle-source';
10
10
 
11
11
  import { main, makeBundleResolve } from './avaXS.js';
package/src/avaXS.js CHANGED
@@ -224,7 +224,7 @@ async function runTestScript(
224
224
  * @param {string} [options.packageFilename]
225
225
  * @param {{
226
226
  * readFile: typeof promises.readFile,
227
- * glob: typeof import('glob')
227
+ * glob: (pattern: string) => Promise<string[]>
228
228
  * }} io
229
229
  * @returns {Promise<AvaXSConfig>}
230
230
  *
@@ -237,15 +237,6 @@ async function runTestScript(
237
237
  * @property {string} [titleMatch]
238
238
  */
239
239
  async function avaConfig(args, options, { glob, readFile }) {
240
- /**
241
- * @param {string} pattern
242
- * @returns {Promise<string[]>}
243
- */
244
- const globFiles = pattern =>
245
- new Promise((res, rej) =>
246
- glob(pattern, {}, (err, matches) => (err ? rej(err) : res(matches))),
247
- );
248
-
249
240
  /** @type {string[]} */
250
241
  let files = [];
251
242
  let debug = false;
@@ -269,7 +260,7 @@ async function avaConfig(args, options, { glob, readFile }) {
269
260
  break;
270
261
  default: {
271
262
  // The argument is a glob for tests to run.
272
- const argFiles = await globFiles(arg);
263
+ const argFiles = await glob(arg);
273
264
  files.push(...argFiles);
274
265
  }
275
266
  }
@@ -299,7 +290,7 @@ async function avaConfig(args, options, { glob, readFile }) {
299
290
  if (!files.length) {
300
291
  Array.isArray(filePatterns) ||
301
292
  Fail`ava.files: expected Array: ${q(filePatterns)}`;
302
- files = (await Promise.all(filePatterns.map(globFiles))).flat();
293
+ files = (await Promise.all(filePatterns.map(glob))).flat();
303
294
  }
304
295
  Array.isArray(require) || Fail`ava.requires: expected Array: ${q(require)}`;
305
296
  const config = { files, require, exclude, debug, verbose, titleMatch };
@@ -316,7 +307,7 @@ async function avaConfig(args, options, { glob, readFile }) {
316
307
  * resolve: typeof resolve,
317
308
  * dirname: typeof dirname,
318
309
  * basename: typeof basename,
319
- * glob: typeof import('glob'),
310
+ * glob: (pattern: string) => Promise<string[]>,
320
311
  * }} io
321
312
  */
322
313
  export async function main(