node-opcua-xml2json
Advanced tools
Comparing version 2.13.0 to 2.15.0
@@ -38,4 +38,4 @@ "use strict"; | ||
this.parent.description = this.text; | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
@@ -63,3 +63,3 @@ finish() { | ||
if (this.attrs.ArrayDimensions !== undefined) { | ||
obj.arrayDimensions = this.attrs.ArrayDimensions; | ||
obj.arrayDimensions = this.attrs.ArrayDimensions.split(",").map((e) => parseInt(e, 10)); | ||
} | ||
@@ -71,9 +71,9 @@ obj.isOptional = this.attrs.IsOptional === "true" ? true : false; | ||
this.parent.array.push(obj); | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
}; | ||
exports.definitionReaderStateParser = { | ||
parser: { | ||
Definition: exports._definitionParser | ||
Definition: exports._definitionParser, | ||
}, | ||
@@ -83,6 +83,6 @@ endElement() { | ||
name: this.definitionName, | ||
fields: this.definitionFields | ||
fields: this.definitionFields, | ||
}; | ||
} | ||
}, | ||
}; | ||
//# sourceMappingURL=definition_parser.js.map |
{ | ||
"name": "node-opcua-xml2json", | ||
"version": "2.13.0", | ||
"version": "2.15.0", | ||
"description": "pure nodejs OPCUA SDK - module -xml2json", | ||
@@ -40,3 +40,3 @@ "main": "dist/source/index.js", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "3c8a33e1e9d7923c9434607ad22d51d6d8d58918" | ||
"gitHead": "d92ce0bdee1ed90c2b38ee20420f091fe9bf7365" | ||
} |
@@ -7,6 +7,3 @@ // <Definition Name="SomeName"> | ||
import assert from "node-opcua-assert"; | ||
import { | ||
ReaderStateParserLike, | ||
XmlAttributes | ||
} from "./xml2json"; | ||
import { ReaderStateParserLike, XmlAttributes } from "./xml2json"; | ||
@@ -41,4 +38,4 @@ // <Definition Name="SomeName"> | ||
this.parent.description = this.text; | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
@@ -65,3 +62,3 @@ finish(this: any) { | ||
if (this.attrs.ArrayDimensions !== undefined) { | ||
obj.arrayDimensions = this.attrs.ArrayDimensions; | ||
obj.arrayDimensions = this.attrs.ArrayDimensions.split(",").map((e: string) => parseInt(e, 10)); | ||
} | ||
@@ -75,9 +72,9 @@ | ||
this.parent.array.push(obj); | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
}; | ||
export const definitionReaderStateParser: ReaderStateParserLike = { | ||
parser: { | ||
Definition: _definitionParser | ||
Definition: _definitionParser, | ||
}, | ||
@@ -88,5 +85,5 @@ endElement(this: any) { | ||
fields: this.definitionFields | ||
fields: this.definitionFields, | ||
}; | ||
} | ||
}, | ||
}; |
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
92316
2017