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.7 to 0.0.8

12

lib/index.js

@@ -301,2 +301,8 @@ const $json=require('json-magic');

return schemaPart;
}else if($check.object(partObj)&&partObj._bsontype==="ObjectID"&&Buffer.isBuffer(partObj.id)&&partObj.id.length===12){
let schemaPart={
type:"string",
format:"mongoid"
};
return schemaPart;
}else if ($check.object(partObj)){

@@ -322,4 +328,8 @@ let schemaPart={

return {type:"boolean"};
}else if ($check.boolean(partObj)){
return {type:"boolean"};
}else if (Buffer.isBuffer(partObj)){
return {type:"string"};
}else{
return null;
return {type:"unspecified"};
}

@@ -326,0 +336,0 @@ };

2

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

@@ -5,0 +5,0 @@ "author": {

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