@aeriajs/entrypoint 0.0.166 → 0.0.168

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as path from 'node:path';
2
2
  import * as fs from 'node:fs/promises';
3
- import { pathToFileURL } from 'node:url';
3
+ import { dynamicImport } from '@aeriajs/common';
4
4
  let collectionsMemo;
5
5
  let availableRolesMemo;
6
6
  const collectionMemo = {};
@@ -20,7 +20,7 @@ export const getEntrypointPath = async () => {
20
20
  };
21
21
  export const getEntrypoint = async () => {
22
22
  const path = await getEntrypointPath();
23
- return import(pathToFileURL(path.replace(/\\/g, '\\\\')).href);
23
+ return dynamicImport(path);
24
24
  };
25
25
  const internalGetCollections = async () => {
26
26
  const entrypoint = await getEntrypoint();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aeriajs/entrypoint",
3
3
  "type": "module",
4
- "version": "0.0.166",
4
+ "version": "0.0.168",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "@aeriajs/types": "link:../types"
26
26
  },
27
27
  "peerDependencies": {
28
- "@aeriajs/common": "^0.0.158",
28
+ "@aeriajs/common": "^0.0.160",
29
29
  "@aeriajs/types": "^0.0.136"
30
30
  },
31
31
  "scripts": {