node-opcua-xml2json 2.70.0 → 2.71.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.
@@ -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.70.0",
3
+ "version": "2.71.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",
@@ -15,14 +15,14 @@
15
15
  "bomstrip": "^0.1.4",
16
16
  "ltx": "^3.0.0",
17
17
  "node-opcua-assert": "2.66.0",
18
- "node-opcua-debug": "2.69.0",
19
- "node-opcua-utils": "2.69.0",
18
+ "node-opcua-debug": "2.71.0",
19
+ "node-opcua-utils": "2.71.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.70.0",
25
+ "node-opcua-nodesets": "2.71.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": "3b692ffb3e2ef0542da32f349fb0c76b3acc75ce"
41
+ "gitHead": "10f7cc1e1cd30dfef75adad9cb709a78401fabf3"
42
42
  }