Socket
Socket
Sign inDemoInstall

deep-eql

Package Overview
Dependencies
0
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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();

7

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc