hadron-type-checker
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -150,2 +150,5 @@ 'use strict'; | ||
const toInt32 = (object) => { | ||
if (object === '-') { | ||
throw new Error(`Value ${object} is not a valid Int32 value`); | ||
} | ||
const number = toNumber(object); | ||
@@ -159,2 +162,5 @@ if (number >= BSON_INT32_MIN && number <= BSON_INT32_MAX) { | ||
const toInt64 = (object) => { | ||
if (object === '-') { | ||
throw new Error(`Value ${object} is not a valid Int64 value`); | ||
} | ||
const number = toNumber(object); | ||
@@ -168,2 +174,5 @@ if (number >= BSON_INT64_MIN && number <= BSON_INT64_MAX) { | ||
const toDouble = (object) => { | ||
if (object === '-') { | ||
throw new Error(`Value ${object} is not a valid Double value`); | ||
} | ||
const number = toNumber(object); | ||
@@ -170,0 +179,0 @@ return new Double(number); |
@@ -7,3 +7,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/hadron-type-checker", | ||
"version": "3.0.0", | ||
"version": "4.0.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
19723
317