@cspell/dynamic-import 6.26.2 → 6.26.3

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var node_path = require('node:path');
4
- var node_url = require('node:url');
3
+ var path = require('path');
4
+ var url = require('url');
5
5
 
6
6
  /**
7
7
  * Thunk Layer for `import` to allow dynamic imports.
@@ -46,13 +46,13 @@ async function dynamicImportFrom(moduleName, paths) {
46
46
 
47
47
  for (const parent of paths) {
48
48
  try {
49
- const url =
49
+ const url$1 =
50
50
  typeof parent === 'string'
51
51
  ? parent.startsWith('file://')
52
52
  ? new URL(parent)
53
- : node_url.pathToFileURL(parent + node_path.sep)
53
+ : url.pathToFileURL(parent + path.sep)
54
54
  : parent;
55
- const location = await resolve(moduleName, url);
55
+ const location = await resolve(moduleName, url$1);
56
56
  return await dImport(location);
57
57
  } catch (err) {
58
58
  lastError = err;
@@ -1,6 +1,6 @@
1
1
  import { dImport } from './dImport.js';
2
- import { sep as pathSep } from 'node:path';
3
- import { pathToFileURL } from 'node:url';
2
+ import { sep as pathSep } from 'path';
3
+ import { pathToFileURL } from 'url';
4
4
 
5
5
  /**
6
6
  * Lazy load the importer so we can use an ESM packages inside a cjs file.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "6.26.2",
6
+ "version": "6.26.3",
7
7
  "description": "Dynamic Module Loader",
8
8
  "keywords": [
9
9
  "module",
@@ -56,5 +56,5 @@
56
56
  "dependencies": {
57
57
  "import-meta-resolve": "^2.2.1"
58
58
  },
59
- "gitHead": "9c983b5f96c3d7b089e49178ab0b437b5eada256"
59
+ "gitHead": "b8c6e0a31c58ad61b4814f92dccfe3df4999ff81"
60
60
  }