@vercube/nitro 1.1.4 → 1.1.6

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 CHANGED
@@ -1,7 +1,6 @@
1
1
  import { createNitroApp } from "./runtime/App.mjs";
2
2
  import { App } from "@vercube/core";
3
3
  import { NitroModule } from "nitro/types";
4
-
5
4
  //#region src/plugin/VercubePlugin.d.ts
6
5
  interface PluginOptions {
7
6
  scanDirs?: string[];
@@ -1,6 +1,5 @@
1
1
  import { App } from "@vercube/core";
2
2
  import { NitroOptions } from "nitro/types";
3
-
4
3
  //#region src/runtime/App.d.ts
5
4
  /**
6
5
  * Create a Vercube application from a Nitro instance.
@@ -1,5 +1,4 @@
1
1
  import { Storage, StorageManager, StorageTypes } from "@vercube/storage";
2
-
3
2
  //#region src/runtime/Storage.d.ts
4
3
  /**
5
4
  * Manages multiple storage instances and provides a unified interface for storage operations.
@@ -29,10 +28,7 @@ declare class NitroStorageManager extends StorageManager {
29
28
  * @param {string} params.key - Key of the item to retrieve
30
29
  * @returns {Promise<T | null>} A promise that resolves with the stored value or null if not found
31
30
  */
32
- getItem<T = unknown>({
33
- storage,
34
- key
35
- }: StorageTypes.GetItem): Promise<T | null>;
31
+ getItem<T = unknown>({ storage, key }: StorageTypes.GetItem): Promise<T | null>;
36
32
  /**
37
33
  * Retrieves multiple items from the specified storage
38
34
  * @template T - Type of the stored value
@@ -41,10 +37,7 @@ declare class NitroStorageManager extends StorageManager {
41
37
  * @param {string[]} params.keys - Keys of the items to retrieve
42
38
  * @returns {Promise<T[]>} A promise that resolves with the stored values or empty array if not found
43
39
  */
44
- getItems<T = unknown>({
45
- storage,
46
- keys
47
- }: StorageTypes.GetItems): Promise<T[]>;
40
+ getItems<T = unknown>({ storage, keys }: StorageTypes.GetItems): Promise<T[]>;
48
41
  /**
49
42
  * Stores an item in the specified storage
50
43
  * @template T - Type of the value to store
@@ -54,12 +47,7 @@ declare class NitroStorageManager extends StorageManager {
54
47
  * @param {T} params.value - Value to store
55
48
  * @returns {Promise<void>} A promise that resolves when the value is stored
56
49
  */
57
- setItem<T = unknown, U = unknown>({
58
- storage,
59
- key,
60
- value,
61
- options
62
- }: StorageTypes.SetItem<T, U>): Promise<void>;
50
+ setItem<T = unknown, U = unknown>({ storage, key, value, options }: StorageTypes.SetItem<T, U>): Promise<void>;
63
51
  /**
64
52
  * Deletes an item from the specified storage
65
53
  * @param {StorageTypes.DeleteItem} params - Parameters for deleting an item
@@ -67,10 +55,7 @@ declare class NitroStorageManager extends StorageManager {
67
55
  * @param {string} params.key - Key of the item to delete
68
56
  * @returns {Promise<void>} A promise that resolves when the item is deleted
69
57
  */
70
- deleteItem({
71
- storage,
72
- key
73
- }: StorageTypes.DeleteItem): Promise<void>;
58
+ deleteItem({ storage, key }: StorageTypes.DeleteItem): Promise<void>;
74
59
  /**
75
60
  * Checks if an item exists in the specified storage
76
61
  * @param {StorageTypes.HasItem} params - Parameters for checking item existence
@@ -78,37 +63,28 @@ declare class NitroStorageManager extends StorageManager {
78
63
  * @param {string} params.key - Key to check for
79
64
  * @returns {Promise<boolean>} A promise that resolves to true if the item exists, false otherwise
80
65
  */
81
- hasItem({
82
- storage,
83
- key
84
- }: StorageTypes.HasItem): Promise<boolean>;
66
+ hasItem({ storage, key }: StorageTypes.HasItem): Promise<boolean>;
85
67
  /**
86
68
  * Retrieves all keys from the specified storage
87
69
  * @param {StorageTypes.GetKeys} params - Parameters for retrieving keys
88
70
  * @param {string} [params.storage] - Name of the storage to get keys from, defaults to 'default'
89
71
  * @returns {Promise<string[]>} A promise that resolves with an array of all keys
90
72
  */
91
- getKeys({
92
- storage
93
- }: StorageTypes.GetKeys): Promise<string[]>;
73
+ getKeys({ storage }: StorageTypes.GetKeys): Promise<string[]>;
94
74
  /**
95
75
  * Clears all items from the specified storage
96
76
  * @param {StorageTypes.Clear} params - Parameters for clearing storage
97
77
  * @param {string} [params.storage] - Name of the storage to clear, defaults to 'default'
98
78
  * @returns {Promise<void>} A promise that resolves when the storage is cleared
99
79
  */
100
- clear({
101
- storage
102
- }: StorageTypes.Clear): Promise<void>;
80
+ clear({ storage }: StorageTypes.Clear): Promise<void>;
103
81
  /**
104
82
  * Gets the number of items in the specified storage
105
83
  * @param {StorageTypes.Size} params - Parameters for getting storage size
106
84
  * @param {string} [params.storage] - Name of the storage to get size of, defaults to 'default'
107
85
  * @returns {Promise<number>} A promise that resolves with the number of items
108
86
  */
109
- size({
110
- storage
111
- }: StorageTypes.Size): Promise<number>;
87
+ size({ storage }: StorageTypes.Size): Promise<number>;
112
88
  /**
113
89
  * Initializes the storage manager
114
90
  * @returns {Promise<void>} A promise that resolves when the storage manager is initialized
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/nitro",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Nitro module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,13 +31,13 @@
31
31
  "chokidar": "5.0.0",
32
32
  "defu": "6.1.7",
33
33
  "nitro": "3.0.260610-beta",
34
- "oxc-parser": "0.138.0",
34
+ "oxc-parser": "0.140.0",
35
35
  "pathe": "2.0.3",
36
36
  "tinyglobby": "0.2.17",
37
- "@vercube/di": "1.1.4",
38
- "@vercube/core": "1.1.4",
39
- "@vercube/storage": "1.1.4",
40
- "@vercube/scan": "1.1.4"
37
+ "@vercube/core": "1.1.6",
38
+ "@vercube/di": "1.1.6",
39
+ "@vercube/scan": "1.1.6",
40
+ "@vercube/storage": "1.1.6"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"