Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

schema-magic

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schema-magic - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

13

lib/index.js

@@ -272,3 +272,2 @@ const $json=require('json-magic');

}
//todo: required

@@ -291,2 +290,14 @@ //todo: ranges

return schemaPart;
}else if ($check.object(partObj)&&partObj.constructor&&partObj.constructor.name==="ObjectID"&&partObj.id){
let schemaPart={
type:"string",
format:"mongoid"
};
return schemaPart;
}else if ($check.object(partObj)&&partObj._bsontype==="ObjectID"&&partObj._id){
let schemaPart={
type:"string",
format:"mongoid"
};
return schemaPart;
}else if ($check.object(partObj)){

@@ -293,0 +304,0 @@ let schemaPart={

3

package.json
{
"name": "schema-magic",
"version": "0.0.6",
"version": "0.0.7",
"description": "JSON Schema Utilities",

@@ -19,2 +19,3 @@ "author": {

"moment-timezone": "0.5.25",
"type-magic": "0.0.2",

@@ -21,0 +22,0 @@ "underscore": "1.9.1",

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