Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@domql/utils

Package Overview
Dependencies
Maintainers
0
Versions
195
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.5.170 to 2.5.177

3

dist/cjs/object.js

@@ -234,2 +234,5 @@ "use strict";

const objectToString = (obj = {}, indent = 0) => {
if (Object.keys(obj).length === 0) {
return "{}";
}
const spaces = " ".repeat(indent);

@@ -236,0 +239,0 @@ let str = "{\n";

@@ -205,2 +205,5 @@ var __defProp = Object.defineProperty;

const objectToString = (obj = {}, indent = 0) => {
if (Object.keys(obj).length === 0) {
return "{}";
}
const spaces = " ".repeat(indent);

@@ -207,0 +210,0 @@ let str = "{\n";

@@ -241,2 +241,7 @@ 'use strict'

export const objectToString = (obj = {}, indent = 0) => {
// Handle empty object case
if (Object.keys(obj).length === 0) {
return '{}'
}
const spaces = ' '.repeat(indent)

@@ -256,3 +261,2 @@ let str = '{\n'

} else if (isString(element)) {
// if (element.includes('\n')) str += spaces + ' ' + '`' + element + '`,\n'
str += `${spaces} '${element}',\n`

@@ -259,0 +263,0 @@ } else {

4

package.json
{
"name": "@domql/utils",
"version": "2.5.170",
"version": "2.5.177",
"license": "MIT",

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

},
"gitHead": "44f9d2c4157170a03784d6abca2eee3604b97270",
"gitHead": "faa8ed6c9ba30a49c81962cd3e16c0ffac833f4e",
"devDependencies": {

@@ -31,0 +31,0 @@ "@babel/core": "^7.12.0"

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