Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aomex/auth-bearer-adapter

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aomex/auth-bearer-adapter - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

11

CHANGELOG.md

@@ -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 @@

7

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc