node-opcua-modeler 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.
Files changed (55) hide show
  1. package/dist/addExtensionObjectDataType.d.ts +21 -21
  2. package/dist/addExtensionObjectDataType.js +130 -130
  3. package/dist/build_model_inner.d.ts +17 -17
  4. package/dist/build_model_inner.js +40 -40
  5. package/dist/build_model_inner.js.map +1 -1
  6. package/dist/displayNodeElement.d.ts +5 -5
  7. package/dist/displayNodeElement.js +192 -191
  8. package/dist/displayNodeElement.js.map +1 -1
  9. package/dist/dump_state_machine_to_graphviz.d.ts +6 -6
  10. package/dist/dump_state_machine_to_graphviz.js +119 -119
  11. package/dist/generate_markdown_doc.d.ts +41 -6
  12. package/dist/generate_markdown_doc.js +314 -266
  13. package/dist/generate_markdown_doc.js.map +1 -1
  14. package/dist/index.d.ts +24 -24
  15. package/dist/index.js +52 -48
  16. package/dist/index.js.map +1 -1
  17. package/dist/promoteToMandatory.d.ts +8 -8
  18. package/dist/promoteToMandatory.js +97 -97
  19. package/dist/setNamespaceMetaData.d.ts +1 -1
  20. package/dist/setNamespaceMetaData.js +5 -5
  21. package/dist/symbol.d.ts +1 -1
  22. package/dist/symbol.js +2 -2
  23. package/dist/tableHelper.d.ts +9 -9
  24. package/dist/tableHelper.js +60 -60
  25. package/dist/to_cvs.d.ts +2 -2
  26. package/dist/to_cvs.js +11 -11
  27. package/dist/to_graphivz.d.ts +14 -14
  28. package/dist/to_graphivz.js +294 -294
  29. package/dist/types.d.ts +1 -1
  30. package/dist/types.js +2 -2
  31. package/distNodeJS/build_documentation_to_file.d.ts +3 -2
  32. package/distNodeJS/build_documentation_to_file.js +26 -26
  33. package/distNodeJS/build_documentation_to_file.js.map +1 -1
  34. package/distNodeJS/build_model.d.ts +7 -7
  35. package/distNodeJS/build_model.js +21 -21
  36. package/distNodeJS/index.d.ts +5 -5
  37. package/distNodeJS/index.js +23 -19
  38. package/distNodeJS/index.js.map +1 -1
  39. package/distNodeJS/symbol_cvs.d.ts +3 -3
  40. package/distNodeJS/symbol_cvs.js +63 -63
  41. package/package.json +20 -20
  42. package/source/build_model_inner.ts +3 -5
  43. package/source/displayNodeElement.ts +3 -3
  44. package/source/generate_markdown_doc.ts +88 -33
  45. package/source/index.ts +2 -1
  46. package/source_nodejs/build_documentation_to_file.ts +3 -3
  47. package/MyModel.NodeSet2.xml +0 -125
  48. package/dist/buildModel.d.ts +0 -16
  49. package/dist/buildModel.js +0 -91
  50. package/dist/buildModel.js.map +0 -1
  51. package/dist/display.d.ts +0 -2
  52. package/dist/display.js +0 -96
  53. package/dist/display.js.map +0 -1
  54. package/source/dump_state_machine_to_graphviz.ts +0 -164
  55. package/source/to_graphivz.ts +0 -351
@@ -1,2 +1,3 @@
1
- import { Namespace } from "node-opcua-address-space";
2
- export declare function buildDocumentationToFile(namespace: Namespace, filename: string): Promise<void>;
1
+ import { Namespace } from "node-opcua-address-space";
2
+ import { BuildDocumentationOptions } from "..";
3
+ export declare function buildDocumentationToFile(namespace: Namespace, filename: string, options?: BuildDocumentationOptions): Promise<void>;
@@ -1,27 +1,27 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.buildDocumentationToFile = void 0;
13
- const fs = require("fs");
14
- const __1 = require("..");
15
- function buildDocumentationToFile(namespace, filename) {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- const str = yield (0, __1.buildDocumentationToString)(namespace);
18
- const stream = fs.createWriteStream("documentation.md");
19
- stream.write(str);
20
- yield new Promise((resolve) => {
21
- stream.on("finish", resolve);
22
- stream.end();
23
- });
24
- });
25
- }
26
- exports.buildDocumentationToFile = buildDocumentationToFile;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.buildDocumentationToFile = void 0;
13
+ const fs = require("fs");
14
+ const __1 = require("..");
15
+ function buildDocumentationToFile(namespace, filename, options) {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ const str = yield (0, __1.buildDocumentationToString)(namespace, options);
18
+ const stream = fs.createWriteStream("documentation.md");
19
+ stream.write(str);
20
+ yield new Promise((resolve) => {
21
+ stream.on("finish", resolve);
22
+ stream.end();
23
+ });
24
+ });
25
+ }
26
+ exports.buildDocumentationToFile = buildDocumentationToFile;
27
27
  //# sourceMappingURL=build_documentation_to_file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"build_documentation_to_file.js","sourceRoot":"","sources":["../source_nodejs/build_documentation_to_file.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAyB;AAEzB,0BAAgD;AAEhD,SAAsB,wBAAwB,CAAC,SAAoB,EAAE,QAAgB;;QACjF,MAAM,GAAG,GAAG,MAAM,IAAA,8BAA0B,EAAC,SAAS,CAAC,CAAC;QACxD,MAAM,MAAM,GAAG,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;QACxD,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClB,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC1B,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YAC7B,MAAM,CAAC,GAAG,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACP,CAAC;CAAA;AARD,4DAQC"}
1
+ {"version":3,"file":"build_documentation_to_file.js","sourceRoot":"","sources":["../source_nodejs/build_documentation_to_file.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAyB;AAEzB,0BAA2E;AAE3E,SAAsB,wBAAwB,CAAC,SAAoB,EAAE,QAAgB,EAAE,OAAmC;;QACtH,MAAM,GAAG,GAAG,MAAM,IAAA,8BAA0B,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;QACxD,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClB,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC1B,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YAC7B,MAAM,CAAC,GAAG,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACP,CAAC;CAAA;AARD,4DAQC"}
@@ -1,7 +1,7 @@
1
- import { BuildModelOptionsBase } from "..";
2
- import { Symbols } from "..";
3
- export declare function buildModel(data: BuildModelOptionsBase): Promise<{
4
- markdown: string;
5
- xmlModel: string;
6
- symbols: Symbols;
7
- }>;
1
+ import { BuildModelOptionsBase } from "..";
2
+ import { Symbols } from "..";
3
+ export declare function buildModel(data: BuildModelOptionsBase): Promise<{
4
+ markdown: string;
5
+ xmlModel: string;
6
+ symbols: Symbols;
7
+ }>;
@@ -1,22 +1,22 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.buildModel = void 0;
13
- const nodeJS_1 = require("node-opcua-address-space/nodeJS");
14
- const __1 = require("..");
15
- function buildModel(data) {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- const option1 = Object.assign(Object.assign({}, data), { xmlLoader: nodeJS_1.readNodeSet2XmlFile });
18
- return (0, __1.buildModelInner)(option1);
19
- });
20
- }
21
- exports.buildModel = buildModel;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.buildModel = void 0;
13
+ const nodeJS_1 = require("node-opcua-address-space/nodeJS");
14
+ const __1 = require("..");
15
+ function buildModel(data) {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ const option1 = Object.assign(Object.assign({}, data), { xmlLoader: nodeJS_1.readNodeSet2XmlFile });
18
+ return (0, __1.buildModelInner)(option1);
19
+ });
20
+ }
21
+ exports.buildModel = buildModel;
22
22
  //# sourceMappingURL=build_model.js.map
@@ -1,5 +1,5 @@
1
- export * from "./symbol_cvs";
2
- export * from "./build_model";
3
- export * from "./build_documentation_to_file";
4
- export * from "..";
5
- export { generateAddressSpace } from "node-opcua-address-space/nodeJS";
1
+ export * from "./symbol_cvs";
2
+ export * from "./build_model";
3
+ export * from "./build_documentation_to_file";
4
+ export * from "..";
5
+ export { generateAddressSpace } from "node-opcua-address-space/nodeJS";
@@ -1,20 +1,24 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.generateAddressSpace = void 0;
14
- __exportStar(require("./symbol_cvs"), exports);
15
- __exportStar(require("./build_model"), exports);
16
- __exportStar(require("./build_documentation_to_file"), exports);
17
- __exportStar(require(".."), exports);
18
- var nodeJS_1 = require("node-opcua-address-space/nodeJS");
19
- Object.defineProperty(exports, "generateAddressSpace", { enumerable: true, get: function () { return nodeJS_1.generateAddressSpace; } });
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.generateAddressSpace = void 0;
18
+ __exportStar(require("./symbol_cvs"), exports);
19
+ __exportStar(require("./build_model"), exports);
20
+ __exportStar(require("./build_documentation_to_file"), exports);
21
+ __exportStar(require(".."), exports);
22
+ var nodeJS_1 = require("node-opcua-address-space/nodeJS");
23
+ Object.defineProperty(exports, "generateAddressSpace", { enumerable: true, get: function () { return nodeJS_1.generateAddressSpace; } });
20
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../source_nodejs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B;AAC9B,gEAA8C;AAC9C,qCAAmB;AACnB,0DAAsE;AAA7D,8GAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../source_nodejs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B;AAC9B,gEAA8C;AAC9C,qCAAmB;AACnB,0DAAsE;AAA7D,8GAAA,oBAAoB,OAAA"}
@@ -1,3 +1,3 @@
1
- import { Symbols } from "..";
2
- export declare function saveSymbolsToCSV(csvFilename: string, symbols: Symbols): Promise<void>;
3
- export declare function getPresetSymbolsFromCSV(csvFilename: string): Promise<Symbols>;
1
+ import { Symbols } from "..";
2
+ export declare function saveSymbolsToCSV(csvFilename: string, symbols: Symbols): Promise<void>;
3
+ export declare function getPresetSymbolsFromCSV(csvFilename: string): Promise<Symbols>;
@@ -1,64 +1,64 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getPresetSymbolsFromCSV = exports.saveSymbolsToCSV = void 0;
13
- const fs = require("fs");
14
- const csv_parse_1 = require("csv-parse");
15
- const __1 = require("..");
16
- // node 14 onward : import { readFile, writeFile } from "fs/promises";
17
- const { readFile, writeFile } = fs.promises;
18
- function saveSymbolsToCSV(csvFilename, symbols) {
19
- return __awaiter(this, void 0, void 0, function* () {
20
- yield writeFile(csvFilename, (0, __1.toCSV)(symbols), "utf-8");
21
- });
22
- }
23
- exports.saveSymbolsToCSV = saveSymbolsToCSV;
24
- function getPresetSymbolsFromCSV(csvFilename) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- if (!fs.existsSync(csvFilename)) {
27
- return [];
28
- }
29
- try {
30
- const data = yield readFile(csvFilename, "utf-8");
31
- const records = yield new Promise((resolve) => {
32
- const output = [];
33
- (0, csv_parse_1.parse)(data, {
34
- cast: (value, context) => {
35
- if (context.index === 1) {
36
- return parseInt(value, 10);
37
- }
38
- return value;
39
- }
40
- })
41
- .on("readable", function () {
42
- let record = this.read();
43
- while (record) {
44
- output.push(record);
45
- record = this.read();
46
- }
47
- })
48
- .on("end", () => {
49
- resolve(output);
50
- });
51
- });
52
- return records;
53
- }
54
- catch (err) {
55
- if (err instanceof Error) {
56
- // tslint:disable-next-line: no-console
57
- console.log("getPresetSymbols err = ", err.message);
58
- }
59
- return [];
60
- }
61
- });
62
- }
63
- exports.getPresetSymbolsFromCSV = getPresetSymbolsFromCSV;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getPresetSymbolsFromCSV = exports.saveSymbolsToCSV = void 0;
13
+ const fs = require("fs");
14
+ const csv_parse_1 = require("csv-parse");
15
+ const __1 = require("..");
16
+ // node 14 onward : import { readFile, writeFile } from "fs/promises";
17
+ const { readFile, writeFile } = fs.promises;
18
+ function saveSymbolsToCSV(csvFilename, symbols) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ yield writeFile(csvFilename, (0, __1.toCSV)(symbols), "utf-8");
21
+ });
22
+ }
23
+ exports.saveSymbolsToCSV = saveSymbolsToCSV;
24
+ function getPresetSymbolsFromCSV(csvFilename) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ if (!fs.existsSync(csvFilename)) {
27
+ return [];
28
+ }
29
+ try {
30
+ const data = yield readFile(csvFilename, "utf-8");
31
+ const records = yield new Promise((resolve) => {
32
+ const output = [];
33
+ (0, csv_parse_1.parse)(data, {
34
+ cast: (value, context) => {
35
+ if (context.index === 1) {
36
+ return parseInt(value, 10);
37
+ }
38
+ return value;
39
+ }
40
+ })
41
+ .on("readable", function () {
42
+ let record = this.read();
43
+ while (record) {
44
+ output.push(record);
45
+ record = this.read();
46
+ }
47
+ })
48
+ .on("end", () => {
49
+ resolve(output);
50
+ });
51
+ });
52
+ return records;
53
+ }
54
+ catch (err) {
55
+ if (err instanceof Error) {
56
+ // tslint:disable-next-line: no-console
57
+ console.log("getPresetSymbols err = ", err.message);
58
+ }
59
+ return [];
60
+ }
61
+ });
62
+ }
63
+ exports.getPresetSymbolsFromCSV = getPresetSymbolsFromCSV;
64
64
  //# sourceMappingURL=symbol_cvs.js.map
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "node-opcua-modeler",
3
- "version": "2.64.1",
3
+ "version": "2.66.0",
4
4
  "description": "pure nodejs OPCUA SDK - module - model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc -b",
9
- "clean": "node -e \"require('rimraf').sync('dist');\"",
9
+ "clean": "npx rimraf dist *.tsbuildinfo",
10
10
  "test": "mocha"
11
11
  },
12
12
  "author": "Etienne Rossignon",
@@ -15,25 +15,25 @@
15
15
  "chalk": "4.1.2",
16
16
  "cli-table3": "^0.6.1",
17
17
  "csv-parse": "5.0.4",
18
- "node-opcua-address-space": "2.64.1",
19
- "node-opcua-assert": "2.64.1",
20
- "node-opcua-basic-types": "2.64.1",
21
- "node-opcua-client-dynamic-extension-object": "2.64.1",
22
- "node-opcua-constants": "2.64.1",
23
- "node-opcua-data-model": "2.64.1",
24
- "node-opcua-factory": "2.64.1",
25
- "node-opcua-nodeid": "2.64.1",
26
- "node-opcua-nodesets": "2.64.1",
27
- "node-opcua-numeric-range": "2.64.1",
28
- "node-opcua-schemas": "2.64.1",
29
- "node-opcua-service-translate-browse-path": "2.64.1",
30
- "node-opcua-status-code": "2.64.1",
31
- "node-opcua-types": "2.64.1",
32
- "node-opcua-variant": "2.64.1",
33
- "node-opcua-xml2json": "2.64.1"
18
+ "node-opcua-address-space": "2.66.0",
19
+ "node-opcua-assert": "2.66.0",
20
+ "node-opcua-basic-types": "2.66.0",
21
+ "node-opcua-client-dynamic-extension-object": "2.66.0",
22
+ "node-opcua-constants": "2.66.0",
23
+ "node-opcua-data-model": "2.66.0",
24
+ "node-opcua-factory": "2.66.0",
25
+ "node-opcua-nodeid": "2.66.0",
26
+ "node-opcua-nodesets": "2.66.0",
27
+ "node-opcua-numeric-range": "2.66.0",
28
+ "node-opcua-schemas": "2.66.0",
29
+ "node-opcua-service-translate-browse-path": "2.66.0",
30
+ "node-opcua-status-code": "2.66.0",
31
+ "node-opcua-types": "2.66.0",
32
+ "node-opcua-variant": "2.66.0",
33
+ "node-opcua-xml2json": "2.66.0"
34
34
  },
35
35
  "devDependencies": {
36
- "node-opcua-leak-detector": "2.64.1",
36
+ "node-opcua-leak-detector": "2.66.0",
37
37
  "should": "^13.2.3"
38
38
  },
39
39
  "repository": {
@@ -49,5 +49,5 @@
49
49
  "internet of things"
50
50
  ],
51
51
  "homepage": "http://node-opcua.github.io/",
52
- "gitHead": "b65b8738603cd475d7d99a2b20b0ae9d32b4110c"
52
+ "gitHead": "97f47e2e242a1fd737495fd64cb65e8fb7a9964b"
53
53
  }
@@ -1,6 +1,4 @@
1
- import {
2
- AddressSpace,
3
- Namespace, NodeIdManager, XmlLoaderFunc, generateAddressSpaceRaw } from "node-opcua-address-space";
1
+ import { AddressSpace, NodeIdManager, XmlLoaderAsyncFunc, generateAddressSpaceRaw } from "node-opcua-address-space";
4
2
  import { buildDocumentationToString } from "./generate_markdown_doc";
5
3
  import { Symbols } from "./symbol";
6
4
 
@@ -12,7 +10,7 @@ export interface BuildModelOptionsBase {
12
10
  presetSymbols?: Symbols;
13
11
  }
14
12
  export interface BuildModelOptions extends BuildModelOptionsBase {
15
- xmlLoader: XmlLoaderFunc;
13
+ xmlLoader: XmlLoaderAsyncFunc;
16
14
  }
17
15
 
18
16
  export async function buildModelInner(data: BuildModelOptions): Promise<{ markdown: string; xmlModel: string; symbols: Symbols }> {
@@ -33,7 +31,7 @@ export async function buildModelInner(data: BuildModelOptions): Promise<{ markdo
33
31
 
34
32
  const xmlModel = ns.toNodeset2XML();
35
33
  const symbols = nodeIdManager.getSymbols();
36
- const doc = await buildDocumentationToString(ns);
34
+ const doc = await buildDocumentationToString(ns, {});
37
35
  addressSpace.dispose();
38
36
 
39
37
  return { xmlModel, symbols, markdown: doc };
@@ -147,7 +147,9 @@ function dumpReferences(data: Data, _references: UAReference[]) {
147
147
  dumpReference(data, ref, "Organizes");
148
148
  }
149
149
  for (const ref of _references) {
150
- console.log(data.node!.addressSpace!.findReferenceType(ref.referenceType)!.toString());
150
+ dumpReference(data, ref, "HasInterface");
151
+ }
152
+ for (const ref of _references) {
151
153
  dumpReference(data, ref, undefined);
152
154
  }
153
155
  }
@@ -181,8 +183,6 @@ export function displayNodeElement(node: BaseNode, options?: DisplayNodeOptions)
181
183
 
182
184
  const references = node.allReferences();
183
185
 
184
- const m = {};
185
-
186
186
  const data = { table, node, alreadyDumped, descriptions };
187
187
  dumpReferences(data, references);
188
188