New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openapi-request-coercer

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-request-coercer - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # openapi-request-coercer Changelog

## 2.3.0 - 2019-03-19
### Fixed
- Don't coerce numbers that cannot be converted (#371)
## 2.2.1 - 2019-01-31

@@ -9,0 +13,0 @@ ### Added

10

dist/index.js

@@ -96,4 +96,10 @@ "use strict";

},
integer: function (input) { return Math.floor(Number(input)); },
number: function (input) { return Number(input); },
integer: function (input) {
var result = Math.floor(Number(input));
return isNaN(result) ? input : result;
},
number: function (input) {
var result = Number(input);
return isNaN(result) ? input : result;
},
string: function (input) { return String(input); }

@@ -100,0 +106,0 @@ };

{
"name": "openapi-request-coercer",
"version": "2.2.1",
"version": "2.3.0",
"description": "Coerce request properties according to an openapi parameter list.",

@@ -10,3 +10,3 @@ "main": "./dist/index.js",

"prepare": "tsc",
"test-watch": "mocha --watch-extensions ts -w",
"test-watch": "tsc && mocha --watch-extensions ts -w",
"test": "mocha",

@@ -13,0 +13,0 @@ "travis-test": "npm run cover"

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