@domql/utils
Advanced tools
Comparing version 2.5.170 to 2.5.177
@@ -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 { |
{ | ||
"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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
155740
4962
0