node-opcua-xml2json
Advanced tools
Comparing version 0.4.6 to 0.5.0
{ | ||
"name": "node-opcua-xml2json", | ||
"version": "0.4.6", | ||
"version": "0.5.0", | ||
"description": "pure nodejs OPCUA SDK - module -xml2json", | ||
@@ -11,4 +11,4 @@ "main": "src/xml2json.js", | ||
"bomstrip": "^0.1.4", | ||
"ltx": "^2.7.2", | ||
"node-opcua-assert": "^0.4.6", | ||
"ltx": "^2.8.0", | ||
"node-opcua-assert": "^0.5.0", | ||
"underscore": "^1.9.1" | ||
@@ -19,3 +19,3 @@ }, | ||
"devDependencies": { | ||
"node-opcua-nodesets": "^0.4.2", | ||
"node-opcua-nodesets": "^0.5.0", | ||
"should": "13.2.3" | ||
@@ -36,3 +36,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "537d2a1f4d88271c57389d8ed56d787cf67588d2" | ||
"gitHead": "7c2f2dcb6ebdc49e57da1a028406a307df502d4e" | ||
} |
@@ -243,3 +243,3 @@ /* global ReaderState */ | ||
text = text.trim(); | ||
if (text.length ==0) return; | ||
if (text.length === 0) return; | ||
//xx console.log("txt",text); | ||
@@ -284,3 +284,7 @@ self.current_state._on_text(text); | ||
fs.readFile(xmlFile,function(err, data){ | ||
if (!err) { | ||
if (err) { | ||
return callback(err); | ||
} | ||
try { | ||
if (data[0] === 0xEF && data[1] === 0xBB && data[2] === 0xBF) { | ||
@@ -295,4 +299,4 @@ data = data.slice(3); | ||
parser.end(); | ||
} else { | ||
callback(err); | ||
} catch(err) { | ||
return callback(err); | ||
} | ||
@@ -299,0 +303,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
13092
341
+ Addednode-opcua-assert@0.5.0(transitive)
- Removednode-opcua-assert@0.4.6(transitive)
Updatedltx@^2.8.0
Updatednode-opcua-assert@^0.5.0