@journeyapps/core-xml
Advanced tools
Comparing version 0.0.0-dev.0d12bd8.0a72281 to 0.0.0-dev.12973f9.ff48a98
@@ -13,6 +13,3 @@ "use strict"; | ||
const newDoc = document.implementation.createDocument(document.documentElement.tagName, null, null); | ||
const actualOptions = { | ||
indentSpaces: 4, | ||
...options | ||
}; | ||
const actualOptions = Object.assign({ indentSpaces: 4 }, options); | ||
for (let i = 0; i < document.childNodes.length; i++) { | ||
@@ -38,6 +35,3 @@ const child = document.childNodes.item(i); | ||
else { | ||
const actualOptions = { | ||
indentSpaces: 4, | ||
...options | ||
}; | ||
const actualOptions = Object.assign({ indentSpaces: 4 }, options); | ||
const prettyElement = prettyNode(node.ownerDocument, node, actualOptions, 0); | ||
@@ -44,0 +38,0 @@ return serializeToString(prettyElement); |
{ | ||
"name": "@journeyapps/core-xml", | ||
"version": "0.0.0-dev.0d12bd8.0a72281", | ||
"version": "0.0.0-dev.12973f9.ff48a98", | ||
"description": "Journey JS library", | ||
@@ -18,3 +18,3 @@ "main": "./dist/src/node.js", | ||
"devDependencies": { | ||
"@journeyapps/core-test-helpers": "0.0.0-dev.0d12bd8.0a72281" | ||
"@journeyapps/core-test-helpers": "0.0.0-dev.12973f9.ff48a98" | ||
}, | ||
@@ -26,3 +26,3 @@ "files": [ | ||
], | ||
"gitHead": "fdd5d4fb89f25ea468bb70735768701a57c20b6b" | ||
"gitHead": "25b022e70280c980c5eb3bc3e3c451287b70b218" | ||
} |
Sorry, the diff of this file is not supported yet
109033
1348