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.1 to 0.5.2

7

History.md

@@ -0,5 +1,10 @@

0.5.2 / 2013-12-23
==================
* added 'any' type
0.5.1 / 2013-12-09
==================
* Added type conversion for numbers
* added type conversion for numbers

@@ -6,0 +11,0 @@ 0.5.0 / 2013-11-29

5

index.js

@@ -15,2 +15,5 @@ var mschema = {};

return typeof val === "object";
},
"any": function (val) {
return true;
}

@@ -46,3 +49,3 @@ };

if (typeof property === "string" && (property === 'string' || property === 'number' || property === 'object' || property === 'array' || property === 'boolean')) {
if (typeof property === "string" && (property === 'string' || property === 'number' || property === 'object' || property === 'array' || property === 'boolean' || property === 'any')) {
property = {

@@ -49,0 +52,0 @@ "type": property,

{
"name": "mschema",
"version": "0.5.1",
"version": "0.5.2",
"keywords": ["schema", "mschema", "validator", "json", "json-schema"],

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

@@ -18,3 +18,4 @@ var tap = require("tap"),

"address": { "type": "object" },
"isActive": { "type": "boolean" }
"isActive": { "type": "boolean" },
"meta": { "type": "any" }
};

@@ -31,3 +32,4 @@

},
"isActive": true
"isActive": true,
"meta": 42
};

@@ -34,0 +36,0 @@

@@ -18,3 +18,4 @@ var tap = require("tap"),

"address": "object",
"isActive": "boolean"
"isActive": "boolean",
"meta": "any"
};

@@ -30,3 +31,4 @@

},
"isActive": true
"isActive": true,
"meta": 42
};

@@ -33,0 +35,0 @@

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