node-opcua-xml2json
Advanced tools
Comparing version 2.133.0 to 2.137.0
@@ -14,3 +14,3 @@ "use strict"; | ||
exports._definitionParser = { | ||
init(name, attrs) { | ||
init(name, attrs, parent, engine) { | ||
(0, node_opcua_assert_1.default)(!this.parent.nFields || this.parent.definitionFields.length === 0); | ||
@@ -17,0 +17,0 @@ this.parent.definitionFields = []; |
@@ -5,3 +5,2 @@ export * from "./xml2json"; | ||
export * from "./fragment_cloner_parser"; | ||
export * from "./extension_object_parser"; | ||
export * from "./definition_parser"; |
@@ -21,4 +21,3 @@ "use strict"; | ||
__exportStar(require("./fragment_cloner_parser"), exports); | ||
__exportStar(require("./extension_object_parser"), exports); | ||
__exportStar(require("./definition_parser"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "node-opcua-xml2json", | ||
"version": "2.133.0", | ||
"version": "2.137.0", | ||
"description": "pure nodejs OPCUA SDK - module xml2json", | ||
@@ -25,3 +25,3 @@ "main": "dist/source/index.js", | ||
"node-opcua-debug": "2.133.0", | ||
"node-opcua-nodesets": "2.121.0" | ||
"node-opcua-nodesets": "2.137.0" | ||
}, | ||
@@ -41,3 +41,3 @@ "repository": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "921bb04f2e7ce3109dd051ff27a2210edf700344", | ||
"gitHead": "e88e4f20d5436dd68084d2a6d447f170330b373d", | ||
"files": [ | ||
@@ -44,0 +44,0 @@ "dist", |
@@ -36,3 +36,3 @@ //<Definition Name="SomeName"> | ||
} | ||
interface AA { | ||
interface AA extends ReaderStateParserLike { | ||
parent: { | ||
@@ -52,3 +52,3 @@ definitionFields: StructureFieldOptions[]; | ||
export const _definitionParser: ReaderStateParserLike = { | ||
init(this: AA, name: string, attrs: XmlAttributes) { | ||
init(this: AA, name: string, attrs: XmlAttributes, parent: any, engine: any) { | ||
assert(!this.parent.nFields || this.parent.definitionFields.length === 0); | ||
@@ -111,2 +111,8 @@ this.parent.definitionFields = []; | ||
}; | ||
interface IDefinitionParserReader { | ||
_pojo: any, | ||
definitionName: string, | ||
definitionFields: StructureFieldOptions[] | ||
} | ||
export const definitionReaderStateParser: ReaderStateParserLike = { | ||
@@ -116,3 +122,3 @@ parser: { | ||
}, | ||
endElement(this: any) { | ||
endElement(this) { | ||
this._pojo = { | ||
@@ -119,0 +125,0 @@ name: this.definitionName, |
@@ -5,3 +5,2 @@ export * from "./xml2json"; | ||
export * from "./fragment_cloner_parser"; | ||
export * from "./extension_object_parser"; | ||
export * from "./definition_parser"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
137907
2038