Socket
Socket
Sign inDemoInstall

raml-sanitize

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raml-sanitize - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "raml-sanitize",
"version": "0.0.1",
"version": "0.0.2",
"description": "Sanitization of RAML parameters into strict values",

@@ -5,0 +5,0 @@ "main": "raml-sanitize.js",

@@ -8,3 +8,3 @@ /**

var toBoolean = function (value) {
return value !== false && value !== '' && value !== 'false' && value !== '0';
return [0, false, '', '0', 'false'].indexOf(value) === -1;
};

@@ -11,0 +11,0 @@

@@ -67,3 +67,3 @@ # RAML Sanitize

Only `false`, `"false"`, `"0"` and `""` will return `false`. Everything else is considered `true`.
Only `false`, `0`, `"false"`, `"0"` and `""` will return `false`. Everything else is considered `true`.

@@ -70,0 +70,0 @@ #### Dates

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