@aeriajs/common 0.0.159 → 0.0.160

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,6 +1,6 @@
1
- import { pathToFileURL } from 'node:url';
2
- import * as path from 'node:path';
3
- export const dynamicImport = (importPath) => {
4
- const fixedPath = importPath.split(path.sep).join('/');
1
+ export const dynamicImport = async (importPath) => {
2
+ const { pathToFileURL } = await import('node:url');
3
+ const { sep } = await import('node:path');
4
+ const fixedPath = importPath.split(sep).join('/');
5
5
  return import(pathToFileURL(fixedPath).href);
6
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aeriajs/common",
3
3
  "type": "module",
4
- "version": "0.0.159",
4
+ "version": "0.0.160",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",