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 2.6.0-alpha.1 to 2.6.0-alpha.7

10

dist/source/definition_parser.js

@@ -11,2 +11,3 @@ "use strict";

this.array = this.parent.definitionFields;
this.isUnion = attrs.IsUnion === "true" ? true : false;
},

@@ -39,10 +40,11 @@ parser: {

if (this.attrs.ValueRank !== undefined) {
obj.valueRank = parseInt(this.attrs.ValueRank || "-1", 10);
obj.valueRank = parseInt(this.attrs.ValueRank, 10);
}
else {
obj.valueRank = -1;
}
if (this.attrs.ArrayDimensions !== undefined) {
obj.arrayDimensions = this.attrs.ArrayDimensions;
}
if (this.attrs.IsOptional !== undefined) {
obj.isOptional = this.attrs.IsOptional ? true : false;
}
obj.isOptional = this.attrs.IsOptional === "true" ? true : false;
if (this.attrs.SymbolicName !== undefined) {

@@ -49,0 +51,0 @@ obj.symbolicName = this.attrs.SymbolicName;

2

dist/source/index.js

@@ -11,3 +11,3 @@ "use strict";

for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
}
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,0 +14,0 @@ __exportStar(require("./xml2json"), exports);

{
"name": "node-opcua-xml2json",
"version": "2.6.0-alpha.1",
"version": "2.6.0-alpha.7",
"description": "pure nodejs OPCUA SDK - module -xml2json",

@@ -40,3 +40,3 @@ "main": "dist/source/index.js",

"homepage": "http://node-opcua.github.io/",
"gitHead": "becfcbe561410100413321e3f7f3913c6f75b837"
"gitHead": "6af0c6f183dcb96ddc5a2befc98851d0960c5fd0"
}

@@ -29,2 +29,3 @@ // <Definition Name="SomeName">

this.array = this.parent.definitionFields;
this.isUnion = attrs.IsUnion === "true" ? true : false;
},

@@ -57,3 +58,6 @@ parser: {

if (this.attrs.ValueRank !== undefined) {
obj.valueRank = parseInt(this.attrs.ValueRank || "-1", 10);
obj.valueRank = parseInt(this.attrs.ValueRank, 10);
} else {
// when not specified valueRank means Scalar and Scalar is -1
obj.valueRank = -1;
}

@@ -63,5 +67,5 @@ if (this.attrs.ArrayDimensions !== undefined) {

}
if (this.attrs.IsOptional !== undefined) {
obj.isOptional = this.attrs.IsOptional ? true : false;
}
obj.isOptional = this.attrs.IsOptional === "true" ? true : false;
if (this.attrs.SymbolicName !== undefined) {

@@ -68,0 +72,0 @@ obj.symbolicName = this.attrs.SymbolicName;

Sorry, the diff of this file is not supported yet

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