Socket
Socket
Sign inDemoInstall

@domql/utils

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@domql/utils - npm Package Compare versions

Comparing version 2.3.12 to 2.3.13

10

object.js

@@ -56,6 +56,8 @@ 'use strict'

*/
export const deepClone = (obj, excluding = ['parent', 'node', '__element', '__root']) => {
export const deepClone = (obj) => {
if (isArray(obj)) {
return obj.map(deepClone)
}
const o = {}
for (const prop in obj) {
if (excluding.indexOf(prop) > -1) continue
let objProp = obj[prop]

@@ -65,3 +67,5 @@ if (prop === 'extend' && isArray(objProp)) {

}
if (isObjectLike(objProp)) {
if (isArray(objProp)) {
o[prop] = objProp.map(deepClone)
} else if (isObject(objProp)) {
o[prop] = deepClone(objProp)

@@ -68,0 +72,0 @@ } else o[prop] = objProp

{
"name": "@domql/utils",
"version": "2.3.12",
"version": "2.3.13",
"main": "index.js",

@@ -9,4 +9,4 @@ "license": "MIT",

},
"gitHead": "3e4765dd6eed427b88443d8227de6574bff1c1bb",
"gitHead": "d00cd0afbcd26f61297f93cf18279dfaf41e4307",
"source": "index.js"
}
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