openapi-security-handler
Advanced tools
Comparing version 7.2.3 to 8.0.0
@@ -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
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
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
113629
162
+ Addedopenapi-types@8.0.0(transitive)
- Removedopenapi-types@7.2.3(transitive)
Updatedopenapi-types@^8.0.0