Socket
Socket
Sign inDemoInstall

mschema

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.4 to 0.5.5

14

index.js

@@ -81,2 +81,16 @@ var mschema = {};

}
// determine if any incoming data might need to be changed from an html checkbox into a boolean
if (typeof value === "string" && (property === "boolean" || property.type === "boolean")) {
if (value === "on") {
value = true;
}
if (value === "off") {
value = false;
}
if (typeof value === "undefined") {
value = false;
}
data[propertyName] = value;
}
}

@@ -83,0 +97,0 @@

2

package.json
{
"name": "mschema",
"version": "0.5.4",
"version": "0.5.5",
"keywords": ["schema", "mschema", "validator", "json", "json-schema"],

@@ -5,0 +5,0 @@ "description": "A schema language for defining the structure of JSON data",

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