Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@endo/nat

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@endo/nat - npm Package Compare versions

Comparing version 4.1.4 to 4.1.5

9

CHANGELOG.md

@@ -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 @@

8

package.json
{
"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 @@ */

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc