Comparing version 4.1.4 to 4.1.5
@@ -6,2 +6,11 @@ # Change Log | ||
### [4.1.5](https://github.com/endojs/endo/compare/@endo/nat@4.1.4...@endo/nat@4.1.5) (2022-02-18) | ||
### Bug Fixes | ||
* **nat:** declare `allegedNum` as `unknown`, then check type ([ba3e60c](https://github.com/endojs/endo/commit/ba3e60c1ab2aa24e5955310792a9e40b6a0bea30)) | ||
### [4.1.4](https://github.com/endojs/endo/compare/@endo/nat@4.1.3...@endo/nat@4.1.4) (2022-01-31) | ||
@@ -8,0 +17,0 @@ |
{ | ||
"name": "@endo/nat", | ||
"version": "4.1.4", | ||
"version": "4.1.5", | ||
"description": "Ensures that a number is within the natural numbers (0, 1, 2...) or throws a RangeError", | ||
@@ -27,3 +27,3 @@ "main": "./src/index.js", | ||
"devDependencies": { | ||
"@endo/compartment-mapper": "^0.6.5", | ||
"@endo/compartment-mapper": "^0.6.6", | ||
"ava": "^3.12.1", | ||
@@ -36,3 +36,3 @@ "eslint": "^7.23.0", | ||
"prettier": "^1.19.1", | ||
"ses": "^0.15.7" | ||
"ses": "^0.15.8" | ||
}, | ||
@@ -71,3 +71,3 @@ "directories": { | ||
}, | ||
"gitHead": "96df4cf238b245cc92c78e4af4667f405b8cf4f0" | ||
"gitHead": "9d2f88ab47f546bc59b6b6e7340482209b3cee56" | ||
} |
@@ -29,3 +29,3 @@ // Copyright (C) 2011 Google Inc. | ||
* | ||
* @param {any} allegedNum | ||
* @param {unknown} allegedNum | ||
* @returns {boolean} | ||
@@ -37,2 +37,5 @@ */ | ||
} | ||
if (typeof allegedNum !== 'number') { | ||
return false; | ||
} | ||
@@ -52,3 +55,3 @@ return Number.isSafeInteger(allegedNum) && allegedNum >= 0; | ||
* | ||
* @param {bigint | number} allegedNum | ||
* @param {unknown} allegedNum | ||
* @returns {bigint} | ||
@@ -55,0 +58,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
26487
97