@domql/utils 2.5.87 → 2.5.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/object.js +1 -1
- package/object.js +1 -1
- package/package.json +2 -2
package/dist/cjs/object.js
CHANGED
|
@@ -195,7 +195,7 @@ const deepStringify = (obj, stringified = {}) => {
|
|
|
195
195
|
}
|
|
196
196
|
return stringified;
|
|
197
197
|
};
|
|
198
|
-
const objectToString = (obj, indent = 0) => {
|
|
198
|
+
const objectToString = (obj = {}, indent = 0) => {
|
|
199
199
|
const spaces = " ".repeat(indent);
|
|
200
200
|
let str = "{\n";
|
|
201
201
|
for (const [key, value] of Object.entries(obj)) {
|
package/object.js
CHANGED
|
@@ -175,7 +175,7 @@ export const deepStringify = (obj, stringified = {}) => {
|
|
|
175
175
|
return stringified
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
export const objectToString = (obj, indent = 0) => {
|
|
178
|
+
export const objectToString = (obj = {}, indent = 0) => {
|
|
179
179
|
const spaces = ' '.repeat(indent)
|
|
180
180
|
let str = '{\n'
|
|
181
181
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/utils",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.89",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "yarn build:cjs",
|
|
24
24
|
"prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "107aed00dc54d9e9c23948f37c9c704f8ed53cef",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.12.0"
|
|
29
29
|
}
|