Comparing version 5.0.7 to 5.0.8
{ | ||
"name": "@endo/nat", | ||
"version": "5.0.7", | ||
"version": "5.0.8", | ||
"description": "Ensures that a number is within the natural numbers (0, 1, 2...) or throws a RangeError", | ||
@@ -13,4 +13,4 @@ "main": "./src/index.js", | ||
"build": "exit 0", | ||
"build:types": "tsc --build tsconfig.build.json", | ||
"clean:types": "git clean -f '*.d.ts*'", | ||
"prepack": "tsc --build tsconfig.build.json", | ||
"postpack": "git clean -f '*.d.ts*'", | ||
"lint": "yarn lint:types && yarn lint:eslint", | ||
@@ -34,10 +34,11 @@ "lint-fix": "eslint --fix .", | ||
"devDependencies": { | ||
"@endo/compartment-mapper": "^1.1.5", | ||
"ava": "^6.1.2", | ||
"@endo/compartment-mapper": "^1.2.0", | ||
"ava": "^6.1.3", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"prettier": "^3.2.5", | ||
"ses": "^1.5.0" | ||
"ses": "^1.6.0", | ||
"typescript": "5.5.2" | ||
}, | ||
@@ -61,3 +62,4 @@ "directories": { | ||
"files": [ | ||
"test/**/*.js" | ||
"test/**/test-*.*", | ||
"test/**/*.test.*" | ||
] | ||
@@ -73,3 +75,3 @@ }, | ||
}, | ||
"gitHead": "08e59bc0d262565165636c2e3875bbe3dcb91cf8" | ||
"gitHead": "681b813ccb1fa177905dabf2ed3f5f248cb33ce7" | ||
} |
@@ -66,3 +66,3 @@ // Copyright (C) 2011 Google Inc. | ||
if (!Number.isSafeInteger(allegedNum)) { | ||
throw RangeError(`${allegedNum} not a safe integer`); | ||
throw RangeError(`${allegedNum} is not a safe integer`); | ||
} | ||
@@ -69,0 +69,0 @@ if (allegedNum < 0) { |
26098
9