@cyberskill/shared 1.10.0 → 1.12.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/commands.cjs +1 -1
- package/dist/commands.js +1 -1
- package/dist/configs/index.cjs +1 -1
- package/dist/configs/index.js +1 -1
- package/dist/configs/lint-staged/base.cjs +1 -0
- package/dist/configs/lint-staged/base.js +1 -0
- package/dist/controllers/index.cjs +1 -1
- package/dist/controllers/index.js +1 -1
- package/dist/controllers/mongoose.cjs +1 -1
- package/dist/controllers/mongoose.js +1 -1
- package/dist/hooks/react/index.cjs +1 -1
- package/dist/hooks/react/index.js +1 -1
- package/dist/hooks/react/use-storage.cjs +1 -1
- package/dist/hooks/react/use-storage.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +0 -36
- package/dist/index.d.ts +0 -36
- package/dist/index.js +1 -1
- package/dist/utils/command-error.cjs +1 -1
- package/dist/utils/command-error.js +1 -1
- package/dist/utils/command-log.cjs +1 -1
- package/dist/utils/command-log.js +1 -1
- package/dist/utils/command.cjs +1 -1
- package/dist/utils/command.js +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/npm-package.cjs +1 -1
- package/dist/utils/npm-package.js +1 -1
- package/dist/utils/storage.cjs +1 -1
- package/dist/utils/storage.js +1 -1
- package/package.json +25 -5
- /package/dist/configs/commitlint/{commitlint.base.cjs → base.cjs} +0 -0
- /package/dist/configs/commitlint/{commitlint.base.js → base.js} +0 -0
- /package/dist/configs/eslint/{eslint.base.cjs → base.cjs} +0 -0
- /package/dist/configs/eslint/{eslint.base.js → base.js} +0 -0
- /package/dist/configs/eslint/{eslint.nestjs.cjs → nestjs.cjs} +0 -0
- /package/dist/configs/eslint/{eslint.nestjs.js → nestjs.js} +0 -0
- /package/dist/configs/eslint/{eslint.nextjs.cjs → nextjs.cjs} +0 -0
- /package/dist/configs/eslint/{eslint.nextjs.js → nextjs.js} +0 -0
- /package/dist/configs/eslint/{eslint.nodejs.cjs → nodejs.cjs} +0 -0
- /package/dist/configs/eslint/{eslint.nodejs.js → nodejs.js} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -668,49 +668,13 @@ declare function isCurrentProject(INIT_CWD: string, PACKAGE_NAME: string): boole
|
|
|
668
668
|
declare const serializer: I_Serializer<any>;
|
|
669
669
|
|
|
670
670
|
declare const storage: {
|
|
671
|
-
/**
|
|
672
|
-
* Get the value of a key.
|
|
673
|
-
* @param key The key to retrieve.
|
|
674
|
-
* @returns A promise that resolves to the value associated with the key, or `null` if the key doesn't exist.
|
|
675
|
-
*/
|
|
676
671
|
get<T = unknown>(key: string): Promise<T | null>;
|
|
677
|
-
/**
|
|
678
|
-
* Set the value for a key.
|
|
679
|
-
* @param key The key to set.
|
|
680
|
-
* @param value The value to store.
|
|
681
|
-
* @returns A promise that resolves once the value is stored.
|
|
682
|
-
*/
|
|
683
672
|
set<T = unknown>(key: string, value: T): Promise<void>;
|
|
684
|
-
/**
|
|
685
|
-
* Remove the value associated with a key.
|
|
686
|
-
* @param key The key to remove.
|
|
687
|
-
* @returns A promise that resolves once the key is removed.
|
|
688
|
-
*/
|
|
689
673
|
remove(key: string): Promise<void>;
|
|
690
|
-
/**
|
|
691
|
-
* Get all keys in the storage.
|
|
692
|
-
* @returns A promise that resolves to an array of all keys.
|
|
693
|
-
*/
|
|
694
674
|
keys(): Promise<string[]>;
|
|
695
|
-
/**
|
|
696
|
-
* Get all values in the storage.
|
|
697
|
-
* @returns A promise that resolves to an array of all values.
|
|
698
|
-
*/
|
|
699
675
|
values<T = unknown>(): Promise<T[]>;
|
|
700
|
-
/**
|
|
701
|
-
* Get all entries in the storage as [key, value] tuples.
|
|
702
|
-
* @returns A promise that resolves to an array of entries.
|
|
703
|
-
*/
|
|
704
676
|
entries<T = unknown>(): Promise<[string, T][]>;
|
|
705
|
-
/**
|
|
706
|
-
* Clear all keys and values in the storage.
|
|
707
|
-
* @returns A promise that resolves once the storage is cleared.
|
|
708
|
-
*/
|
|
709
677
|
clear(): Promise<void>;
|
|
710
|
-
/**
|
|
711
|
-
* Get the number of items in the storage.
|
|
712
|
-
* @returns A promise that resolves to the number of keys stored.
|
|
713
|
-
*/
|
|
714
678
|
length(): Promise<number>;
|
|
715
679
|
};
|
|
716
680
|
|
package/dist/index.d.ts
CHANGED
|
@@ -668,49 +668,13 @@ declare function isCurrentProject(INIT_CWD: string, PACKAGE_NAME: string): boole
|
|
|
668
668
|
declare const serializer: I_Serializer<any>;
|
|
669
669
|
|
|
670
670
|
declare const storage: {
|
|
671
|
-
/**
|
|
672
|
-
* Get the value of a key.
|
|
673
|
-
* @param key The key to retrieve.
|
|
674
|
-
* @returns A promise that resolves to the value associated with the key, or `null` if the key doesn't exist.
|
|
675
|
-
*/
|
|
676
671
|
get<T = unknown>(key: string): Promise<T | null>;
|
|
677
|
-
/**
|
|
678
|
-
* Set the value for a key.
|
|
679
|
-
* @param key The key to set.
|
|
680
|
-
* @param value The value to store.
|
|
681
|
-
* @returns A promise that resolves once the value is stored.
|
|
682
|
-
*/
|
|
683
672
|
set<T = unknown>(key: string, value: T): Promise<void>;
|
|
684
|
-
/**
|
|
685
|
-
* Remove the value associated with a key.
|
|
686
|
-
* @param key The key to remove.
|
|
687
|
-
* @returns A promise that resolves once the key is removed.
|
|
688
|
-
*/
|
|
689
673
|
remove(key: string): Promise<void>;
|
|
690
|
-
/**
|
|
691
|
-
* Get all keys in the storage.
|
|
692
|
-
* @returns A promise that resolves to an array of all keys.
|
|
693
|
-
*/
|
|
694
674
|
keys(): Promise<string[]>;
|
|
695
|
-
/**
|
|
696
|
-
* Get all values in the storage.
|
|
697
|
-
* @returns A promise that resolves to an array of all values.
|
|
698
|
-
*/
|
|
699
675
|
values<T = unknown>(): Promise<T[]>;
|
|
700
|
-
/**
|
|
701
|
-
* Get all entries in the storage as [key, value] tuples.
|
|
702
|
-
* @returns A promise that resolves to an array of entries.
|
|
703
|
-
*/
|
|
704
676
|
entries<T = unknown>(): Promise<[string, T][]>;
|
|
705
|
-
/**
|
|
706
|
-
* Clear all keys and values in the storage.
|
|
707
|
-
* @returns A promise that resolves once the storage is cleared.
|
|
708
|
-
*/
|
|
709
677
|
clear(): Promise<void>;
|
|
710
|
-
/**
|
|
711
|
-
* Get the number of items in the storage.
|
|
712
|
-
* @returns A promise that resolves to the number of keys stored.
|
|
713
|
-
*/
|
|
714
678
|
length(): Promise<number>;
|
|
715
679
|
};
|
|
716
680
|
|