b23-lib 1.2.4 → 1.2.5

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 CHANGED
@@ -279,15 +279,6 @@ declare class AuthUtility {
279
279
  AuthMiddleware({ allowAnonymous, allowSystem, allowUser }?: AuthMiddlewareConfig): (req: any, res: any, next: any) => Promise<void>;
280
280
  }
281
281
 
282
- type index_AuthMiddlewareConfig = AuthMiddlewareConfig;
283
- type index_AuthTokenType = AuthTokenType;
284
- type index_AuthUtilityConfig = AuthUtilityConfig;
285
- declare const index_DefaultAuthMiddlewareConfig: typeof DefaultAuthMiddlewareConfig;
286
- declare const index_DefaultAuthUtilityConfig: typeof DefaultAuthUtilityConfig;
287
- declare namespace index {
288
- export { type index_AuthMiddlewareConfig as AuthMiddlewareConfig, type index_AuthTokenType as AuthTokenType, type index_AuthUtilityConfig as AuthUtilityConfig, index_DefaultAuthMiddlewareConfig as DefaultAuthMiddlewareConfig, index_DefaultAuthUtilityConfig as DefaultAuthUtilityConfig, AuthUtility as default };
289
- }
290
-
291
282
  declare const _default: {
292
283
  isUUID: (value: string) => boolean;
293
284
  generateUUID: (value?: string, namespace?: string) => string;
@@ -328,4 +319,4 @@ declare const Logger: {
328
319
  logInvalidPayload: (functionName: string, errorMessage: string) => void;
329
320
  };
330
321
 
331
- export { index as Auth, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, _default as Utils };
322
+ export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, _default as Utils };
package/dist/index.d.ts CHANGED
@@ -279,15 +279,6 @@ declare class AuthUtility {
279
279
  AuthMiddleware({ allowAnonymous, allowSystem, allowUser }?: AuthMiddlewareConfig): (req: any, res: any, next: any) => Promise<void>;
280
280
  }
281
281
 
282
- type index_AuthMiddlewareConfig = AuthMiddlewareConfig;
283
- type index_AuthTokenType = AuthTokenType;
284
- type index_AuthUtilityConfig = AuthUtilityConfig;
285
- declare const index_DefaultAuthMiddlewareConfig: typeof DefaultAuthMiddlewareConfig;
286
- declare const index_DefaultAuthUtilityConfig: typeof DefaultAuthUtilityConfig;
287
- declare namespace index {
288
- export { type index_AuthMiddlewareConfig as AuthMiddlewareConfig, type index_AuthTokenType as AuthTokenType, type index_AuthUtilityConfig as AuthUtilityConfig, index_DefaultAuthMiddlewareConfig as DefaultAuthMiddlewareConfig, index_DefaultAuthUtilityConfig as DefaultAuthUtilityConfig, AuthUtility as default };
289
- }
290
-
291
282
  declare const _default: {
292
283
  isUUID: (value: string) => boolean;
293
284
  generateUUID: (value?: string, namespace?: string) => string;
@@ -328,4 +319,4 @@ declare const Logger: {
328
319
  logInvalidPayload: (functionName: string, errorMessage: string) => void;
329
320
  };
330
321
 
331
- export { index as Auth, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, _default as Utils };
322
+ export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, _default as Utils };
package/dist/index.js CHANGED
@@ -30,7 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
- Auth: () => Auth_exports,
33
+ AuthUtility: () => Auth_default,
34
+ DefaultAuthMiddlewareConfig: () => DefaultAuthMiddlewareConfig,
35
+ DefaultAuthUtilityConfig: () => DefaultAuthUtilityConfig,
34
36
  DynamoDB: () => Dynamodb_default,
35
37
  Fetch: () => fetch_default,
36
38
  Logger: () => Logger_default,
@@ -410,12 +412,6 @@ var Schema = {
410
412
  var Schema_default = Schema;
411
413
 
412
414
  // src/Auth/index.ts
413
- var Auth_exports = {};
414
- __export(Auth_exports, {
415
- DefaultAuthMiddlewareConfig: () => DefaultAuthMiddlewareConfig,
416
- DefaultAuthUtilityConfig: () => DefaultAuthUtilityConfig,
417
- default: () => Auth_default
418
- });
419
415
  var import_jose = require("jose");
420
416
  var import_util2 = __toESM(require("util"));
421
417
 
@@ -768,7 +764,9 @@ var Fetch = async (baseURL, endpoint, method = "GET", headers = {}, payload) =>
768
764
  var fetch_default = Fetch;
769
765
  // Annotate the CommonJS export names for ESM import in node:
770
766
  0 && (module.exports = {
771
- Auth,
767
+ AuthUtility,
768
+ DefaultAuthMiddlewareConfig,
769
+ DefaultAuthUtilityConfig,
772
770
  DynamoDB,
773
771
  Fetch,
774
772
  Logger,
package/dist/index.mjs CHANGED
@@ -1,9 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
1
  // src/Dynamodb/index.ts
8
2
  import {
9
3
  BatchGetItemCommand,
@@ -389,12 +383,6 @@ var Schema = {
389
383
  var Schema_default = Schema;
390
384
 
391
385
  // src/Auth/index.ts
392
- var Auth_exports = {};
393
- __export(Auth_exports, {
394
- DefaultAuthMiddlewareConfig: () => DefaultAuthMiddlewareConfig,
395
- DefaultAuthUtilityConfig: () => DefaultAuthUtilityConfig,
396
- default: () => Auth_default
397
- });
398
386
  import { importPKCS8, importSPKI, jwtVerify, SignJWT } from "jose";
399
387
  import util2 from "util";
400
388
 
@@ -746,7 +734,9 @@ var Fetch = async (baseURL, endpoint, method = "GET", headers = {}, payload) =>
746
734
  };
747
735
  var fetch_default = Fetch;
748
736
  export {
749
- Auth_exports as Auth,
737
+ Auth_default as AuthUtility,
738
+ DefaultAuthMiddlewareConfig,
739
+ DefaultAuthUtilityConfig,
750
740
  Dynamodb_default as DynamoDB,
751
741
  fetch_default as Fetch,
752
742
  Logger_default as Logger,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "b23-lib",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "This repo hold common classes, type and util functiona",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",