@exodus/test 1.0.0-rc.68 → 1.0.0-rc.69

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/bundler/bundle.js CHANGED
@@ -224,7 +224,7 @@ export const build = async (...files) => {
224
224
  querystring: resolveRequire('querystring-es3'),
225
225
  stream: resolveRequire('stream-browserify'),
226
226
  timers: resolveRequire('timers-browserify'),
227
- url: dirname(resolveRequire('url/')),
227
+ url: api('url.cjs'),
228
228
  util: dirname(resolveRequire('util/')),
229
229
  zlib: resolveRequire('browserify-zlib'),
230
230
  }
@@ -284,7 +284,8 @@ export const build = async (...files) => {
284
284
  // Node.js (except node:test)
285
285
  ...Object.fromEntries(Object.entries(nodeUnprefixed).map(([k, v]) => [`node:${k}`, v])),
286
286
  ...nodeUnprefixed,
287
- 'node:url': api('url.cjs'), // FIXME: load this under 'url' too
287
+ // Needed for polyfills but name conflicts with Node.js modules
288
+ 'url/url.js': resolveRequire('url/url.js'),
288
289
  // expect-related deps
289
290
  'ansi-styles': api('ansi-styles.cjs'),
290
291
  'jest-util': api('jest-util.js'),
@@ -26,3 +26,7 @@ function fileURLToPath(url, options) {
26
26
  }
27
27
 
28
28
  module.exports = { ...urlLib, pathToFileURL, fileURLToPath }
29
+
30
+ const defineExport = (k, get) => Object.defineProperty(module.exports, k, { get, enumerable: true })
31
+ defineExport('URL', () => globalThis.URL)
32
+ defineExport('URLSearchParams', () => globalThis.URLSearchParams)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/test",
3
- "version": "1.0.0-rc.68",
3
+ "version": "1.0.0-rc.69",
4
4
  "author": "Exodus Movement, Inc.",
5
5
  "description": "A test suite runner",
6
6
  "homepage": "https://github.com/ExodusMovement/test",