node-opcua-xml2json
Advanced tools
Comparing version 0.5.0 to 2.0.0-alpha.2
{ | ||
"name": "node-opcua-xml2json", | ||
"version": "0.5.0", | ||
"version": "2.0.0-alpha.2", | ||
"description": "pure nodejs OPCUA SDK - module -xml2json", | ||
@@ -10,5 +10,5 @@ "main": "src/xml2json.js", | ||
"dependencies": { | ||
"bomstrip": "^0.1.4", | ||
"bomstrip": "0.1.4", | ||
"ltx": "^2.8.0", | ||
"node-opcua-assert": "^0.5.0", | ||
"node-opcua-assert": "^2.0.0-alpha.2", | ||
"underscore": "^1.9.1" | ||
@@ -19,3 +19,3 @@ }, | ||
"devDependencies": { | ||
"node-opcua-nodesets": "^0.5.0", | ||
"node-opcua-nodesets": "^2.0.0-alpha.2", | ||
"should": "13.2.3" | ||
@@ -36,3 +36,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "7c2f2dcb6ebdc49e57da1a028406a307df502d4e" | ||
"gitHead": "7f57dd90e9d8bd1abcb8d330b3470999ac51e33f" | ||
} |
@@ -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,7 +284,3 @@ self.current_state._on_text(text); | ||
fs.readFile(xmlFile,function(err, data){ | ||
if (err) { | ||
return callback(err); | ||
} | ||
try { | ||
if (!err) { | ||
if (data[0] === 0xEF && data[1] === 0xBB && data[2] === 0xBF) { | ||
@@ -299,4 +295,4 @@ data = data.slice(3); | ||
parser.end(); | ||
} catch(err) { | ||
return callback(err); | ||
} else { | ||
callback(err); | ||
} | ||
@@ -303,0 +299,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
13027
338
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addednode-opcua-assert@2.120.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedbetter-assert@1.0.2(transitive)
- Removedcallsite@1.0.0(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removednode-opcua-assert@0.5.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedbomstrip@0.1.4