node-opcua-xml2json
Advanced tools
Comparing version 0.4.0 to 0.4.2
{ | ||
"name": "node-opcua-xml2json", | ||
"version": "0.4.0", | ||
"version": "0.4.2", | ||
"description": "pure nodejs OPCUA SDK - module -xml2json", | ||
@@ -13,3 +13,3 @@ "main": "src/xml2json.js", | ||
"node-opcua-assert": "^0.4.0", | ||
"underscore": "^1.9.0" | ||
"underscore": "^1.9.1" | ||
}, | ||
@@ -19,3 +19,3 @@ "author": "Etienne Rossignon", | ||
"devDependencies": { | ||
"node-opcua-nodesets": "^0.3.0", | ||
"node-opcua-nodesets": "^0.4.2", | ||
"should": "13.2.1" | ||
@@ -22,0 +22,0 @@ }, |
@@ -27,5 +27,8 @@ /* global ReaderState */ | ||
if (parser.hasOwnProperty(name)) { | ||
if (!(parser[name] instanceof ReaderState)) { | ||
parser[name] = new ReaderState(parser[name]); | ||
} | ||
if (parser[name] && !(parser[name] instanceof ReaderState)) { | ||
// this is to prevent recursion | ||
const tmp = parser[name]; | ||
parser[name] = null; | ||
parser[name] = new ReaderState(tmp); } | ||
} | ||
@@ -307,1 +310,2 @@ } | ||
exports.Xml2Json = Xml2Json; | ||
exports.ReaderState = ReaderState; |
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
12948
338
Updatedunderscore@^1.9.1