Comparing version 0.2.21 to 0.3.0
try { | ||
exports.BSONPure = require('./bson'); | ||
exports.BSONNative = require('../../ext'); | ||
exports.BSONNative = require('bson-ext'); | ||
} catch(err) { | ||
@@ -40,4 +40,3 @@ // do nothing | ||
, './long' | ||
, '../../ext' | ||
].forEach(function (path) { | ||
].forEach(function (path) { | ||
var module = require('./' + path); | ||
@@ -48,2 +47,10 @@ for (var i in module) { | ||
}); | ||
// Catch error and return no classes found | ||
try { | ||
classes['BSON'] = require('bson-ext') | ||
} catch(err) { | ||
return {}; | ||
} | ||
// Return classes list | ||
@@ -50,0 +57,0 @@ return classes; |
{ "name" : "bson" | ||
, "description" : "A bson parser for node.js and the browser" | ||
, "keywords" : ["mongodb", "bson", "parser"] | ||
, "version" : "0.2.21" | ||
, "version" : "0.3.0" | ||
, "author" : "Christian Amor Kvalheim <christkv@gmail.com>" | ||
@@ -12,5 +12,2 @@ , "contributors" : [] | ||
, "url" : "https://github.com/mongodb/js-bson/issues" } | ||
, "dependencies": { | ||
"nan": "1.7.0" | ||
} | ||
, "devDependencies": { | ||
@@ -21,2 +18,5 @@ "nodeunit": "0.9.0" | ||
} | ||
, "optionalDependencies": { | ||
"bson-ext": "~0.1" | ||
} | ||
, "config": { "native" : false } | ||
@@ -23,0 +23,0 @@ , "main": "./lib/bson/index" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
4
349537
22
9289
+ Addedbindings@1.5.0(transitive)
+ Addedbson-ext@0.1.13(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addednan@2.0.9(transitive)
- Removednan@1.7.0
- Removednan@1.7.0(transitive)