assert-plus
Advanced tools
Comparing version 0.2.0 to 1.0.0
@@ -59,2 +59,7 @@ // Copyright (c) 2012, Mark Cavage. All rights reserved. | ||
check: function (arg) { | ||
return typeof (arg) === 'number' && !isNaN(arg); | ||
} | ||
}, | ||
finite: { | ||
check: function (arg) { | ||
return typeof (arg) === 'number' && !isNaN(arg) && isFinite(arg); | ||
@@ -61,0 +66,0 @@ } |
# assert-plus Changelog | ||
## 1.0.0 | ||
- *BREAKING* assert.number (and derivatives) now accept Infinity as valid input | ||
- Add assert.finite check. Previous assert.number callers should use this if | ||
they expect Infinity inputs to throw. | ||
## 0.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Extra assertions on top of node's assert module", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "main": "./assert.js", |
@@ -77,2 +77,3 @@ # assert-plus | ||
* assert.number | ||
* assert.finite | ||
* assert.object | ||
@@ -82,3 +83,3 @@ * assert.string | ||
* assert.date | ||
* assert.regex | ||
* assert.regexp | ||
* assert.uuid | ||
@@ -90,2 +91,3 @@ * assert.arrayOfArray | ||
* assert.arrayOfNumber | ||
* assert.arrayOfFinite | ||
* assert.arrayOfObject | ||
@@ -95,2 +97,3 @@ * assert.arrayOfString | ||
* assert.arrayOfDate | ||
* assert.arrayOfRegexp | ||
* assert.arrayOfUuid | ||
@@ -102,2 +105,3 @@ * assert.optionalArray | ||
* assert.optionalNumber | ||
* assert.optionalFinite | ||
* assert.optionalObject | ||
@@ -107,2 +111,3 @@ * assert.optionalString | ||
* assert.optionalDate | ||
* assert.optionalRegexp | ||
* assert.optionalUuid | ||
@@ -114,2 +119,3 @@ * assert.optionalArrayOfArray | ||
* assert.optionalArrayOfNumber | ||
* assert.optionalArrayOfFinite | ||
* assert.optionalArrayOfObject | ||
@@ -119,2 +125,3 @@ * assert.optionalArrayOfString | ||
* assert.optionalArrayOfDate | ||
* assert.optionalArrayOfRegexp | ||
* assert.optionalArrayOfUuid | ||
@@ -121,0 +128,0 @@ * assert.AssertionError |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11443
188
1
163
0