b23-lib 1.2.6 → 1.2.7
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -279,7 +279,7 @@ declare class AuthUtility {
|
|
|
279
279
|
AuthMiddleware({ allowAnonymous, allowSystem, allowUser }?: AuthMiddlewareConfig): (req: any, res: any, next: any) => Promise<void>;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
declare const
|
|
282
|
+
declare const Utils: {
|
|
283
283
|
isUUID: (value: string) => boolean;
|
|
284
284
|
generateUUID: (value?: string, namespace?: string) => string;
|
|
285
285
|
generateSearchId: (key: string, variantId: string) => string;
|
|
@@ -319,4 +319,4 @@ declare const Logger: {
|
|
|
319
319
|
logInvalidPayload: (functionName: string, errorMessage: string) => void;
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema,
|
|
322
|
+
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, Utils };
|
package/dist/index.d.ts
CHANGED
|
@@ -279,7 +279,7 @@ declare class AuthUtility {
|
|
|
279
279
|
AuthMiddleware({ allowAnonymous, allowSystem, allowUser }?: AuthMiddlewareConfig): (req: any, res: any, next: any) => Promise<void>;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
declare const
|
|
282
|
+
declare const Utils: {
|
|
283
283
|
isUUID: (value: string) => boolean;
|
|
284
284
|
generateUUID: (value?: string, namespace?: string) => string;
|
|
285
285
|
generateSearchId: (key: string, variantId: string) => string;
|
|
@@ -319,4 +319,4 @@ declare const Logger: {
|
|
|
319
319
|
logInvalidPayload: (functionName: string, errorMessage: string) => void;
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema,
|
|
322
|
+
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, Utils };
|
package/dist/index.js
CHANGED
|
@@ -459,7 +459,7 @@ var Logger_default = Logger;
|
|
|
459
459
|
|
|
460
460
|
// src/Utils/index.ts
|
|
461
461
|
var import_uuid = require("uuid");
|
|
462
|
-
var
|
|
462
|
+
var Utils = {
|
|
463
463
|
isUUID: (value) => {
|
|
464
464
|
const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
465
465
|
return uuidRegex.test(value);
|
|
@@ -481,6 +481,7 @@ var Utils_default = {
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
|
+
var Utils_default = Utils;
|
|
484
485
|
|
|
485
486
|
// src/Utils/response.ts
|
|
486
487
|
var ResponseUtility = {
|
package/dist/index.mjs
CHANGED
|
@@ -430,7 +430,7 @@ var Logger_default = Logger;
|
|
|
430
430
|
|
|
431
431
|
// src/Utils/index.ts
|
|
432
432
|
import { v4 as uuidv4, v5 as uuidv5 } from "uuid";
|
|
433
|
-
var
|
|
433
|
+
var Utils = {
|
|
434
434
|
isUUID: (value) => {
|
|
435
435
|
const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
436
436
|
return uuidRegex.test(value);
|
|
@@ -452,6 +452,7 @@ var Utils_default = {
|
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
454
|
};
|
|
455
|
+
var Utils_default = Utils;
|
|
455
456
|
|
|
456
457
|
// src/Utils/response.ts
|
|
457
458
|
var ResponseUtility = {
|