deep-eql
Advanced tools
Comparing version 5.0.0 to 5.0.1
18
index.js
@@ -8,4 +8,20 @@ /* globals Symbol: false, Uint8Array: false, WeakMap: false */ | ||
import type from 'type-detect'; | ||
function type(obj) { | ||
if (typeof obj === 'undefined') { | ||
return 'undefined'; | ||
} | ||
if (obj === null) { | ||
return 'null'; | ||
} | ||
const stringTag = obj[Symbol.toStringTag]; | ||
if (typeof stringTag === 'string') { | ||
return stringTag; | ||
} | ||
const sliceStart = 8; | ||
const sliceEnd = -1; | ||
return Object.prototype.toString.call(obj).slice(sliceStart, sliceEnd); | ||
} | ||
function FakeMap() { | ||
@@ -12,0 +28,0 @@ this._key = 'chai/deep-eql__' + Math.random() + Date.now(); |
{ | ||
"name": "deep-eql", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Improved deep equality testing for Node.js and the browser.", | ||
@@ -54,5 +54,2 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"type-detect": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -72,3 +69,3 @@ "@js-temporal/polyfill": "^0.4.3", | ||
"mocha": "^9.1.1", | ||
"simple-assert": "^1.0.0" | ||
"simple-assert": "^2.0.0" | ||
}, | ||
@@ -75,0 +72,0 @@ "engines": { |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
464
0
0
23758
4
- Removedtype-detect@^4.0.0
- Removedtype-detect@4.0.8(transitive)