🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

deep-equal

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-equal - npm Package Compare versions

Comparing version

to
1.0.1

2

index.js

@@ -16,3 +16,3 @@ var pSlice = Array.prototype.slice;

// equivalence is determined by ==.
} else if (typeof actual != 'object' && typeof expected != 'object') {
} else if (!actual || !expected || typeof actual != 'object' && typeof expected != 'object') {
return opts.strict ? actual === expected : actual == expected;

@@ -19,0 +19,0 @@

{
"name": "deep-equal",
"version": "1.0.0",
"version": "1.0.1",
"description": "node's assert.deepEqual algorithm",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -90,1 +90,7 @@ var test = require('tape');

})
test('null == undefined', function (t) {
t.ok(equal(null, undefined))
t.notOk(equal(null, undefined, { strict: true }))
t.end()
})

Sorry, the diff of this file is not supported yet