node-opcua-xml2json
Advanced tools
Comparing version 2.6.0-alpha.1 to 2.6.0-alpha.7
@@ -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; |
@@ -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
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
84781
1778