node-opcua-xml2json 2.64.1 → 2.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/source/definition_parser.d.ts +3 -3
- package/dist/source/definition_parser.js +83 -83
- package/dist/source/extension_object_parser.d.ts +24 -17
- package/dist/source/extension_object_parser.js +249 -239
- package/dist/source/extension_object_parser.js.map +1 -1
- package/dist/source/fragment_cloner.d.ts +13 -13
- package/dist/source/fragment_cloner.js +44 -44
- package/dist/source/fragment_cloner_parser.d.ts +8 -8
- package/dist/source/fragment_cloner_parser.js +15 -15
- package/dist/source/index.d.ts +6 -6
- package/dist/source/index.js +22 -18
- package/dist/source/index.js.map +1 -1
- package/dist/source/nodejs/xml2json_fs.d.ts +10 -10
- package/dist/source/nodejs/xml2json_fs.js +38 -38
- package/dist/source/xml2Json_pojo_tools.d.ts +19 -19
- package/dist/source/xml2Json_pojo_tools.js +88 -88
- package/dist/source/xml2json.d.ts +179 -177
- package/dist/source/xml2json.js +302 -295
- package/dist/source/xml2json.js.map +1 -1
- package/dist/source/xml2json_pojo.d.ts +7 -7
- package/dist/source/xml2json_pojo.js +28 -28
- package/package.json +7 -7
- package/source/extension_object_parser.ts +10 -0
- package/source/xml2json.ts +9 -0
- package/dist/source/fragmentCloner.d.ts +0 -20
- package/dist/source/fragmentCloner.js +0 -55
- package/dist/source/fragmentCloner.js.map +0 -1
- package/dist/source/xml2JsonPojo.d.ts +0 -8
- package/dist/source/xml2JsonPojo.js +0 -109
- package/dist/source/xml2JsonPojo.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Xml2JsonPojo = exports.startPojo = exports.json_parser = void 0;
|
|
4
|
-
const xml2json_1 = require("./xml2json");
|
|
5
|
-
const xml2Json_pojo_tools_1 = require("./xml2Json_pojo_tools");
|
|
6
|
-
const json_extractor = new xml2Json_pojo_tools_1.ReaderState2();
|
|
7
|
-
exports.json_parser = {
|
|
8
|
-
init(elementName, attrs, parent, engine) {
|
|
9
|
-
json_extractor._on_init(elementName, attrs, parent, 0, engine);
|
|
10
|
-
},
|
|
11
|
-
finish() {
|
|
12
|
-
this.parent._pojo = json_extractor._pojo;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
function startPojo(pThis, elementName, attrs, withPojo) {
|
|
16
|
-
pThis.engine._promote(json_extractor, pThis.engine.currentLevel, elementName, attrs);
|
|
17
|
-
json_extractor._withPojo = (name, pojo) => {
|
|
18
|
-
withPojo(name, pojo);
|
|
19
|
-
pThis.engine._demote(json_extractor, pThis.engine.currentLevel, elementName);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
exports.startPojo = startPojo;
|
|
23
|
-
class Xml2JsonPojo extends xml2json_1.Xml2Json {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(json_extractor);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.Xml2JsonPojo = Xml2JsonPojo;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Xml2JsonPojo = exports.startPojo = exports.json_parser = void 0;
|
|
4
|
+
const xml2json_1 = require("./xml2json");
|
|
5
|
+
const xml2Json_pojo_tools_1 = require("./xml2Json_pojo_tools");
|
|
6
|
+
const json_extractor = new xml2Json_pojo_tools_1.ReaderState2();
|
|
7
|
+
exports.json_parser = {
|
|
8
|
+
init(elementName, attrs, parent, engine) {
|
|
9
|
+
json_extractor._on_init(elementName, attrs, parent, 0, engine);
|
|
10
|
+
},
|
|
11
|
+
finish() {
|
|
12
|
+
this.parent._pojo = json_extractor._pojo;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
function startPojo(pThis, elementName, attrs, withPojo) {
|
|
16
|
+
pThis.engine._promote(json_extractor, pThis.engine.currentLevel, elementName, attrs);
|
|
17
|
+
json_extractor._withPojo = (name, pojo) => {
|
|
18
|
+
withPojo(name, pojo);
|
|
19
|
+
pThis.engine._demote(json_extractor, pThis.engine.currentLevel, elementName);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.startPojo = startPojo;
|
|
23
|
+
class Xml2JsonPojo extends xml2json_1.Xml2Json {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(json_extractor);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Xml2JsonPojo = Xml2JsonPojo;
|
|
29
29
|
//# sourceMappingURL=xml2json_pojo.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-xml2json",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.66.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -xml2json",
|
|
5
5
|
"main": "dist/source/index.js",
|
|
6
6
|
"types": "dist/source/index.d.ts",
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
"build": "tsc -b",
|
|
9
9
|
"lint": "eslint source test",
|
|
10
10
|
"format": "prettier --write source test",
|
|
11
|
-
"clean": "
|
|
11
|
+
"clean": "npx rimraf dist *.tsbuildinfo",
|
|
12
12
|
"test": "mocha"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"bomstrip": "^0.1.4",
|
|
16
16
|
"ltx": "^3.0.0",
|
|
17
|
-
"node-opcua-assert": "2.
|
|
18
|
-
"node-opcua-debug": "2.
|
|
19
|
-
"node-opcua-utils": "2.
|
|
17
|
+
"node-opcua-assert": "2.66.0",
|
|
18
|
+
"node-opcua-debug": "2.66.0",
|
|
19
|
+
"node-opcua-utils": "2.66.0",
|
|
20
20
|
"xml-writer": "^1.7.0"
|
|
21
21
|
},
|
|
22
22
|
"author": "Etienne Rossignon",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"node-opcua-nodesets": "2.
|
|
25
|
+
"node-opcua-nodesets": "2.66.0",
|
|
26
26
|
"should": "^13.2.3"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"internet of things"
|
|
39
39
|
],
|
|
40
40
|
"homepage": "http://node-opcua.github.io/",
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "97f47e2e242a1fd737495fd64cb65e8fb7a9964b"
|
|
42
42
|
}
|
|
@@ -187,6 +187,9 @@ function _clone(a: any): any {
|
|
|
187
187
|
if (typeof a === "string" || typeof a === "number" || typeof a === "boolean") {
|
|
188
188
|
return a;
|
|
189
189
|
}
|
|
190
|
+
if (a instanceof Buffer) {
|
|
191
|
+
return Buffer.from(a);
|
|
192
|
+
}
|
|
190
193
|
if (a instanceof Array) {
|
|
191
194
|
return a.map((x) => _clone(x));
|
|
192
195
|
}
|
|
@@ -271,6 +274,13 @@ function _makeExtensionObjectReader(
|
|
|
271
274
|
return reader;
|
|
272
275
|
}
|
|
273
276
|
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated ( use makeXmlExtensionObjectReader instead)
|
|
279
|
+
* @param definitionName
|
|
280
|
+
* @param definitionMap
|
|
281
|
+
* @param readerMap
|
|
282
|
+
* @returns
|
|
283
|
+
*/
|
|
274
284
|
export function makeExtensionObjectReader(
|
|
275
285
|
definitionName: string,
|
|
276
286
|
definitionMap: DefinitionMap,
|
package/source/xml2json.ts
CHANGED
|
@@ -305,7 +305,16 @@ export class Xml2Json {
|
|
|
305
305
|
this._promote(state, 0);
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
|
|
309
|
+
public parseStringSync(xml_text: string): Record<string, unknown> {
|
|
310
|
+
let retValue: Record<string, unknown> = {};
|
|
311
|
+
const parser = this._prepareParser((err: Error | null | undefined, r: Record<string, unknown>)=> retValue =r);
|
|
312
|
+
parser.write(xml_text);
|
|
313
|
+
parser.end();
|
|
314
|
+
return retValue;
|
|
315
|
+
}
|
|
308
316
|
/**
|
|
317
|
+
* @deprecated
|
|
309
318
|
* @method parseString
|
|
310
319
|
* @async
|
|
311
320
|
*/
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Xml2Json, XmlAttributes, IReaderState } from "./xml2json";
|
|
2
|
-
export declare class InternalFragmentClonerReaderState implements IReaderState {
|
|
3
|
-
private _xw;
|
|
4
|
-
value: any;
|
|
5
|
-
initLevel: number;
|
|
6
|
-
engine?: Xml2Json;
|
|
7
|
-
_on_startElement(level: number, elementName: string, attrs: XmlAttributes): void;
|
|
8
|
-
_on_endElement(level: number, elementName: string): void;
|
|
9
|
-
_on_init(elementName: string, attrs: XmlAttributes, parent: IReaderState, level: number, engine: Xml2Json): void;
|
|
10
|
-
_on_finish(): void;
|
|
11
|
-
_on_endElement2(level: number, elementName: string): void;
|
|
12
|
-
_on_text(text: string): void;
|
|
13
|
-
}
|
|
14
|
-
export declare class FragmentClonerParser {
|
|
15
|
-
value: any;
|
|
16
|
-
private _cloneFragment?;
|
|
17
|
-
constructor();
|
|
18
|
-
startElement(this: any, elementName: string, attrs: XmlAttributes): void;
|
|
19
|
-
finish(): void;
|
|
20
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const XMLWriter = require("xml-writer");
|
|
4
|
-
class InternalFragmentClonerReaderState {
|
|
5
|
-
constructor() {
|
|
6
|
-
this._xw = new XMLWriter(true);
|
|
7
|
-
this.initLevel = 0;
|
|
8
|
-
}
|
|
9
|
-
_on_startElement(level, elementName, attrs) {
|
|
10
|
-
this._xw.startElement(elementName);
|
|
11
|
-
for (const [attName, attValue] of Object.entries(attrs)) {
|
|
12
|
-
this._xw.writeAttribute(attName, attValue);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
_on_endElement(level, elementName) {
|
|
16
|
-
this._xw.endElement();
|
|
17
|
-
if (this.initLevel === level) {
|
|
18
|
-
this.value = this._xw.toString();
|
|
19
|
-
this.engine._demote(this, this.engine.currentLevel, elementName);
|
|
20
|
-
this.engine = undefined;
|
|
21
|
-
this._on_finish();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
_on_init(elementName, attrs, parent, level, engine) {
|
|
25
|
-
this.engine = engine;
|
|
26
|
-
this.initLevel = level;
|
|
27
|
-
this._xw = new XMLWriter(true);
|
|
28
|
-
this._xw.startElement(elementName);
|
|
29
|
-
for (const [attName, attValue] of Object.entries(attrs)) {
|
|
30
|
-
this._xw.writeAttribute(attName, attValue);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
_on_finish() {
|
|
34
|
-
}
|
|
35
|
-
_on_endElement2(level, elementName) {
|
|
36
|
-
}
|
|
37
|
-
_on_text(text) {
|
|
38
|
-
this._xw.text(text);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.InternalFragmentClonerReaderState = InternalFragmentClonerReaderState;
|
|
42
|
-
class FragmentClonerParser {
|
|
43
|
-
constructor() {
|
|
44
|
-
}
|
|
45
|
-
startElement(elementName, attrs) {
|
|
46
|
-
this._cloneFragment = new InternalFragmentClonerReaderState();
|
|
47
|
-
this.engine._promote(this._cloneFragment, this.engine.currentLevel, elementName, attrs);
|
|
48
|
-
}
|
|
49
|
-
finish() {
|
|
50
|
-
this.value = this._cloneFragment.value;
|
|
51
|
-
this._cloneFragment.value = null;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.FragmentClonerParser = FragmentClonerParser;
|
|
55
|
-
//# sourceMappingURL=fragmentCloner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fragmentCloner.js","sourceRoot":"","sources":["../../source/fragmentCloner.ts"],"names":[],"mappings":";;AAkBA,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAExC,MAAa,iCAAiC;IAA9C;QACY,QAAG,GAAc,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;QAEtC,cAAS,GAAU,C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B,CAAC;IACM,eAAe,CAAC,KAAa,EAAE,WAAmB;IACzD,CAAC;IACM,QAAQ,CAAC,IAAY;QACxB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;CACJ;AArCD,8EAqCC;AAED,MAAa,oBAAoB;IAG7B;IACA,CAAC;IAEM,YAAY,CAAY,WAAmB,EAAE,KAAoB;QACpE,IAAI,CAAC,cAAc,GAAE,IAAI,iCAAiC,EAAE,CAAC;QAC7D,IAAI,CAAC,MAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,MAAO,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;IACM,MAAM;QACT,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,cAAe,CAAC,KAAK,CAAC;QACxC,IAAI,CAAC,cAAe,CAAC,KAAK,GAAG,IAAI,CAAC;IACtC,CAAC;CACJ;AAdD,oDAcC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReaderState, ReaderStateParser, Xml2Json, XmlAttributes } from "./xml2json";
|
|
2
|
-
declare type withPojoLambda = (name: string, pojo: any) => void;
|
|
3
|
-
export declare const json_parser: ReaderStateParser;
|
|
4
|
-
export declare function startPojo(pThis: ReaderState, elementName: string, attrs: XmlAttributes, withPojo: withPojoLambda): void;
|
|
5
|
-
export declare class Xml2JsonPojo extends Xml2Json {
|
|
6
|
-
constructor();
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const xml2json_1 = require("./xml2json");
|
|
4
|
-
const node_opcua_utils_1 = require("node-opcua-utils");
|
|
5
|
-
class ReaderState2 extends xml2json_1.ReaderStateBase {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.initLevel = 0;
|
|
9
|
-
this._pojo = {};
|
|
10
|
-
this._stack = [];
|
|
11
|
-
this._element = {};
|
|
12
|
-
this.text = "";
|
|
13
|
-
this.parent = undefined;
|
|
14
|
-
this._withPojo = (pojo) => {
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
_on_init(elementName, attrs, parent, level, engine) {
|
|
18
|
-
this.parent = parent;
|
|
19
|
-
this.engine = engine;
|
|
20
|
-
this.initLevel = level;
|
|
21
|
-
if (this._stack.length === 0) {
|
|
22
|
-
this._pojo = {};
|
|
23
|
-
this._element = this._pojo;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
_on_finish() {
|
|
27
|
-
/* empy */
|
|
28
|
-
}
|
|
29
|
-
_on_startElement(level, elementName, attrs) {
|
|
30
|
-
this._stack.push(this._element);
|
|
31
|
-
if (elementName.match(/^ListOf/)) {
|
|
32
|
-
elementName = elementName.substring(6);
|
|
33
|
-
const elName = node_opcua_utils_1.lowerFirstLetter(elementName);
|
|
34
|
-
if (this._element instanceof Array) {
|
|
35
|
-
const array = [];
|
|
36
|
-
this._element.push(array);
|
|
37
|
-
this._element = array;
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this._element[elName] = [];
|
|
41
|
-
this._element = this._element[elName];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const elName = node_opcua_utils_1.lowerFirstLetter(elementName);
|
|
46
|
-
if (this._element instanceof Array) {
|
|
47
|
-
const obj = {};
|
|
48
|
-
this._element.push(obj);
|
|
49
|
-
this._element = obj;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this._element[elName] = {};
|
|
53
|
-
this._element = this._element[elName];
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
_on_endElement2(level, elementName) {
|
|
58
|
-
/* empty */
|
|
59
|
-
}
|
|
60
|
-
_on_endElement(level, elementName) {
|
|
61
|
-
this._element = this._stack.pop();
|
|
62
|
-
if (this.text.length > 0 && this._element) {
|
|
63
|
-
const elName = node_opcua_utils_1.lowerFirstLetter(elementName);
|
|
64
|
-
this._element[elName] = this.text;
|
|
65
|
-
// this.engine!._pojo = this._pojo;
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
const elName = node_opcua_utils_1.lowerFirstLetter(elementName);
|
|
69
|
-
if (this.initLevel === level) {
|
|
70
|
-
if (this._withPojo) {
|
|
71
|
-
if (this.text.length) {
|
|
72
|
-
this._withPojo.call(null, elName, this.text);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
this._withPojo.call(null, elName, this._pojo);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
this.text = "";
|
|
81
|
-
}
|
|
82
|
-
_on_text(text) {
|
|
83
|
-
this.text = text;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const json_extractor = new ReaderState2();
|
|
87
|
-
exports.json_parser = {
|
|
88
|
-
init(elementName, attrs, parent, engine) {
|
|
89
|
-
json_extractor._on_init(elementName, attrs, parent, 0, engine);
|
|
90
|
-
},
|
|
91
|
-
finish() {
|
|
92
|
-
this.parent._pojo = json_extractor._pojo;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
function startPojo(pThis, elementName, attrs, withPojo) {
|
|
96
|
-
pThis.engine._promote(json_extractor, pThis.engine.currentLevel, elementName, attrs);
|
|
97
|
-
json_extractor._withPojo = (name, pojo) => {
|
|
98
|
-
withPojo(name, pojo);
|
|
99
|
-
pThis.engine._demote(json_extractor, pThis.engine.currentLevel, elementName);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
exports.startPojo = startPojo;
|
|
103
|
-
class Xml2JsonPojo extends xml2json_1.Xml2Json {
|
|
104
|
-
constructor() {
|
|
105
|
-
super(json_extractor);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.Xml2JsonPojo = Xml2JsonPojo;
|
|
109
|
-
//# sourceMappingURL=x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