File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " njs-tfso-xml" ,
3
- "version" : " 1.3 .0" ,
3
+ "version" : " 1.4 .0" ,
4
4
"main" : " ./index.js" ,
5
5
"scripts" : {
6
6
"test" : " mocha --recursive ./test/**/test*"
7
7
},
8
8
"dependencies" : {
9
- "lodash" : " ^4.17.10 " ,
9
+ "lodash" : " ^4.17.15 " ,
10
10
"sax" : " ^1.2.4" ,
11
- "through2" : " ^2.0.3 " ,
12
- "xml2js" : " ^0.4.19 " ,
13
- "xmldom" : " ^0.1.27 "
11
+ "through2" : " ^2.0.5 " ,
12
+ "xml2js" : " ^0.4.23 " ,
13
+ "xmldom" : " ^0.3.0 "
14
14
},
15
15
"devDependencies" : {
16
- "chai" : " ^3.5 .0" ,
17
- "mocha" : " ^3.0.2 "
16
+ "chai" : " ^4.2 .0" ,
17
+ "mocha" : " ^7.1.0 "
18
18
}
19
19
}
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ class XmlWriter{
28
28
const documentElement = doc . documentElement
29
29
30
30
if ( namespaceURI && schemaLocation ) {
31
- documentElement . setAttributeNS ( namespaceURI , 'xsi:schemaLocation' , schemaLocation )
31
+ documentElement . setAttribute ( 'xmlns:xsi' , namespaceURI )
32
+ documentElement . setAttribute ( 'xsi:schemaLocation' , schemaLocation )
32
33
}
33
34
34
35
return new XmlWriter ( doc , documentElement )
You can’t perform that action at this time.
0 commit comments