hadron-type-checker
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -129,2 +129,8 @@ 'use strict'; | ||
function toDecimal128(object) { | ||
/* | ||
If converting a BSON Object, extract the value before converting to a string. | ||
*/ | ||
if (has(object, BSON_TYPE) && includes(NUMBER_TYPES, object._bsontype)) { | ||
object = object._bsontype === 'Long' ? object.toNumber() : object.valueOf(); | ||
} | ||
return Decimal128.fromString(String(object)); | ||
@@ -131,0 +137,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/hadron-type-checker", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"repository": { | ||
@@ -10,0 +10,0 @@ "type": "git", |
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
374
22649
9