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

assert-plus

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assert-plus - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

5

assert.js

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

2

package.json

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

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