@package/value
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -66,3 +66,3 @@ "use strict"; | ||
? item | ||
: typeof num === 'number' && num === num | ||
: typeof num === 'number' && num === num && num !== Number.POSITIVE_INFINITY && num !== Number.NEGATIVE_INFINITY | ||
? num | ||
@@ -69,0 +69,0 @@ : Object.prototype.hasOwnProperty.call(force, (str = String(item))) |
{ | ||
"name" : "@package/value", | ||
"version" : "0.0.15", | ||
"version" : "0.0.16", | ||
"description" : "useful work around for existential getting/setting values in nested Objects", | ||
@@ -5,0 +5,0 @@ "main" : "./index.js", |
"use strict"; | ||
var chai = require('chai'); | ||
var { expect: EXPECT } = require('chai'); | ||
var {value, assign, bless, coerce, empty, exists} = require('./'); | ||
const EXPECT = chai.expect; | ||
suite('@package/value', function () { | ||
@@ -82,2 +80,4 @@ test('<static> value', function (done) { | ||
EXPECT(coerce('')).to.equal(''); | ||
EXPECT(coerce('123e4567890')).to.equal('123e4567890'); | ||
EXPECT(coerce('-123e4567890')).to.equal('-123e4567890'); | ||
@@ -84,0 +84,0 @@ var date = new Date(); |
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
16953
222
1