New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@domql/utils

Package Overview
Dependencies
Maintainers
3
Versions
198
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.74 to 2.3.77

15

dist/cjs/object.js

@@ -174,7 +174,6 @@ "use strict";

}
} else {
stringified[prop] = objProp;
}
} else {
stringified[prop] = objProp;
}
if ((0, import_types.isArray)(objProp)) {
} else if ((0, import_types.isArray)(objProp)) {
stringified[prop] = [];

@@ -185,3 +184,3 @@ objProp.forEach((arrProp) => {

try {
const evalProp = import_globals.window.eval(arrProp);
const evalProp = import_globals.window.eval(`(${arrProp})`);
stringified[prop].push(evalProp);

@@ -195,4 +194,6 @@ } catch (e) {

}
} else if ((0, import_types.isObject)(arrProp)) {
stringified[prop].push(deepDestringify(arrProp));
} else {
stringified[prop].push(deepDestringify(arrProp));
stringified[prop].push(arrProp);
}

@@ -202,2 +203,4 @@ });

stringified[prop] = deepDestringify(objProp, stringified[prop]);
} else {
stringified[prop] = objProp;
}

@@ -204,0 +207,0 @@ }

18

object.js
'use strict'
import { window } from '@domql/globals'
import { isFunction, isObjectLike, isObject, isArray, isString } from './types.js'
import { isFunction, isObjectLike, isObject, isArray, isString, is } from './types.js'

@@ -153,8 +153,6 @@ export const exec = (param, element, state, context) => {

} catch (e) { if (e) stringified[prop] = objProp }
} else {
stringified[prop] = objProp
}
} else {
stringified[prop] = objProp
}
if (isArray(objProp)) {
} else if (isArray(objProp)) {
stringified[prop] = []

@@ -165,3 +163,3 @@ objProp.forEach((arrProp) => {

try {
const evalProp = window.eval(arrProp) // eslint-disable-line
const evalProp = window.eval(`(${arrProp})`) // use parentheses to convert string to function expression
stringified[prop].push(evalProp)

@@ -172,4 +170,6 @@ } catch (e) { if (e) stringified[prop].push(arrProp) }

}
} else if (isObject(arrProp)) {
stringified[prop].push(deepDestringify(arrProp))
} else {
stringified[prop].push(deepDestringify(arrProp))
stringified[prop].push(arrProp)
}

@@ -179,2 +179,4 @@ })

stringified[prop] = deepDestringify(objProp, stringified[prop]) // recursively call deepDestringify for nested objects
} else {
stringified[prop] = objProp
}

@@ -181,0 +183,0 @@ }

{
"name": "@domql/utils",
"version": "2.3.74",
"version": "2.3.77",
"license": "MIT",

@@ -25,3 +25,3 @@ "type": "module",

},
"gitHead": "93687b695be15ccf6f10ff345186d8cc51a73e8b"
"gitHead": "eb59a416c2b22ef1cea1b6da0064805f8843a8de"
}
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