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

@endo/nat

Package Overview
Dependencies
Maintainers
5
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.27 to 4.1.28

16

package.json
{
"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 @@ );

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