Socket
Socket
Sign inDemoInstall

koas-parameters

Package Overview
Dependencies
76
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

4

lib/createParameterHandler.js

@@ -50,3 +50,3 @@ "use strict";

if (type === 'array') {
acc[key] = value.split('/').map(val => parse(items && items.type, val));
acc[key] = value.split('/').map((val) => parse(items && items.type, val));
return acc;

@@ -76,3 +76,3 @@ }

const values = Array.isArray(value) ? value : [value];
acc[key] = values.map(val => parse(items.type, val));
acc[key] = values.map((val) => parse(items.type, val));
return acc;

@@ -79,0 +79,0 @@ }

@@ -14,3 +14,3 @@ "use strict";

},
integer: value => parseInt(value, 10),
integer: (value) => parseInt(value, 10),
number: parseFloat,

@@ -29,3 +29,3 @@ string: String,

.filter(Boolean)
.forEach(operationObject => {
.forEach((operationObject) => {
handlers.set(operationObject, createParameterHandler_1.default(operationObject, parameters, combinedParsers, validate));

@@ -32,0 +32,0 @@ });

{
"name": "koas-parameters",
"version": "0.2.0",
"author": "Remco Haszing <remcohaszing@gmail.com>",
"license": "MIT",
"version": "0.2.1",
"keywords": [
"koa",
"koas",
"oai",
"openapi"
],
"homepage": "https://gitlab.com/remcohaszing/koas/tree/master/packages/koas-parameters",
"bugs": {
"url": "https://gitlab.com/remcohaszing/koas/issues"
},
"repository": {

@@ -12,12 +19,11 @@ "type": "git",

},
"bugs": {
"url": "https://gitlab.com/remcohaszing/koas/issues"
},
"license": "MIT",
"author": "Remco Haszing <remcohaszing@gmail.com>",
"main": "lib",
"files": [
"lib"
],
"scripts": {
"prepack": "tsc --project tsconfig.build.json"
},
"files": [
"lib"
],
"dependencies": {

@@ -27,4 +33,4 @@ "openapi-types": "^1.3.5"

"peerDependencies": {
"koas-core": "^0.2.0"
"koas-core": "^0.2.1"
}
}
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