Skip to content

Commit

Permalink
Upgrading all libs in the project
Browse files Browse the repository at this point in the history
including xmldom with has some api changes
  • Loading branch information
edgarbjorntvedt committed Mar 10, 2020
1 parent 82b2fd7 commit 3761991
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "njs-tfso-xml",
"version": "1.3.0",
"version": "1.4.0",
"main": "./index.js",
"scripts": {
"test": "mocha --recursive ./test/**/test*"
},
"dependencies": {
"lodash": "^4.17.10",
"lodash": "^4.17.15",
"sax": "^1.2.4",
"through2": "^2.0.3",
"xml2js": "^0.4.19",
"xmldom": "^0.1.27"
"through2": "^2.0.5",
"xml2js": "^0.4.23",
"xmldom": "^0.3.0"
},
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^3.0.2"
"chai": "^4.2.0",
"mocha": "^7.1.0"
}
}
3 changes: 2 additions & 1 deletion src/XmlWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class XmlWriter{
const documentElement = doc.documentElement

if(namespaceURI && schemaLocation){
documentElement.setAttributeNS(namespaceURI, 'xsi:schemaLocation', schemaLocation)
documentElement.setAttribute('xmlns:xsi', namespaceURI)
documentElement.setAttribute('xsi:schemaLocation', schemaLocation)
}

return new XmlWriter(doc, documentElement)
Expand Down

0 comments on commit 3761991

Please sign in to comment.