From 434b89c2fd17086422e5f1cb8e0a73ee2568146e Mon Sep 17 00:00:00 2001 From: kajvans Date: Sat, 3 Feb 2024 11:48:41 +0100 Subject: [PATCH] wrong import --- dist/index.d.ts | 2 +- dist/index.js | 4 ++-- package.json | 2 +- src/index.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 74a2bcd..b4336d0 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,5 +1,5 @@ import PassCheck from "./passwordcheck"; -import JwtAuth from "jsonwebtoken"; +import JwtAuth from "./jwt"; import PassPolicy from "./passpolicy"; import RateLimit from "./ratelimit"; import PasswordGenerator from "./passgen"; diff --git a/dist/index.js b/dist/index.js index bd68ade..45f679b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.PasswordGenerator = exports.RateLimit = exports.PassPolicy = exports.JwtAuth = exports.PassCheck = void 0; const passwordcheck_1 = __importDefault(require("./passwordcheck")); exports.PassCheck = passwordcheck_1.default; -const jsonwebtoken_1 = __importDefault(require("jsonwebtoken")); -exports.JwtAuth = jsonwebtoken_1.default; +const jwt_1 = __importDefault(require("./jwt")); +exports.JwtAuth = jwt_1.default; const passpolicy_1 = __importDefault(require("./passpolicy")); exports.PassPolicy = passpolicy_1.default; const ratelimit_1 = __importDefault(require("./ratelimit")); diff --git a/package.json b/package.json index 2e73f89..404eff5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth-guardian", - "version": "2.0.1", + "version": "2.1.0", "description": "auth-guardian a library for enhancing application security", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/index.ts b/src/index.ts index addbcaf..2d4ef1c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ import PassCheck from "./passwordcheck"; -import JwtAuth from "jsonwebtoken"; +import JwtAuth from "./jwt"; import PassPolicy from "./passpolicy"; import RateLimit from "./ratelimit"; import PasswordGenerator from "./passgen";