Socket
Socket
Sign inDemoInstall

koas-core

Package Overview
Dependencies
62
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.1 to 0.5.2

2

lib/index.d.ts

@@ -53,3 +53,2 @@ import { PreValidatePropertyFunction, RewriteFunction, ValidatorResult } from 'jsonschema';

* @param options - Additional jsonschema validation options.
*
* @returns The validator result

@@ -112,5 +111,4 @@ */

* @param options - Advanced options
*
* @returns Koa middleware that processes requests according the the OpenAPI document.
*/
export declare function koas(document: OpenAPIV3.Document, middlewares?: Plugin[], { onSchemaValidationError, }?: KoasOptions): Middleware;

@@ -41,3 +41,2 @@ "use strict";

* @param options - Advanced options
*
* @returns Koa middleware that processes requests according the the OpenAPI document.

@@ -44,0 +43,0 @@ */

@@ -7,3 +7,2 @@ import { OpenAPIV3 } from 'openapi-types';

* @param url - The URL path to process.
*
* @returns A mapping of parameter names to their extracted values.

@@ -19,5 +18,4 @@ */

* extracted parameters.
*
* @returns a matcher function for extracting path parameters from a URL path.
*/
export declare function createMatcher(pathTemplate: string, resolveRef: JSONRefResolver, pathParameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[]): MatcherFunction;

@@ -11,3 +11,2 @@ "use strict";

* extracted parameters.
*
* @returns a matcher function for extracting path parameters from a URL path.

@@ -14,0 +13,0 @@ */

6

package.json
{
"name": "koas-core",
"version": "0.5.1",
"version": "0.5.2",
"keywords": [

@@ -29,6 +29,6 @@ "koa",

"dependencies": {
"@types/koa": "^2.11.7",
"@types/koa": "^2.13.4",
"jsonschema": "^1.4.0",
"koa-compose": "^4.1.0",
"openapi-types": "^7.2.3"
"openapi-types": "^9.1.0"
},

@@ -35,0 +35,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc