node-opcua-modeler 2.117.0 → 2.118.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/distNodeJS/build_documentation_to_file.js +4 -24
- package/distNodeJS/build_documentation_to_file.js.map +1 -1
- package/distNodeJS/symbol_cvs.js +5 -25
- package/distNodeJS/symbol_cvs.js.map +1 -1
- package/package.json +17 -17
- package/readme.md +1 -1
- package/source_nodejs/build_documentation_to_file.ts +1 -1
- package/source_nodejs/symbol_cvs.ts +1 -1
|
@@ -1,34 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
6
|
exports.buildDocumentationToFile = void 0;
|
|
27
|
-
const
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
28
8
|
const __1 = require("..");
|
|
29
9
|
async function buildDocumentationToFile(namespace, filename, options) {
|
|
30
10
|
const str = await (0, __1.buildDocumentationToString)(namespace, options);
|
|
31
|
-
const stream =
|
|
11
|
+
const stream = fs_1.default.createWriteStream("documentation.md");
|
|
32
12
|
stream.write(str);
|
|
33
13
|
await new Promise((resolve) => {
|
|
34
14
|
stream.on("finish", resolve);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build_documentation_to_file.js","sourceRoot":"","sources":["../source_nodejs/build_documentation_to_file.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build_documentation_to_file.js","sourceRoot":"","sources":["../source_nodejs/build_documentation_to_file.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AAEpB,0BAA2E;AAEpE,KAAK,UAAU,wBAAwB,CAAC,SAAoB,EAAE,QAAgB,EAAE,OAAmC;IACtH,MAAM,GAAG,GAAG,MAAM,IAAA,8BAA0B,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,YAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IACxD,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC1B,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC7B,MAAM,CAAC,GAAG,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC;AARD,4DAQC"}
|
package/distNodeJS/symbol_cvs.js
CHANGED
|
@@ -1,41 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
6
|
exports.getPresetSymbolsFromCSV = exports.saveSymbolsToCSV = void 0;
|
|
27
|
-
const
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
28
8
|
const util_1 = require("util");
|
|
29
9
|
const csv_parse_1 = require("csv-parse");
|
|
30
10
|
const __1 = require("..");
|
|
31
11
|
// node 14 onward : import { readFile, writeFile } from "fs/promises";
|
|
32
|
-
const { readFile, writeFile } =
|
|
12
|
+
const { readFile, writeFile } = fs_1.default.promises;
|
|
33
13
|
async function saveSymbolsToCSV(csvFilename, symbols) {
|
|
34
14
|
await writeFile(csvFilename, (0, __1.toCSV)(symbols), "utf-8");
|
|
35
15
|
}
|
|
36
16
|
exports.saveSymbolsToCSV = saveSymbolsToCSV;
|
|
37
17
|
async function getPresetSymbolsFromCSV(csvFilename) {
|
|
38
|
-
if (!
|
|
18
|
+
if (!fs_1.default.existsSync(csvFilename)) {
|
|
39
19
|
return [];
|
|
40
20
|
}
|
|
41
21
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbol_cvs.js","sourceRoot":"","sources":["../source_nodejs/symbol_cvs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"symbol_cvs.js","sourceRoot":"","sources":["../source_nodejs/symbol_cvs.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,+BAA6B;AAC7B,yCAA0C;AAG1C,0BAA2B;AAE3B,sEAAsE;AACtE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,YAAE,CAAC,QAAQ,CAAC;AAErC,KAAK,UAAU,gBAAgB,CAAC,WAAmB,EAAE,OAAgB;IACxE,MAAM,SAAS,CAAC,WAAW,EAAE,IAAA,SAAK,EAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC;AAFD,4CAEC;AAEM,KAAK,UAAU,uBAAuB,CAAC,WAAmB;IAC7D,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;QAC7B,OAAO,EAAE,CAAC;KACb;IACD,IAAI;QACA,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAElD,MAAM,OAAO,GAAG,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC1C,MAAM,MAAM,GAAU,EAAE,CAAC;YACzB,IAAA,iBAAK,EAAC,IAAI,EAAE;gBACR,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;oBACrB,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,EAAE;wBACrB,OAAO,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;qBAC9B;oBACD,OAAO,KAAK,CAAC;gBACjB,CAAC;aACJ,CAAC;iBACG,EAAE,CAAC,UAAU,EAAE;gBACZ,IAAI,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;gBACzB,OAAO,MAAM,EAAE;oBACX,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBACpB,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;iBACxB;YACL,CAAC,CAAC;iBACD,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBACZ,OAAO,CAAC,MAAM,CAAC,CAAC;YACpB,CAAC,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;QACH,OAAO,OAAkB,CAAC;KAC7B;IAAC,OAAO,GAAG,EAAE;QACV,IAAI,YAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE;YAC1B,uCAAuC;YACvC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;SACvD;QACD,OAAO,EAAE,CAAC;KACb;AACL,CAAC;AApCD,0DAoCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-modeler",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.118.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module modeler",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,27 +14,27 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"cli-table3": "^0.6.3",
|
|
16
16
|
"csv-parse": "5.5.2",
|
|
17
|
-
"node-opcua-address-space": "2.
|
|
18
|
-
"node-opcua-address-space-base": "2.
|
|
17
|
+
"node-opcua-address-space": "2.118.0",
|
|
18
|
+
"node-opcua-address-space-base": "2.118.0",
|
|
19
19
|
"node-opcua-assert": "2.105.0",
|
|
20
|
-
"node-opcua-basic-types": "2.
|
|
21
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
20
|
+
"node-opcua-basic-types": "2.118.0",
|
|
21
|
+
"node-opcua-client-dynamic-extension-object": "2.118.0",
|
|
22
22
|
"node-opcua-constants": "2.114.0",
|
|
23
|
-
"node-opcua-data-model": "2.
|
|
24
|
-
"node-opcua-debug": "2.
|
|
25
|
-
"node-opcua-factory": "2.
|
|
26
|
-
"node-opcua-nodeid": "2.
|
|
27
|
-
"node-opcua-nodesets": "2.
|
|
28
|
-
"node-opcua-numeric-range": "2.
|
|
29
|
-
"node-opcua-schemas": "2.
|
|
30
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
23
|
+
"node-opcua-data-model": "2.118.0",
|
|
24
|
+
"node-opcua-debug": "2.118.0",
|
|
25
|
+
"node-opcua-factory": "2.118.0",
|
|
26
|
+
"node-opcua-nodeid": "2.118.0",
|
|
27
|
+
"node-opcua-nodesets": "2.118.0",
|
|
28
|
+
"node-opcua-numeric-range": "2.118.0",
|
|
29
|
+
"node-opcua-schemas": "2.118.0",
|
|
30
|
+
"node-opcua-service-translate-browse-path": "2.118.0",
|
|
31
31
|
"node-opcua-status-code": "2.117.0",
|
|
32
|
-
"node-opcua-types": "2.
|
|
33
|
-
"node-opcua-variant": "2.
|
|
32
|
+
"node-opcua-types": "2.118.0",
|
|
33
|
+
"node-opcua-variant": "2.118.0",
|
|
34
34
|
"yargs": "15.4.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"node-opcua-leak-detector": "2.
|
|
37
|
+
"node-opcua-leak-detector": "2.118.0",
|
|
38
38
|
"should": "^13.2.3",
|
|
39
39
|
"sinon": "^17.0.1"
|
|
40
40
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"internet of things"
|
|
52
52
|
],
|
|
53
53
|
"homepage": "http://node-opcua.github.io/",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "6210aaa97b43554e3982113041963b2720e50a95",
|
|
55
55
|
"files": [
|
|
56
56
|
"dist",
|
|
57
57
|
"distNodeJS",
|
package/readme.md
CHANGED