@aomex/auth-bearer-adapter
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,8 +6,13 @@ # Change Log | ||
# 3.0.0 (2024-08-10) | ||
# [3.1.0](https://github.com/aomex/aomex/compare/v3.0.0...v3.1.0) (2024-09-13) | ||
### Bug Fixes | ||
* update peer deps ([98b7c10](https://github.com/aomex/aomex/commit/98b7c10068a3c62a0361b1b43a86728a7d445ab5)) | ||
### Features | ||
* **auth:** 身份认证中间件 ([101626f](https://github.com/aomex/aomex/commit/101626f2ec9f65dd8bec29ebacaa1998fd3d7862)) | ||
* **auth:** 适配器使用函数入口 ([913314c](https://github.com/aomex/aomex/commit/913314cbb5dc23236fa4e6f71b46208dfd22f941)) | ||
@@ -18,2 +23,4 @@ | ||
# [2.2.0](https://github.com/aomex/aomex/compare/v2.1.0...v2.2.0) (2024-08-05) | ||
@@ -20,0 +27,0 @@ |
@@ -39,3 +39,3 @@ import { AuthenticationAdapter } from '@aomex/auth'; | ||
} | ||
declare abstract class BaseBearerAdapter<T extends object | string> extends AuthenticationAdapter<T> { | ||
declare abstract class AuthenticationBaseBearerAdapter<T extends object | string> extends AuthenticationAdapter<T> { | ||
protected readonly loaders: TokenLoaderItem[]; | ||
@@ -54,3 +54,3 @@ constructor(loaders?: TokenLoaderItem[]); | ||
*/ | ||
declare class BearerAdapter<T extends object | string> extends BaseBearerAdapter<T> { | ||
declare class AuthenticationBearerAdapter<T extends object | string> extends AuthenticationBaseBearerAdapter<T> { | ||
protected readonly opts: BearerAdapterOptions<T>; | ||
@@ -66,3 +66,4 @@ constructor(opts: BearerAdapterOptions<T>); | ||
} | ||
declare const bearerAdapter: <T extends object | string>(opts: BearerAdapterOptions<T>) => AuthenticationBearerAdapter<T>; | ||
export { BaseBearerAdapter, BearerAdapter, type BearerAdapterOptions, type TokenLoaderItem }; | ||
export { AuthenticationBaseBearerAdapter, AuthenticationBearerAdapter, type BearerAdapterOptions, type TokenLoaderItem, bearerAdapter }; |
@@ -5,3 +5,3 @@ // src/index.ts | ||
import { createHash } from "node:crypto"; | ||
var BaseBearerAdapter = class extends AuthenticationAdapter { | ||
var AuthenticationBaseBearerAdapter = class extends AuthenticationAdapter { | ||
loaders; | ||
@@ -59,3 +59,3 @@ constructor(loaders) { | ||
}; | ||
var BearerAdapter = class extends BaseBearerAdapter { | ||
var AuthenticationBearerAdapter = class extends AuthenticationBaseBearerAdapter { | ||
constructor(opts) { | ||
@@ -79,6 +79,8 @@ super(opts.tokenLoaders); | ||
}; | ||
var bearerAdapter = (opts) => new AuthenticationBearerAdapter(opts); | ||
export { | ||
BaseBearerAdapter, | ||
BearerAdapter | ||
AuthenticationBaseBearerAdapter, | ||
AuthenticationBearerAdapter, | ||
bearerAdapter | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aomex/auth-bearer-adapter", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "身份认证bearer适配器", | ||
@@ -32,11 +32,11 @@ "repository": "git@github.com:aomex/aomex.git", | ||
"peerDependencies": { | ||
"@aomex/auth": "^2.0.0", | ||
"@aomex/web": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@aomex/auth": "^3.0.0", | ||
"@aomex/core": "^3.0.0", | ||
"@aomex/web": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@aomex/core": "^3.1.0", | ||
"@aomex/auth": "^3.1.0", | ||
"@aomex/web": "^3.1.0" | ||
}, | ||
"scripts": {} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13842
146
1