node-opcua-modeler 2.71.0 → 2.72.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/addExtensionObjectDataType.d.ts +21 -21
- package/dist/addExtensionObjectDataType.js +130 -130
- package/dist/build_model_inner.d.ts +17 -17
- package/dist/build_model_inner.js +40 -40
- package/dist/displayNodeElement.d.ts +6 -6
- package/dist/displayNodeElement.js +215 -215
- package/dist/generate_markdown_doc.d.ts +41 -41
- package/dist/generate_markdown_doc.js +314 -314
- package/dist/index.d.ts +24 -24
- package/dist/index.js +52 -52
- package/dist/promoteToMandatory.d.ts +8 -8
- package/dist/promoteToMandatory.js +89 -89
- package/dist/setNamespaceMetaData.d.ts +1 -1
- package/dist/setNamespaceMetaData.js +5 -5
- package/dist/symbol.d.ts +1 -1
- package/dist/symbol.js +2 -2
- package/dist/tableHelper.d.ts +9 -9
- package/dist/tableHelper.js +60 -60
- package/dist/to_cvs.d.ts +2 -2
- package/dist/to_cvs.js +11 -11
- package/dist/types.d.ts +1 -1
- package/dist/types.js +2 -2
- package/distNodeJS/build_documentation_to_file.d.ts +3 -3
- package/distNodeJS/build_documentation_to_file.js +26 -26
- package/distNodeJS/build_model.d.ts +7 -7
- package/distNodeJS/build_model.js +21 -21
- package/distNodeJS/index.d.ts +5 -5
- package/distNodeJS/index.js +23 -23
- package/distNodeJS/symbol_cvs.d.ts +3 -3
- package/distNodeJS/symbol_cvs.js +63 -63
- package/package.json +7 -7
|
@@ -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
|
package/distNodeJS/index.d.ts
CHANGED
|
@@ -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";
|
package/distNodeJS/index.js
CHANGED
|
@@ -1,24 +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
|
-
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; } });
|
|
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; } });
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -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>;
|
package/distNodeJS/symbol_cvs.js
CHANGED
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-modeler",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.72.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module - model",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"chalk": "4.1.2",
|
|
16
16
|
"cli-table3": "^0.6.2",
|
|
17
17
|
"csv-parse": "5.2.0",
|
|
18
|
-
"node-opcua-address-space": "2.
|
|
18
|
+
"node-opcua-address-space": "2.72.0",
|
|
19
19
|
"node-opcua-assert": "2.66.0",
|
|
20
20
|
"node-opcua-basic-types": "2.71.0",
|
|
21
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
21
|
+
"node-opcua-client-dynamic-extension-object": "2.72.0",
|
|
22
22
|
"node-opcua-constants": "2.70.0",
|
|
23
23
|
"node-opcua-data-model": "2.71.0",
|
|
24
24
|
"node-opcua-debug": "2.71.0",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"node-opcua-nodeid": "2.71.0",
|
|
27
27
|
"node-opcua-nodesets": "2.71.0",
|
|
28
28
|
"node-opcua-numeric-range": "2.71.0",
|
|
29
|
-
"node-opcua-schemas": "2.
|
|
30
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
29
|
+
"node-opcua-schemas": "2.72.0",
|
|
30
|
+
"node-opcua-service-translate-browse-path": "2.72.0",
|
|
31
31
|
"node-opcua-status-code": "2.71.0",
|
|
32
|
-
"node-opcua-types": "2.
|
|
32
|
+
"node-opcua-types": "2.72.0",
|
|
33
33
|
"node-opcua-variant": "2.71.0",
|
|
34
34
|
"node-opcua-xml2json": "2.71.0"
|
|
35
35
|
},
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"internet of things"
|
|
51
51
|
],
|
|
52
52
|
"homepage": "http://node-opcua.github.io/",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "3c5f00e20bf5bef91a1ca3663af149b903760e5c"
|
|
54
54
|
}
|