@cyberskill/shared 1.42.0 → 1.44.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/_tsup-dts-rollup.d.cts +19 -17
- package/dist/_tsup-dts-rollup.d.ts +19 -17
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/nodejs/index.cjs +1 -1
- package/dist/nodejs/index.d.cts +1 -0
- package/dist/nodejs/index.d.ts +1 -0
- package/dist/nodejs/index.js +1 -1
- package/dist/nodejs/mongoose.cjs +1 -1
- package/dist/nodejs/mongoose.d.cts +1 -0
- package/dist/nodejs/mongoose.d.ts +1 -0
- package/dist/nodejs/mongoose.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/next-intl.cjs +1 -1
- package/dist/react/next-intl.js +1 -1
- package/dist/react/storage.cjs +1 -1
- package/dist/react/storage.js +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.cts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +1 -1
- package/package.json +11 -1
- package/dist/utils/validate.cjs +0 -1
- package/dist/utils/validate.d.cts +0 -1
- package/dist/utils/validate.d.ts +0 -1
- package/dist/utils/validate.js +0 -1
|
@@ -6341,7 +6341,7 @@ declare interface I_MongooseOptions_2<T extends Partial<C_Document_2>> {
|
|
|
6341
6341
|
|
|
6342
6342
|
declare interface I_NextIntlContextType {
|
|
6343
6343
|
languages: I_NextIntlLanguage[];
|
|
6344
|
-
currentLanguage
|
|
6344
|
+
currentLanguage?: I_NextIntlLanguage;
|
|
6345
6345
|
setCurrentLanguage: (newLang: I_NextIntlLanguage) => void;
|
|
6346
6346
|
}
|
|
6347
6347
|
export { I_NextIntlContextType }
|
|
@@ -6350,7 +6350,7 @@ export { I_NextIntlContextType as I_NextIntlContextType_alias_2 }
|
|
|
6350
6350
|
|
|
6351
6351
|
declare interface I_NextIntlContextType_2 {
|
|
6352
6352
|
languages: I_NextIntlLanguage_2[];
|
|
6353
|
-
currentLanguage
|
|
6353
|
+
currentLanguage?: I_NextIntlLanguage_2;
|
|
6354
6354
|
setCurrentLanguage: (newLang: I_NextIntlLanguage_2) => void;
|
|
6355
6355
|
}
|
|
6356
6356
|
|
|
@@ -7241,7 +7241,11 @@ export { useNextIntl }
|
|
|
7241
7241
|
export { useNextIntl as useNextIntl_alias_1 }
|
|
7242
7242
|
export { useNextIntl as useNextIntl_alias_2 }
|
|
7243
7243
|
|
|
7244
|
-
declare function useStorage<T>(key: string, initialValue
|
|
7244
|
+
declare function useStorage<T>(key: string, initialValue?: T, serializer?: I_Serializer_2<T>): {
|
|
7245
|
+
value: T | undefined;
|
|
7246
|
+
set: (newValue: T | ((val: T | undefined) => T)) => void;
|
|
7247
|
+
remove: () => Promise<void>;
|
|
7248
|
+
};
|
|
7245
7249
|
export { useStorage }
|
|
7246
7250
|
export { useStorage as useStorage_alias_1 }
|
|
7247
7251
|
export { useStorage as useStorage_alias_2 }
|
|
@@ -7251,21 +7255,19 @@ export { useTranslateNextIntl }
|
|
|
7251
7255
|
export { useTranslateNextIntl as useTranslateNextIntl_alias_1 }
|
|
7252
7256
|
export { useTranslateNextIntl as useTranslateNextIntl_alias_2 }
|
|
7253
7257
|
|
|
7254
|
-
declare const
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
7264
|
-
};
|
|
7258
|
+
declare const validateMongooseField: {
|
|
7259
|
+
isEmpty(value: unknown): boolean;
|
|
7260
|
+
isEmptyValidator<T>(): (this: T, value: unknown) => Promise<boolean>;
|
|
7261
|
+
isUniqueValidator<T extends {
|
|
7262
|
+
constructor: {
|
|
7263
|
+
findOne: (query: Record<string, unknown>) => Promise<unknown>;
|
|
7264
|
+
};
|
|
7265
|
+
}>(fields: string[]): (this: T, value: unknown) => Promise<boolean>;
|
|
7266
|
+
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
7265
7267
|
};
|
|
7266
|
-
export {
|
|
7267
|
-
export {
|
|
7268
|
-
export {
|
|
7268
|
+
export { validateMongooseField }
|
|
7269
|
+
export { validateMongooseField as validateMongooseField_alias_1 }
|
|
7270
|
+
export { validateMongooseField as validateMongooseField_alias_2 }
|
|
7269
7271
|
|
|
7270
7272
|
declare function withNextIntl<T extends {
|
|
7271
7273
|
children: T_Children_2;
|
|
@@ -6341,7 +6341,7 @@ declare interface I_MongooseOptions_2<T extends Partial<C_Document_2>> {
|
|
|
6341
6341
|
|
|
6342
6342
|
declare interface I_NextIntlContextType {
|
|
6343
6343
|
languages: I_NextIntlLanguage[];
|
|
6344
|
-
currentLanguage
|
|
6344
|
+
currentLanguage?: I_NextIntlLanguage;
|
|
6345
6345
|
setCurrentLanguage: (newLang: I_NextIntlLanguage) => void;
|
|
6346
6346
|
}
|
|
6347
6347
|
export { I_NextIntlContextType }
|
|
@@ -6350,7 +6350,7 @@ export { I_NextIntlContextType as I_NextIntlContextType_alias_2 }
|
|
|
6350
6350
|
|
|
6351
6351
|
declare interface I_NextIntlContextType_2 {
|
|
6352
6352
|
languages: I_NextIntlLanguage_2[];
|
|
6353
|
-
currentLanguage
|
|
6353
|
+
currentLanguage?: I_NextIntlLanguage_2;
|
|
6354
6354
|
setCurrentLanguage: (newLang: I_NextIntlLanguage_2) => void;
|
|
6355
6355
|
}
|
|
6356
6356
|
|
|
@@ -7241,7 +7241,11 @@ export { useNextIntl }
|
|
|
7241
7241
|
export { useNextIntl as useNextIntl_alias_1 }
|
|
7242
7242
|
export { useNextIntl as useNextIntl_alias_2 }
|
|
7243
7243
|
|
|
7244
|
-
declare function useStorage<T>(key: string, initialValue
|
|
7244
|
+
declare function useStorage<T>(key: string, initialValue?: T, serializer?: I_Serializer_2<T>): {
|
|
7245
|
+
value: T | undefined;
|
|
7246
|
+
set: (newValue: T | ((val: T | undefined) => T)) => void;
|
|
7247
|
+
remove: () => Promise<void>;
|
|
7248
|
+
};
|
|
7245
7249
|
export { useStorage }
|
|
7246
7250
|
export { useStorage as useStorage_alias_1 }
|
|
7247
7251
|
export { useStorage as useStorage_alias_2 }
|
|
@@ -7251,21 +7255,19 @@ export { useTranslateNextIntl }
|
|
|
7251
7255
|
export { useTranslateNextIntl as useTranslateNextIntl_alias_1 }
|
|
7252
7256
|
export { useTranslateNextIntl as useTranslateNextIntl_alias_2 }
|
|
7253
7257
|
|
|
7254
|
-
declare const
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
7264
|
-
};
|
|
7258
|
+
declare const validateMongooseField: {
|
|
7259
|
+
isEmpty(value: unknown): boolean;
|
|
7260
|
+
isEmptyValidator<T>(): (this: T, value: unknown) => Promise<boolean>;
|
|
7261
|
+
isUniqueValidator<T extends {
|
|
7262
|
+
constructor: {
|
|
7263
|
+
findOne: (query: Record<string, unknown>) => Promise<unknown>;
|
|
7264
|
+
};
|
|
7265
|
+
}>(fields: string[]): (this: T, value: unknown) => Promise<boolean>;
|
|
7266
|
+
matchesRegexValidator(regexArray: RegExp[]): (value: string) => Promise<boolean>;
|
|
7265
7267
|
};
|
|
7266
|
-
export {
|
|
7267
|
-
export {
|
|
7268
|
-
export {
|
|
7268
|
+
export { validateMongooseField }
|
|
7269
|
+
export { validateMongooseField as validateMongooseField_alias_1 }
|
|
7270
|
+
export { validateMongooseField as validateMongooseField_alias_2 }
|
|
7269
7271
|
|
|
7270
7272
|
declare function withNextIntl<T extends {
|
|
7271
7273
|
children: T_Children_2;
|