Comparing version 4.1.27 to 4.1.28
{ | ||
"name": "@endo/nat", | ||
"version": "4.1.27", | ||
"version": "4.1.28", | ||
"description": "Ensures that a number is within the natural numbers (0, 1, 2...) or throws a RangeError", | ||
@@ -27,10 +27,10 @@ "main": "./src/index.js", | ||
"devDependencies": { | ||
"@endo/compartment-mapper": "^0.8.4", | ||
"ava": "^5.2.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"@endo/compartment-mapper": "^0.8.5", | ||
"ava": "^5.3.0", | ||
"eslint": "^8.44.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"prettier": "^2.8.5", | ||
"ses": "^0.18.4" | ||
"prettier": "^3.0.0", | ||
"ses": "^0.18.5" | ||
}, | ||
@@ -65,3 +65,3 @@ "directories": { | ||
}, | ||
"gitHead": "38c2c59d6ae8c53f84cd333e6c7828e2d37604e2" | ||
"gitHead": "106da55b8bcea3067f70c29c357806f3f2e55c52" | ||
} |
@@ -59,3 +59,3 @@ // Copyright (C) 2011 Google Inc. | ||
if (allegedNum < 0) { | ||
throw new RangeError(`${allegedNum} is negative`); | ||
throw RangeError(`${allegedNum} is negative`); | ||
} | ||
@@ -67,6 +67,6 @@ return allegedNum; | ||
if (!Number.isSafeInteger(allegedNum)) { | ||
throw new RangeError(`${allegedNum} not a safe integer`); | ||
throw RangeError(`${allegedNum} not a safe integer`); | ||
} | ||
if (allegedNum < 0) { | ||
throw new RangeError(`${allegedNum} is negative`); | ||
throw RangeError(`${allegedNum} is negative`); | ||
} | ||
@@ -76,3 +76,3 @@ return BigInt(allegedNum); | ||
throw new TypeError( | ||
throw TypeError( | ||
`${allegedNum} is a ${typeof allegedNum} but must be a bigint or a number`, | ||
@@ -79,0 +79,0 @@ ); |
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
25051