@cyberskill/shared 1.6.1 → 1.8.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/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/useLocalStorage.cjs +1 -1
- package/dist/hooks/react/useLocalStorage.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +756 -32
- package/dist/index.d.ts +756 -32
- 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 -0
- package/dist/utils/storage.js +1 -0
- package/package.json +5 -45
- package/dist/commands.d.cts +0 -1
- package/dist/commands.d.ts +0 -1
- package/dist/components/react/index.d.cts +0 -2
- package/dist/components/react/index.d.ts +0 -2
- package/dist/components/react/loading/index.d.cts +0 -11
- package/dist/components/react/loading/index.d.ts +0 -11
- package/dist/components/react/loading/loading.module.d.cts +0 -2
- package/dist/components/react/loading/loading.module.d.ts +0 -2
- package/dist/configs/commitlint/commitlint.base.d.cts +0 -5
- package/dist/configs/commitlint/commitlint.base.d.ts +0 -5
- package/dist/configs/eslint/eslint.base.d.cts +0 -1154
- package/dist/configs/eslint/eslint.base.d.ts +0 -1154
- package/dist/configs/eslint/eslint.nestjs.d.cts +0 -1156
- package/dist/configs/eslint/eslint.nestjs.d.ts +0 -1156
- package/dist/configs/eslint/eslint.nextjs.d.cts +0 -1156
- package/dist/configs/eslint/eslint.nextjs.d.ts +0 -1156
- package/dist/configs/eslint/eslint.nodejs.d.cts +0 -1156
- package/dist/configs/eslint/eslint.nodejs.d.ts +0 -1156
- package/dist/configs/eslint/vite-react.d.cts +0 -1157
- package/dist/configs/eslint/vite-react.d.ts +0 -1157
- package/dist/configs/graphql/graphql-codegen.d.cts +0 -8
- package/dist/configs/graphql/graphql-codegen.d.ts +0 -8
- package/dist/configs/graphql/index.d.cts +0 -5
- package/dist/configs/graphql/index.d.ts +0 -5
- package/dist/configs/i18n/react/i18next.d.cts +0 -6
- package/dist/configs/i18n/react/i18next.d.ts +0 -6
- package/dist/configs/i18n/react/index.d.cts +0 -2
- package/dist/configs/i18n/react/index.d.ts +0 -2
- package/dist/configs/index.d.cts +0 -9
- package/dist/configs/index.d.ts +0 -9
- package/dist/configs/vitest/react/e2e.d.cts +0 -6
- package/dist/configs/vitest/react/e2e.d.ts +0 -6
- package/dist/configs/vitest/react/unit.d.cts +0 -6
- package/dist/configs/vitest/react/unit.d.ts +0 -6
- package/dist/configs/vitest/react/unit.setup.d.cts +0 -2
- package/dist/configs/vitest/react/unit.setup.d.ts +0 -2
- package/dist/constants/dirname.d.cts +0 -3
- package/dist/constants/dirname.d.ts +0 -3
- package/dist/constants/index.d.cts +0 -2
- package/dist/constants/index.d.ts +0 -2
- package/dist/constants/response-status.d.cts +0 -252
- package/dist/constants/response-status.d.ts +0 -252
- package/dist/contexts/react/index.d.cts +0 -4
- package/dist/contexts/react/index.d.ts +0 -4
- package/dist/contexts/react/loading.d.cts +0 -7
- package/dist/contexts/react/loading.d.ts +0 -7
- package/dist/controllers/index.d.cts +0 -5
- package/dist/controllers/index.d.ts +0 -5
- package/dist/controllers/migration.d.cts +0 -55
- package/dist/controllers/migration.d.ts +0 -55
- package/dist/controllers/mongoose.d.cts +0 -25
- package/dist/controllers/mongoose.d.ts +0 -25
- package/dist/hooks/react/index.d.cts +0 -6
- package/dist/hooks/react/index.d.ts +0 -6
- package/dist/hooks/react/useLoading.d.cts +0 -7
- package/dist/hooks/react/useLoading.d.ts +0 -7
- package/dist/hooks/react/useLocalStorage.d.cts +0 -5
- package/dist/hooks/react/useLocalStorage.d.ts +0 -5
- package/dist/providers/react/apollo-client.d.cts +0 -11
- package/dist/providers/react/apollo-client.d.ts +0 -11
- package/dist/providers/react/index.d.cts +0 -6
- package/dist/providers/react/index.d.ts +0 -6
- package/dist/providers/react/loading.d.cts +0 -10
- package/dist/providers/react/loading.d.ts +0 -10
- package/dist/typescript/command.d.cts +0 -41
- package/dist/typescript/command.d.ts +0 -41
- package/dist/typescript/config.d.cts +0 -5
- package/dist/typescript/config.d.ts +0 -5
- package/dist/typescript/index.d.cts +0 -10
- package/dist/typescript/index.d.ts +0 -10
- package/dist/typescript/log.d.cts +0 -10
- package/dist/typescript/log.d.ts +0 -10
- package/dist/typescript/mongoose.d.cts +0 -163
- package/dist/typescript/mongoose.d.ts +0 -163
- package/dist/typescript/react.d.cts +0 -26
- package/dist/typescript/react.d.ts +0 -26
- package/dist/typescript/serializer.d.cts +0 -6
- package/dist/typescript/serializer.d.ts +0 -6
- package/dist/utils/command-error.d.cts +0 -18
- package/dist/utils/command-error.d.ts +0 -18
- package/dist/utils/command-log.d.cts +0 -3
- package/dist/utils/command-log.d.ts +0 -3
- package/dist/utils/command-spinner.d.cts +0 -11
- package/dist/utils/command-spinner.d.ts +0 -11
- package/dist/utils/command.d.cts +0 -5
- package/dist/utils/command.d.ts +0 -5
- package/dist/utils/index.d.cts +0 -25
- package/dist/utils/index.d.ts +0 -25
- package/dist/utils/local-storage.cjs +0 -1
- package/dist/utils/local-storage.d.cts +0 -50
- package/dist/utils/local-storage.d.ts +0 -50
- package/dist/utils/local-storage.js +0 -1
- package/dist/utils/log.d.cts +0 -5
- package/dist/utils/log.d.ts +0 -5
- package/dist/utils/mongoose.d.cts +0 -34
- package/dist/utils/mongoose.d.ts +0 -34
- package/dist/utils/npm-package.d.cts +0 -15
- package/dist/utils/npm-package.d.ts +0 -15
- package/dist/utils/serializer.d.cts +0 -7
- package/dist/utils/serializer.d.ts +0 -7
- package/dist/utils/validate.d.cts +0 -33
- package/dist/utils/validate.d.ts +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
declare const validate: {
|
|
2
|
-
common: {
|
|
3
|
-
/**
|
|
4
|
-
* Check if a value is empty (null, undefined, empty string, empty array, or empty object).
|
|
5
|
-
* @param {unknown} value - The value to check.
|
|
6
|
-
* @returns {boolean} - True if the value is empty; otherwise, false.
|
|
7
|
-
*/
|
|
8
|
-
isEmpty(value: unknown): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Validator to check if a value is not empty.
|
|
11
|
-
* @returns {(value: unknown) => Promise<boolean>} - The validation function.
|
|
12
|
-
*/
|
|
13
|
-
isEmptyValidator<T>(): (this: T, value: unknown) => Promise<boolean>;
|
|
14
|
-
/**
|
|
15
|
-
* Validator to check if a value is unique in specified fields.
|
|
16
|
-
* @param {string[]} fields - Fields to check for uniqueness.
|
|
17
|
-
* @returns {(value: unknown) => Promise<boolean>} - The validation function.
|
|
18
|
-
*/
|
|
19
|
-
isUniqueValidator<T extends {
|
|
20
|
-
constructor: {
|
|
21
|
-
findOne: (query: Record<string, unknown>) => Promise<unknown>;
|
|
22
|
-
};
|
|
23
|
-
}>(fields: string[]): (this: T, value: unknown) => Promise<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* Validator to check if a value matches all regex patterns in an array.
|
|
26
|
-
* @param {RegExp[]} regexArray - Array of regex patterns.
|
|
27
|
-
* @returns {(value: string) => Promise<boolean>} - The validation function.
|
|
28
|
-
*/
|
|
29
|
-
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { validate };
|
package/dist/utils/validate.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
declare const validate: {
|
|
2
|
-
common: {
|
|
3
|
-
/**
|
|
4
|
-
* Check if a value is empty (null, undefined, empty string, empty array, or empty object).
|
|
5
|
-
* @param {unknown} value - The value to check.
|
|
6
|
-
* @returns {boolean} - True if the value is empty; otherwise, false.
|
|
7
|
-
*/
|
|
8
|
-
isEmpty(value: unknown): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Validator to check if a value is not empty.
|
|
11
|
-
* @returns {(value: unknown) => Promise<boolean>} - The validation function.
|
|
12
|
-
*/
|
|
13
|
-
isEmptyValidator<T>(): (this: T, value: unknown) => Promise<boolean>;
|
|
14
|
-
/**
|
|
15
|
-
* Validator to check if a value is unique in specified fields.
|
|
16
|
-
* @param {string[]} fields - Fields to check for uniqueness.
|
|
17
|
-
* @returns {(value: unknown) => Promise<boolean>} - The validation function.
|
|
18
|
-
*/
|
|
19
|
-
isUniqueValidator<T extends {
|
|
20
|
-
constructor: {
|
|
21
|
-
findOne: (query: Record<string, unknown>) => Promise<unknown>;
|
|
22
|
-
};
|
|
23
|
-
}>(fields: string[]): (this: T, value: unknown) => Promise<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* Validator to check if a value matches all regex patterns in an array.
|
|
26
|
-
* @param {RegExp[]} regexArray - Array of regex patterns.
|
|
27
|
-
* @returns {(value: string) => Promise<boolean>} - The validation function.
|
|
28
|
-
*/
|
|
29
|
-
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { validate };
|