@vercube/nitro 1.2.0 → 1.3.0
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/index.d.mts +3 -3
- package/dist/index.mjs +3 -2
- package/dist/runtime/App.d.mts +2 -3
- package/dist/runtime/Storage.d.mts +2 -3
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -23,9 +23,9 @@ interface PluginOptions {
|
|
|
23
23
|
*/
|
|
24
24
|
setupFile?: string;
|
|
25
25
|
}
|
|
26
|
-
declare function vercubeNitro(options?: PluginOptions): NitroModule;
|
|
26
|
+
export declare function vercubeNitro(options?: PluginOptions): NitroModule;
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/helpers/helpers.d.ts
|
|
29
|
-
declare function useVercubeApp(): App | undefined;
|
|
29
|
+
export declare function useVercubeApp(): App | undefined;
|
|
30
30
|
//#endregion
|
|
31
|
-
export { createNitroApp
|
|
31
|
+
export { createNitroApp };
|
package/dist/index.mjs
CHANGED
|
@@ -118,12 +118,13 @@ function setupHooks(nitro, options) {
|
|
|
118
118
|
* are invisible to Nitro. This watcher bridges that gap.
|
|
119
119
|
*/
|
|
120
120
|
if (nitro.options.dev) {
|
|
121
|
-
const
|
|
121
|
+
const scanDirs = nitro.options.scanDirs.flatMap((dir) => [
|
|
122
122
|
join(dir, nitro.options.apiDir || "api"),
|
|
123
123
|
join(dir, nitro.options.routesDir || "routes"),
|
|
124
124
|
join(dir, "middleware"),
|
|
125
125
|
...options?.scanDirs ?? []
|
|
126
|
-
])
|
|
126
|
+
]);
|
|
127
|
+
const watcher = watch(scanDirs, { ignoreInitial: true }).on("change", async () => {
|
|
127
128
|
await nitro.hooks.callHook("compiled", nitro);
|
|
128
129
|
});
|
|
129
130
|
nitro.hooks.hook("close", () => watcher.close());
|
package/dist/runtime/App.d.mts
CHANGED
|
@@ -6,6 +6,5 @@ import { NitroOptions } from "nitro/types";
|
|
|
6
6
|
* @param nitro - The Nitro instance.
|
|
7
7
|
* @returns The Vercube application.
|
|
8
8
|
*/
|
|
9
|
-
declare function createNitroApp(nitroOpts: NitroOptions): Promise<App>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { createNitroApp };
|
|
9
|
+
export declare function createNitroApp(nitroOpts: NitroOptions): Promise<App>;
|
|
10
|
+
//#endregion
|
|
@@ -5,7 +5,7 @@ import { Storage, StorageManager, StorageTypes } from "@vercube/storage";
|
|
|
5
5
|
* Each storage instance is identified by a unique name and implements the Storage interface.
|
|
6
6
|
* This class handles initialization, registration, and delegation of storage operations.
|
|
7
7
|
*/
|
|
8
|
-
declare class NitroStorageManager extends StorageManager {
|
|
8
|
+
export declare class NitroStorageManager extends StorageManager {
|
|
9
9
|
/**
|
|
10
10
|
* Mounts a new storage instance with the specified name
|
|
11
11
|
* @param {StorageTypes.Mount} params - Mount parameters containing name and storage implementation
|
|
@@ -91,5 +91,4 @@ declare class NitroStorageManager extends StorageManager {
|
|
|
91
91
|
*/
|
|
92
92
|
protected init(): Promise<void>;
|
|
93
93
|
}
|
|
94
|
-
//#endregion
|
|
95
|
-
export { NitroStorageManager };
|
|
94
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/nitro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Nitro module for Vercube framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"framework"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@vercube/core": "1.3.0",
|
|
32
|
+
"@vercube/di": "1.3.0",
|
|
33
|
+
"@vercube/scan": "1.3.0",
|
|
34
|
+
"@vercube/storage": "1.3.0",
|
|
31
35
|
"chokidar": "5.0.0",
|
|
32
36
|
"defu": "6.1.7",
|
|
33
|
-
"nitro": "3.0.
|
|
34
|
-
"oxc-parser": "0.
|
|
37
|
+
"nitro": "3.0.260903-beta",
|
|
38
|
+
"oxc-parser": "0.151.0",
|
|
35
39
|
"pathe": "2.0.3",
|
|
36
|
-
"tinyglobby": "0.2.17"
|
|
37
|
-
"@vercube/core": "1.2.0",
|
|
38
|
-
"@vercube/scan": "1.2.0",
|
|
39
|
-
"@vercube/di": "1.2.0",
|
|
40
|
-
"@vercube/storage": "1.2.0"
|
|
40
|
+
"tinyglobby": "0.2.17"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|