Socket
Socket
Sign inDemoInstall

openapi-security-handler

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-security-handler - npm Package Compare versions

Comparing version 7.2.3 to 8.0.0

6

dist/index.d.ts

@@ -8,3 +8,5 @@ import { OpenAPI, OpenAPIV2, OpenAPIV3 } from 'openapi-types';

operationSecurity: (OpenAPIV2.SecurityRequirementObject | OpenAPIV3.SecurityRequirementObject)[];
securityDefinitions: OpenAPIV2.SecurityDefinitionsObject;
securityDefinitions: OpenAPIV2.SecurityDefinitionsObject | {
[index: string]: OpenAPIV3.SecuritySchemeObject;
};
securityHandlers: SecurityHandlers;

@@ -16,3 +18,3 @@ }

export declare type SecurityScope = string;
export declare type SecurityHandler = (req: OpenAPI.Request, scopes: SecurityScope[], definition: OpenAPIV2.SecuritySchemeObject) => Promise<boolean> | boolean;
export declare type SecurityHandler = (req: OpenAPI.Request, scopes: SecurityScope[], definition: OpenAPIV2.SecuritySchemeObject | OpenAPIV3.SecuritySchemeObject) => Promise<boolean> | boolean;
export default class OpenAPISecurityHandler implements IOpenAPISecurityHandler {

@@ -19,0 +21,0 @@ private operationSecurity;

{
"name": "openapi-security-handler",
"version": "7.2.3",
"version": "8.0.0",
"description": "A library to process OpenAPI security definitions in parallel.",

@@ -30,5 +30,5 @@ "main": "./dist/index.js",

"dependencies": {
"openapi-types": "^7.2.3"
"openapi-types": "^8.0.0"
},
"gitHead": "25d0114680050efe3b4f9b7d0cca9f9e88057daa"
"gitHead": "ab875b574199c84fb215112d920aa821a61c632d"
}

Sorry, the diff of this file is not supported yet

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