Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-xml2json

Package Overview
Dependencies
Maintainers
1
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-xml2json - npm Package Compare versions

Comparing version 0.4.6 to 0.5.0

10

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc