silgi 0.43.1 → 0.43.2
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/dist/cli/module/scan.mjs +3 -5
- package/dist/core/index.mjs +1 -1
- package/dist/core/utils/resolver.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/kit/index.mjs +1 -1
- package/dist/kit/resolve.mjs +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +2 -2
package/dist/cli/module/scan.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { scanSilgiExports } from "../scan/scanExportFile.mjs";
|
|
2
2
|
import { consola as consola$1 } from "consola";
|
|
3
3
|
import { resolve } from "pathe";
|
|
4
|
-
import { directoryToURL,
|
|
4
|
+
import { directoryToURL, resolveAlias } from "silgi/kit";
|
|
5
5
|
import { scanExports } from "unimport";
|
|
6
6
|
import { existsSync, promises } from "node:fs";
|
|
7
7
|
import { isRelative } from "ufo";
|
|
@@ -60,10 +60,8 @@ async function _resolveSilgiModule(silgiModule, silgi) {
|
|
|
60
60
|
exports: _exports.map(({ from,...rest }) => rest)
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
await scanSilgiExports(runtimeFolder.pathname, buildTimeModuleMeta._packageName);
|
|
66
|
-
}
|
|
63
|
+
const runtimeFolder = new URL("runtime", src);
|
|
64
|
+
await scanSilgiExports(runtimeFolder.pathname, buildTimeModuleMeta._packageName);
|
|
67
65
|
} catch (error) {
|
|
68
66
|
const code = error.code;
|
|
69
67
|
if (code === "MODULE_NOT_FOUND" || code === "ERR_PACKAGE_PATH_NOT_EXPORTED" || code === "ERR_MODULE_NOT_FOUND" || code === "ERR_UNSUPPORTED_DIR_IMPORT" || code === "ENOTDIR") throw new TypeError(`Could not load \`${silgiModule}\`. Is it installed?`);
|
package/dist/core/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { createStorage, useSilgiStorage } from "./utils/storage.mjs";
|
|
|
7
7
|
import { createSilgi } from "./createSilgi.mjs";
|
|
8
8
|
import { SilgiHttpEvent } from "./event.mjs";
|
|
9
9
|
import { handleResponse, kHandled, kNotFound } from "./response.mjs";
|
|
10
|
-
import { createResolver, getUrlPrefix } from "./utils/resolver.mjs";
|
|
10
|
+
import { createResolver$1 as createResolver, getUrlPrefix } from "./utils/resolver.mjs";
|
|
11
11
|
import { getWebsocket, handler, middleware, silgiFetch } from "./silgi.mjs";
|
|
12
12
|
import { storageMount } from "./storage.mjs";
|
|
13
13
|
import { createEventStream } from "./utils/event-stream.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { createStorage, useSilgiStorage } from "./core/utils/storage.mjs";
|
|
|
7
7
|
import { createSilgi } from "./core/createSilgi.mjs";
|
|
8
8
|
import { SilgiHttpEvent } from "./core/event.mjs";
|
|
9
9
|
import { handleResponse, kHandled, kNotFound } from "./core/response.mjs";
|
|
10
|
-
import { createResolver, getUrlPrefix } from "./core/utils/resolver.mjs";
|
|
10
|
+
import { createResolver$1 as createResolver, getUrlPrefix } from "./core/utils/resolver.mjs";
|
|
11
11
|
import { getWebsocket, handler, middleware, silgiFetch } from "./core/silgi.mjs";
|
|
12
12
|
import { storageMount } from "./core/storage.mjs";
|
|
13
13
|
import { createEventStream } from "./core/utils/event-stream.mjs";
|
package/dist/kit/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import { useLogger } from "./logger.mjs";
|
|
|
16
16
|
import { MigrationStatus, generateMigration, getMigration, listMigrations, migrationDown, migrationUp } from "./migration.mjs";
|
|
17
17
|
import { defineSilgiModule } from "./module.mjs";
|
|
18
18
|
import { defineSilgiPreset } from "./preset.mjs";
|
|
19
|
-
import { createResolver
|
|
19
|
+
import { createResolver, resolveAlias, resolvePath, resolveSilgiModule } from "./resolve.mjs";
|
|
20
20
|
import { addTemplate, normalizeTemplate } from "./template.mjs";
|
|
21
21
|
import { getIpAddress, useRequest } from "./useRequest.mjs";
|
|
22
22
|
|
package/dist/kit/resolve.mjs
CHANGED
|
@@ -79,4 +79,4 @@ async function resolveSilgiModule(base, paths) {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
82
|
-
export { createResolver
|
|
82
|
+
export { createResolver, resolveAlias$1 as resolveAlias, resolvePath$1 as resolvePath, resolveSilgiModule };
|
package/dist/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.43.
|
|
4
|
+
"version": "0.43.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@nuxt/schema": "^3.17.4",
|
|
137
137
|
"@silgi/ecosystem": "^0.7.2",
|
|
138
138
|
"@types/micromatch": "^4.0.9",
|
|
139
|
-
"@types/node": "^22.15.
|
|
139
|
+
"@types/node": "^22.15.24",
|
|
140
140
|
"@types/semver": "^7.7.0",
|
|
141
141
|
"@vitest/coverage-v8": "3.0.5",
|
|
142
142
|
"eslint": "^9.27.0",
|