node-opcua-generator 2.64.1 → 2.67.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/factory_code_generator.d.ts +9 -9
- package/dist/factory_code_generator.js +807 -807
- package/dist/generate_extension_object_code.d.ts +1 -1
- package/dist/generate_extension_object_code.js +240 -240
- package/dist/generator.d.ts +8 -8
- package/dist/generator.js +171 -171
- package/dist/index.d.ts +5 -5
- package/dist/index.js +13 -13
- package/dist/opcua_code_generator.d.ts +1 -1
- package/dist/opcua_code_generator.js +25 -25
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +18 -14
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/line_file.d.ts +6 -6
- package/dist/utils/line_file.js +25 -25
- package/dist/utils/normalize_require_file.d.ts +10 -10
- package/dist/utils/normalize_require_file.js +25 -25
- package/dist/utils/normalize_require_file.js.map +1 -1
- package/dist/utils/write_func.d.ts +7 -7
- package/dist/utils/write_func.js +14 -14
- package/package.json +26 -26
- package/source/utils/normalize_require_file.ts +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LineFile1 } from "./line_file";
|
|
2
|
-
export interface WriteFunc {
|
|
3
|
-
(...args: string[]): void;
|
|
4
|
-
indent(): void;
|
|
5
|
-
pop(): void;
|
|
6
|
-
}
|
|
7
|
-
export declare const makeWrite: (f: LineFile1) => WriteFunc;
|
|
1
|
+
import { LineFile1 } from "./line_file";
|
|
2
|
+
export interface WriteFunc {
|
|
3
|
+
(...args: string[]): void;
|
|
4
|
+
indent(): void;
|
|
5
|
+
pop(): void;
|
|
6
|
+
}
|
|
7
|
+
export declare const makeWrite: (f: LineFile1) => WriteFunc;
|
package/dist/utils/write_func.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeWrite = void 0;
|
|
4
|
-
const makeWrite = (f) => {
|
|
5
|
-
const _f = (...args) => f.write(...args);
|
|
6
|
-
_f.indent = () => {
|
|
7
|
-
/** */
|
|
8
|
-
};
|
|
9
|
-
_f.pop = () => {
|
|
10
|
-
/** */
|
|
11
|
-
};
|
|
12
|
-
return _f;
|
|
13
|
-
};
|
|
14
|
-
exports.makeWrite = makeWrite;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeWrite = void 0;
|
|
4
|
+
const makeWrite = (f) => {
|
|
5
|
+
const _f = (...args) => f.write(...args);
|
|
6
|
+
_f.indent = () => {
|
|
7
|
+
/** */
|
|
8
|
+
};
|
|
9
|
+
_f.pop = () => {
|
|
10
|
+
/** */
|
|
11
|
+
};
|
|
12
|
+
return _f;
|
|
13
|
+
};
|
|
14
|
+
exports.makeWrite = makeWrite;
|
|
15
15
|
//# sourceMappingURL=write_func.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-generator",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.67.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -generator",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -8,38 +8,38 @@
|
|
|
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
|
"chalk": "4.1.2",
|
|
16
|
-
"node-opcua-assert": "2.
|
|
17
|
-
"node-opcua-basic-types": "2.
|
|
18
|
-
"node-opcua-buffer-utils": "2.
|
|
19
|
-
"node-opcua-constants": "2.
|
|
20
|
-
"node-opcua-data-model": "2.
|
|
21
|
-
"node-opcua-data-value": "2.
|
|
22
|
-
"node-opcua-date-time": "2.
|
|
23
|
-
"node-opcua-debug": "2.
|
|
24
|
-
"node-opcua-enum": "2.
|
|
25
|
-
"node-opcua-factory": "2.
|
|
26
|
-
"node-opcua-guid": "2.
|
|
27
|
-
"node-opcua-nodeid": "2.
|
|
28
|
-
"node-opcua-numeric-range": "2.
|
|
29
|
-
"node-opcua-schemas": "2.
|
|
30
|
-
"node-opcua-status-code": "2.
|
|
31
|
-
"node-opcua-utils": "2.
|
|
32
|
-
"node-opcua-variant": "2.
|
|
33
|
-
"node-opcua-xml2json": "2.
|
|
16
|
+
"node-opcua-assert": "2.66.0",
|
|
17
|
+
"node-opcua-basic-types": "2.67.0",
|
|
18
|
+
"node-opcua-buffer-utils": "2.67.0",
|
|
19
|
+
"node-opcua-constants": "2.67.0",
|
|
20
|
+
"node-opcua-data-model": "2.67.0",
|
|
21
|
+
"node-opcua-data-value": "2.67.0",
|
|
22
|
+
"node-opcua-date-time": "2.67.0",
|
|
23
|
+
"node-opcua-debug": "2.67.0",
|
|
24
|
+
"node-opcua-enum": "2.67.0",
|
|
25
|
+
"node-opcua-factory": "2.67.0",
|
|
26
|
+
"node-opcua-guid": "2.66.0",
|
|
27
|
+
"node-opcua-nodeid": "2.67.0",
|
|
28
|
+
"node-opcua-numeric-range": "2.67.0",
|
|
29
|
+
"node-opcua-schemas": "2.67.0",
|
|
30
|
+
"node-opcua-status-code": "2.67.0",
|
|
31
|
+
"node-opcua-utils": "2.67.0",
|
|
32
|
+
"node-opcua-variant": "2.67.0",
|
|
33
|
+
"node-opcua-xml2json": "2.67.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"node-opcua-binary-stream": "2.
|
|
37
|
-
"node-opcua-extension-object": "2.
|
|
38
|
-
"node-opcua-packet-analyzer": "2.
|
|
39
|
-
"prettier": "^2.
|
|
36
|
+
"node-opcua-binary-stream": "2.67.0",
|
|
37
|
+
"node-opcua-extension-object": "2.67.0",
|
|
38
|
+
"node-opcua-packet-analyzer": "2.67.0",
|
|
39
|
+
"prettier": "^2.6.1",
|
|
40
40
|
"should": "^13.2.3",
|
|
41
41
|
"source-map-support": "^0.5.21",
|
|
42
|
-
"typescript": "4.
|
|
42
|
+
"typescript": "4.6.3"
|
|
43
43
|
},
|
|
44
44
|
"author": "Etienne Rossignon",
|
|
45
45
|
"license": "MIT",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"internet of things"
|
|
57
57
|
],
|
|
58
58
|
"homepage": "http://node-opcua.github.io/",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "74c2fd7d4ce3eb48d25a911258bf90a64218ea0e"
|
|
60
60
|
}
|
|
@@ -12,10 +12,10 @@ import * as path from "path";
|
|
|
12
12
|
export function normalize_require_file(baseFolder: string, fullPathToFile: string): string {
|
|
13
13
|
let localFile = path.relative(baseFolder, fullPathToFile).replace(/\\/g, "/");
|
|
14
14
|
// append ./ if necessary
|
|
15
|
-
if (localFile.
|
|
15
|
+
if (localFile.substring(0, 1) !== ".") {
|
|
16
16
|
localFile = "./" + localFile;
|
|
17
17
|
}
|
|
18
18
|
// remove extension
|
|
19
|
-
localFile = localFile.
|
|
19
|
+
localFile = localFile.substring(0, localFile.length - path.extname(localFile).length);
|
|
20
20
|
return localFile;
|
|
21
21
|
}
|