b23-lib 1.2.10 → 1.2.12
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -319,6 +319,11 @@ declare const ResponseUtility: {
|
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
+
type ErrorType = {
|
|
323
|
+
status: number;
|
|
324
|
+
statusText: string;
|
|
325
|
+
error: any;
|
|
326
|
+
};
|
|
322
327
|
type SuccessType = {
|
|
323
328
|
status: number;
|
|
324
329
|
statusText: string;
|
|
@@ -334,4 +339,4 @@ declare const Logger: {
|
|
|
334
339
|
logInvalidPayload: (functionName: string, errorMessage: string) => void;
|
|
335
340
|
};
|
|
336
341
|
|
|
337
|
-
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, Utils };
|
|
342
|
+
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, type ErrorType, Fetch, Logger, ResponseUtility, Schema, type SuccessType, Utils };
|
package/dist/index.d.ts
CHANGED
|
@@ -319,6 +319,11 @@ declare const ResponseUtility: {
|
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
+
type ErrorType = {
|
|
323
|
+
status: number;
|
|
324
|
+
statusText: string;
|
|
325
|
+
error: any;
|
|
326
|
+
};
|
|
322
327
|
type SuccessType = {
|
|
323
328
|
status: number;
|
|
324
329
|
statusText: string;
|
|
@@ -334,4 +339,4 @@ declare const Logger: {
|
|
|
334
339
|
logInvalidPayload: (functionName: string, errorMessage: string) => void;
|
|
335
340
|
};
|
|
336
341
|
|
|
337
|
-
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, Utils };
|
|
342
|
+
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, type ErrorType, Fetch, Logger, ResponseUtility, Schema, type SuccessType, Utils };
|
package/dist/index.js
CHANGED
|
@@ -793,7 +793,7 @@ var AuthUtility = class {
|
|
|
793
793
|
return payload;
|
|
794
794
|
}
|
|
795
795
|
async createSystemToken(id, additionalData) {
|
|
796
|
-
(0, import_assert.default)(this.
|
|
796
|
+
(0, import_assert.default)(this.systemPrivateKeys.length, ErrorTypes_default.SYSTEM_PRIVATE_KEY_NOT_FOUND);
|
|
797
797
|
const payload = {
|
|
798
798
|
id,
|
|
799
799
|
type: "System",
|
package/dist/index.mjs
CHANGED
|
@@ -764,7 +764,7 @@ var AuthUtility = class {
|
|
|
764
764
|
return payload;
|
|
765
765
|
}
|
|
766
766
|
async createSystemToken(id, additionalData) {
|
|
767
|
-
assert(this.
|
|
767
|
+
assert(this.systemPrivateKeys.length, ErrorTypes_default.SYSTEM_PRIVATE_KEY_NOT_FOUND);
|
|
768
768
|
const payload = {
|
|
769
769
|
id,
|
|
770
770
|
type: "System",
|