Socket
Socket
Sign inDemoInstall

koas-parameters

Package Overview
Dependencies
63
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

19

lib/index.d.ts
import { Plugin } from 'koas-core';
/**
* This interface may be augmented to define path parameter types.
*/
export interface PathParams {
}
/**
* This interface may be augmented to define query parameter types.
*/
export interface QueryParams {
}
declare module 'koa' {

@@ -8,3 +18,3 @@ interface DefaultContext {

*/
pathParams: Record<string, unknown>;
pathParams: PathParams;
/**

@@ -14,3 +24,3 @@ * The query parameters coerced according to the type defined in their JSON schema in the

*/
queryParams: Record<string, unknown>;
queryParams: QueryParams;
}

@@ -23,3 +33,2 @@ }

* @param value - The raw string value to process.
*
* @returns The processed boolean value.

@@ -32,3 +41,2 @@ */

* @param value - The raw string value to process.
*
* @returns The processed integer value.

@@ -41,3 +49,2 @@ */

* @param value - The raw string value to process.
*
* @returns The processed number value.

@@ -50,3 +57,2 @@ */

* @param value - The raw string value to process.
*
* @returns The processed string value.

@@ -66,5 +72,4 @@ */

* @param options - The options for parsing the parameters.
*
* @returns A Koas plugin for parsing path and query parameters.
*/
export declare function parameters({ parsers }?: KoasParametersOptions): Plugin;

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

* @param options - The options for parsing the parameters.
*
* @returns A Koas plugin for parsing path and query parameters.

@@ -39,0 +38,0 @@ */

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

* @param type - The type of the SJON schma.
*
* @returns The parsed value.

@@ -58,0 +57,0 @@ */

{
"name": "koas-parameters",
"version": "0.5.1",
"version": "0.5.2",
"keywords": [

@@ -29,3 +29,3 @@ "koa",

"dependencies": {
"openapi-types": "^7.2.3"
"openapi-types": "^9.1.0"
},

@@ -38,3 +38,3 @@ "devDependencies": {

"koa": "^2",
"koas-core": "^0.5.1"
"koas-core": "^0.5.2"
},

@@ -41,0 +41,0 @@ "engines": {

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