node-opcua-convert-nodeset-to-javascript 2.98.2 → 2.99.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/convert_namespace_to_typescript.js +21 -3
- package/dist/convert_namespace_to_typescript.js.map +1 -1
- package/dist/main.js +28 -4
- package/dist/main.js.map +1 -1
- package/dist/official_namespaces.d.ts +48 -0
- package/dist/official_namespaces.js +66 -2
- package/dist/official_namespaces.js.map +1 -1
- package/package.json +15 -15
- package/source/convert_namespace_to_typescript.ts +22 -5
- package/source/main.ts +29 -6
- package/source/official_namespaces.ts +66 -2
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.convertNamespaceTypeToTypescript = void 0;
|
|
13
|
+
/* eslint-disable max-statements */
|
|
13
14
|
const path = require("path");
|
|
14
15
|
const fs = require("fs");
|
|
15
16
|
const node_opcua_constants_1 = require("node-opcua-constants");
|
|
@@ -108,13 +109,13 @@ function _output_package_json(info, options) {
|
|
|
108
109
|
content2.push(`{`);
|
|
109
110
|
content2.push(` "name": "${info.module}",`);
|
|
110
111
|
content2.push(` "version": "${version}",`);
|
|
111
|
-
content2.push(` "description": "",`);
|
|
112
|
+
content2.push(` "description": "pure nodejs OPCUA SDK - module ${info.module}",`);
|
|
112
113
|
content2.push(` "main": "dist/index.js",`);
|
|
113
114
|
content2.push(` "types": "dist/index.d.ts",`);
|
|
114
115
|
content2.push(` "scripts": {`);
|
|
115
116
|
content2.push(` "build": "tsc -b"`);
|
|
116
117
|
content2.push(` },`);
|
|
117
|
-
content2.push(` "author": "etienne.rossignon@sterfive.com",`);
|
|
118
|
+
content2.push(` "author": "Etienne Rossignon <etienne.rossignon@sterfive.com>",`);
|
|
118
119
|
content2.push(` "license": "MIT",`);
|
|
119
120
|
content2.push(` "dependencies": {`);
|
|
120
121
|
// find versions
|
|
@@ -127,7 +128,24 @@ function _output_package_json(info, options) {
|
|
|
127
128
|
.sort()
|
|
128
129
|
.map((d) => ` "${d}": "${versions[d]}"`)
|
|
129
130
|
.join(",\n"));
|
|
130
|
-
content2.push(` }
|
|
131
|
+
content2.push(` },`);
|
|
132
|
+
content2.push(` "files": [`);
|
|
133
|
+
content2.push(` "dist",`);
|
|
134
|
+
content2.push(` "source"`);
|
|
135
|
+
content2.push(` ],`);
|
|
136
|
+
content2.push(` "repository": {`);
|
|
137
|
+
content2.push(` "type": "git",`);
|
|
138
|
+
content2.push(` "url": "git://github.com/node-opcua/node-opcua.git"`);
|
|
139
|
+
content2.push(` },`);
|
|
140
|
+
content2.push(` "keywords": [`);
|
|
141
|
+
content2.push(` "OPCUA",`);
|
|
142
|
+
content2.push(` "opcua",`);
|
|
143
|
+
content2.push(` "m2m",`);
|
|
144
|
+
content2.push(` "iot",`);
|
|
145
|
+
content2.push(` "opc ua",`);
|
|
146
|
+
content2.push(` "internet of things"`);
|
|
147
|
+
content2.push(` ],`);
|
|
148
|
+
content2.push(` "homepage": "http://node-opcua.github.io/"`);
|
|
131
149
|
content2.push(`}`);
|
|
132
150
|
content2.push(``);
|
|
133
151
|
fs.writeFileSync(packagejson, content2.join("\n"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert_namespace_to_typescript.js","sourceRoot":"","sources":["../source/convert_namespace_to_typescript.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAA6B;AAC7B,yBAAyB;AAGzB,+DAAmD;AACnD,iDAAgI;AAChI,mEAAkE;AAClE,2CAAiD;AAGjD,SAAS,gBAAgB,CAAC,UAAkB,EAAE,OAAgB;IAC1D,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC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AE;YAC/C,iBAAiB;YACjB,MAAM,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAElC,MAAM,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE1C,MAAM,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SAC9C;IACL,CAAC;CAAA"}
|
package/dist/main.js
CHANGED
|
@@ -32,7 +32,15 @@ function main() {
|
|
|
32
32
|
node_opcua_nodesets_1.nodesets.cnc,
|
|
33
33
|
node_opcua_nodesets_1.nodesets.woodWorking,
|
|
34
34
|
node_opcua_nodesets_1.nodesets.glass,
|
|
35
|
-
node_opcua_nodesets_1.nodesets.tightening
|
|
35
|
+
node_opcua_nodesets_1.nodesets.tightening,
|
|
36
|
+
node_opcua_nodesets_1.nodesets.packML,
|
|
37
|
+
node_opcua_nodesets_1.nodesets.eumabois,
|
|
38
|
+
node_opcua_nodesets_1.nodesets.iolink,
|
|
39
|
+
node_opcua_nodesets_1.nodesets.iolinkIODD,
|
|
40
|
+
node_opcua_nodesets_1.nodesets.irdi,
|
|
41
|
+
node_opcua_nodesets_1.nodesets.padim,
|
|
42
|
+
node_opcua_nodesets_1.nodesets.machineryProcessValues,
|
|
43
|
+
node_opcua_nodesets_1.nodesets.machineryResult,
|
|
36
44
|
]);
|
|
37
45
|
const nsUA = 0;
|
|
38
46
|
const nsDI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/DI/");
|
|
@@ -48,7 +56,15 @@ function main() {
|
|
|
48
56
|
const nsCommercialKitchenEquipment = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/CommercialKitchenEquipment/");
|
|
49
57
|
const nsWW = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Woodworking/");
|
|
50
58
|
const nsGlass = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Glass/Flat/");
|
|
51
|
-
const
|
|
59
|
+
const nsTightening = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/IJT/");
|
|
60
|
+
const nsPackML = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/PackML/");
|
|
61
|
+
const nsEumabois = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Eumabois/");
|
|
62
|
+
const nsIOLink = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/IOLink/");
|
|
63
|
+
const nsIOLinkIODD = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/IOLink/IODD/");
|
|
64
|
+
const nsIRDI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Dictionary/IRDI");
|
|
65
|
+
const nsPADIM = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/PADIM/");
|
|
66
|
+
const nsMachineryProcessValues = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Machinery/ProcessValues/");
|
|
67
|
+
const nsMachineryResult = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Machinery/Result/");
|
|
52
68
|
const session = new node_opcua_address_space_1.PseudoSession(addressSpace);
|
|
53
69
|
const options = {
|
|
54
70
|
baseFolder: path.join(__dirname, "../../"),
|
|
@@ -69,10 +85,18 @@ function main() {
|
|
|
69
85
|
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsCommercialKitchenEquipment, options),
|
|
70
86
|
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsWW, options),
|
|
71
87
|
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsGlass, options),
|
|
72
|
-
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session,
|
|
88
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsTightening, options),
|
|
89
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsPackML, options),
|
|
90
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsEumabois, options),
|
|
91
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsIOLink, options),
|
|
92
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsIOLinkIODD, options),
|
|
93
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsIRDI, options),
|
|
94
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsPADIM, options),
|
|
95
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsMachineryProcessValues, options),
|
|
96
|
+
(0, convert_namespace_to_typescript_1.convertNamespaceTypeToTypescript)(session, nsMachineryResult, options),
|
|
73
97
|
];
|
|
74
98
|
yield Promise.all(promises);
|
|
75
99
|
});
|
|
76
100
|
}
|
|
77
|
-
main();
|
|
101
|
+
void main();
|
|
78
102
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../source/main.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA6B;AAC7B,uEAAuE;AACvE,4DAAuE;AACvE,6DAA+C;AAC/C,uFAAqF;AAErF,SAAe,IAAI;;QACf,MAAM,YAAY,GAAG,uCAAY,CAAC,MAAM,EAAE,CAAC;QAC3C,MAAM,IAAA,6BAAoB,EAAC,YAAY,EAAE;YACrC,8BAAQ,CAAC,QAAQ;YACjB,8BAAQ,CAAC,EAAE;YACX,8BAAQ,CAAC,GAAG;YACZ,8BAAQ,CAAC,MAAM;YACf,8BAAQ,CAAC,aAAa;YACtB,8BAAQ,CAAC,0BAA0B;YACnC,8BAAQ,CAAC,GAAG;YACZ,8BAAQ,CAAC,QAAQ;YACjB,8BAAQ,CAAC,SAAS;YAClB,8BAAQ,CAAC,EAAE;YACX,8BAAQ,CAAC,WAAW;YACpB,8BAAQ,CAAC,GAAG;YACZ,8BAAQ,CAAC,WAAW;YACpB,8BAAQ,CAAC,KAAK;YACd,8BAAQ,CAAC,UAAU;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRo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,EAAE,OAAO,CAAC;YAC5D,IAAA,kEAAgC,EAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC;YAC9D,IAAA,kEAAgC,EAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;YAC5D,IAAA,kEAAgC,EAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC;YAChE,IAAA,kEAAgC,EAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;YAC1D,IAAA,kEAAgC,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;YAC3D,IAAA,kEAAgC,EAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,CAAC;YAC5E,IAAA,kEAAgC,EAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;SACxE,CAAC;QACF,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CAAA;AACD,KAAK,IAAI,EAAE,CAAC"}
|
|
@@ -20,4 +20,52 @@ export declare const officialNamespaces: {
|
|
|
20
20
|
gds: {
|
|
21
21
|
location: string;
|
|
22
22
|
};
|
|
23
|
+
robotics: {
|
|
24
|
+
location: string;
|
|
25
|
+
};
|
|
26
|
+
machinery: {
|
|
27
|
+
location: string;
|
|
28
|
+
};
|
|
29
|
+
ia: {
|
|
30
|
+
location: string;
|
|
31
|
+
};
|
|
32
|
+
machineTool: {
|
|
33
|
+
location: string;
|
|
34
|
+
};
|
|
35
|
+
cnc: {
|
|
36
|
+
location: string;
|
|
37
|
+
};
|
|
38
|
+
woodWorking: {
|
|
39
|
+
location: string;
|
|
40
|
+
};
|
|
41
|
+
glass: {
|
|
42
|
+
location: string;
|
|
43
|
+
};
|
|
44
|
+
tightening: {
|
|
45
|
+
location: string;
|
|
46
|
+
};
|
|
47
|
+
packML: {
|
|
48
|
+
location: string;
|
|
49
|
+
};
|
|
50
|
+
eumabois: {
|
|
51
|
+
location: string;
|
|
52
|
+
};
|
|
53
|
+
iolink: {
|
|
54
|
+
location: string;
|
|
55
|
+
};
|
|
56
|
+
iolinkIODD: {
|
|
57
|
+
location: string;
|
|
58
|
+
};
|
|
59
|
+
irdi: {
|
|
60
|
+
location: string;
|
|
61
|
+
};
|
|
62
|
+
padim: {
|
|
63
|
+
location: string;
|
|
64
|
+
};
|
|
65
|
+
machineryProcessValues: {
|
|
66
|
+
location: string;
|
|
67
|
+
};
|
|
68
|
+
machineryResult: {
|
|
69
|
+
location: string;
|
|
70
|
+
};
|
|
23
71
|
};
|
|
@@ -22,6 +22,54 @@ exports.officialNamespaces = {
|
|
|
22
22
|
},
|
|
23
23
|
"gds": {
|
|
24
24
|
location: "node-opcua-types-gds"
|
|
25
|
+
},
|
|
26
|
+
"robotics": {
|
|
27
|
+
location: "node-opcua-robotics"
|
|
28
|
+
},
|
|
29
|
+
"machinery": {
|
|
30
|
+
location: "node-opcua-machinery"
|
|
31
|
+
},
|
|
32
|
+
"ia": {
|
|
33
|
+
location: "node-opcua-ia"
|
|
34
|
+
},
|
|
35
|
+
"machineTool": {
|
|
36
|
+
location: "node-opcua-machineTool"
|
|
37
|
+
},
|
|
38
|
+
"cnc": {
|
|
39
|
+
location: "node-opcua-cnc"
|
|
40
|
+
},
|
|
41
|
+
"woodWorking": {
|
|
42
|
+
location: "node-opcua-woodWorking"
|
|
43
|
+
},
|
|
44
|
+
"glass": {
|
|
45
|
+
location: "node-opcua-glass"
|
|
46
|
+
},
|
|
47
|
+
"tightening": {
|
|
48
|
+
location: "node-opcua-tightening"
|
|
49
|
+
},
|
|
50
|
+
"packML": {
|
|
51
|
+
location: "node-opcua-packML"
|
|
52
|
+
},
|
|
53
|
+
"eumabois": {
|
|
54
|
+
location: "node-opcua-eumabois"
|
|
55
|
+
},
|
|
56
|
+
"iolink": {
|
|
57
|
+
location: "node-opcua-iolink"
|
|
58
|
+
},
|
|
59
|
+
"iolinkIODD": {
|
|
60
|
+
location: "node-opcua-iolinkIODD"
|
|
61
|
+
},
|
|
62
|
+
"irdi": {
|
|
63
|
+
location: "node-opcua-irdi"
|
|
64
|
+
},
|
|
65
|
+
"padim": {
|
|
66
|
+
location: "node-opcua-padim"
|
|
67
|
+
},
|
|
68
|
+
"machineryProcessValues": {
|
|
69
|
+
location: "node-opcua-machineryProcessValues"
|
|
70
|
+
},
|
|
71
|
+
"machineryResult": {
|
|
72
|
+
location: "node-opcua-machineryResult"
|
|
25
73
|
}
|
|
26
74
|
};
|
|
27
75
|
/*
|
|
@@ -31,6 +79,22 @@ exports.officialNamespaces = {
|
|
|
31
79
|
nodesets.autoId,
|
|
32
80
|
nodesets.machineVision,
|
|
33
81
|
nodesets.commercialKitchenEquipment,
|
|
34
|
-
nodesets.gds
|
|
35
|
-
|
|
82
|
+
nodesets.gds,
|
|
83
|
+
nodesets.robotics,
|
|
84
|
+
nodesets.machinery,
|
|
85
|
+
nodesets.ia,
|
|
86
|
+
nodesets.machineTool,
|
|
87
|
+
nodesets.cnc,
|
|
88
|
+
nodesets.woodWorking,
|
|
89
|
+
nodesets.glass,
|
|
90
|
+
nodesets.tightening,
|
|
91
|
+
nodesets.packML,
|
|
92
|
+
nodesets.eumabois,
|
|
93
|
+
nodesets.iolink,
|
|
94
|
+
nodesets.iolinkIODD,
|
|
95
|
+
nodesets.irdi,
|
|
96
|
+
nodesets.padim,
|
|
97
|
+
nodesets.machineryProcessValues,
|
|
98
|
+
nodesets.machineryResult,
|
|
99
|
+
*/
|
|
36
100
|
//# sourceMappingURL=official_namespaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"official_namespaces.js","sourceRoot":"","sources":["../source/official_namespaces.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG;IAC9B,UAAU,EAAE;QACR,QAAQ,EAAE,wBAAwB;KACrC;IACD,IAAI,EAAE;QACF,QAAQ,EAAE,uBAAuB;KACpC;IACD,KAAK,EAAE;QACH,QAAQ,EAAE,wBAAwB;KACrC;IACD,QAAQ,EAAE;QACN,QAAQ,EAAE,4BAA4B;KACzC;IACD,eAAe,EAAE;QACb,QAAQ,EAAE,mCAAmC;KAChD;IACD,4BAA4B,EAAE;QAC1B,QAAQ,EAAE,iDAAiD;KAC9D;IACD,KAAK,EAAE;QACH,QAAQ,EAAE,sBAAsB;KACnC;CACJ,CAAC;AACF
|
|
1
|
+
{"version":3,"file":"official_namespaces.js","sourceRoot":"","sources":["../source/official_namespaces.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG;IAC9B,UAAU,EAAE;QACR,QAAQ,EAAE,wBAAwB;KACrC;IACD,IAAI,EAAE;QACF,QAAQ,EAAE,uBAAuB;KACpC;IACD,KAAK,EAAE;QACH,QAAQ,EAAE,wBAAwB;KACrC;IACD,QAAQ,EAAE;QACN,QAAQ,EAAE,4BAA4B;KACzC;IACD,eAAe,EAAE;QACb,QAAQ,EAAE,mCAAmC;KAChD;IACD,4BAA4B,EAAE;QAC1B,QAAQ,EAAE,iDAAiD;KAC9D;IACD,KAAK,EAAE;QACH,QAAQ,EAAE,sBAAsB;KACnC;IACD,UAAU,EAAE;QACR,QAAQ,EAAE,qBAAqB;KAClC;IACD,WAAW,EAAE;QACT,QAAQ,EAAE,sBAAsB;KACnC;IACD,IAAI,EAAE;QACF,QAAQ,EAAE,eAAe;KAC5B;IACD,aAAa,EAAE;QACX,QAAQ,EAAE,wBAAwB;KACrC;IACD,KAAK,EAAE;QACH,QAAQ,EAAE,gBAAgB;KAC7B;IACD,aAAa,EAAE;QACX,QAAQ,EAAE,wBAAwB;KACrC;IACD,OAAO,EAAE;QACL,QAAQ,EAAE,kBAAkB;KAC/B;IACD,YAAY,EAAE;QACV,QAAQ,EAAE,uBAAuB;KACpC;IACD,QAAQ,EAAE;QACN,QAAQ,EAAE,mBAAmB;KAChC;IACD,UAAU,EAAE;QACR,QAAQ,EAAE,qBAAqB;KAClC;IACD,QAAQ,EAAE;QACN,QAAQ,EAAE,mBAAmB;KAChC;IACD,YAAY,EAAE;QACV,QAAQ,EAAE,uBAAuB;KACpC;IACD,MAAM,EAAE;QACJ,QAAQ,EAAE,iBAAiB;KAC9B;IACD,OAAO,EAAE;QACL,QAAQ,EAAE,kBAAkB;KAC/B;IACD,wBAAwB,EAAE;QACtB,QAAQ,EAAE,mCAAmC;KAChD;IACD,iBAAiB,EAAE;QACf,QAAQ,EAAE,4BAA4B;KACzC;CACJ,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;;;EAwBE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-convert-nodeset-to-javascript",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.99.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module convert-nodeset-to-javascript",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,26 +15,26 @@
|
|
|
15
15
|
"@types/wordwrap": "^1.0.1",
|
|
16
16
|
"case-anything": "1.1.5",
|
|
17
17
|
"chalk": "4.1.2",
|
|
18
|
-
"node-opcua-address-space": "2.
|
|
19
|
-
"node-opcua-address-space-base": "2.
|
|
18
|
+
"node-opcua-address-space": "2.99.0",
|
|
19
|
+
"node-opcua-address-space-base": "2.99.0",
|
|
20
20
|
"node-opcua-assert": "2.98.1",
|
|
21
21
|
"node-opcua-constants": "2.98.1",
|
|
22
|
-
"node-opcua-data-model": "2.
|
|
23
|
-
"node-opcua-debug": "2.
|
|
24
|
-
"node-opcua-extension-object": "2.
|
|
25
|
-
"node-opcua-nodeid": "2.
|
|
26
|
-
"node-opcua-nodesets": "2.
|
|
27
|
-
"node-opcua-pseudo-session": "2.
|
|
22
|
+
"node-opcua-data-model": "2.99.0",
|
|
23
|
+
"node-opcua-debug": "2.99.0",
|
|
24
|
+
"node-opcua-extension-object": "2.99.0",
|
|
25
|
+
"node-opcua-nodeid": "2.99.0",
|
|
26
|
+
"node-opcua-nodesets": "2.99.0",
|
|
27
|
+
"node-opcua-pseudo-session": "2.99.0",
|
|
28
28
|
"node-opcua-status-code": "2.98.1",
|
|
29
|
-
"node-opcua-types": "2.
|
|
29
|
+
"node-opcua-types": "2.99.0",
|
|
30
30
|
"node-opcua-utils": "2.98.1",
|
|
31
|
-
"node-opcua-variant": "2.
|
|
31
|
+
"node-opcua-variant": "2.99.0",
|
|
32
32
|
"wordwrap": "^1.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"node-opcua-leak-detector": "2.
|
|
36
|
-
"node-opcua-packet-analyzer": "2.
|
|
37
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
35
|
+
"node-opcua-leak-detector": "2.99.0",
|
|
36
|
+
"node-opcua-packet-analyzer": "2.99.0",
|
|
37
|
+
"node-opcua-service-translate-browse-path": "2.99.0",
|
|
38
38
|
"should": "^13.2.3"
|
|
39
39
|
},
|
|
40
40
|
"author": "Etienne Rossignon",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"internet of things"
|
|
53
53
|
],
|
|
54
54
|
"homepage": "http://node-opcua.github.io/",
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "90ce9f5b44d74198d84a384de622dfa94fd05c0c",
|
|
56
56
|
"files": [
|
|
57
57
|
"dist",
|
|
58
58
|
"source"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable max-statements */
|
|
1
2
|
import * as path from "path";
|
|
2
3
|
import * as fs from "fs";
|
|
3
4
|
|
|
@@ -118,13 +119,13 @@ async function _output_package_json(info: Info, options: Options): Promise<void>
|
|
|
118
119
|
content2.push(`{`);
|
|
119
120
|
content2.push(` "name": "${info.module}",`);
|
|
120
121
|
content2.push(` "version": "${version}",`);
|
|
121
|
-
content2.push(` "description": "",`);
|
|
122
|
+
content2.push(` "description": "pure nodejs OPCUA SDK - module ${info.module}",`);
|
|
122
123
|
content2.push(` "main": "dist/index.js",`);
|
|
123
124
|
content2.push(` "types": "dist/index.d.ts",`);
|
|
124
125
|
content2.push(` "scripts": {`);
|
|
125
126
|
content2.push(` "build": "tsc -b"`);
|
|
126
127
|
content2.push(` },`);
|
|
127
|
-
content2.push(` "author": "etienne.rossignon@sterfive.com",`);
|
|
128
|
+
content2.push(` "author": "Etienne Rossignon <etienne.rossignon@sterfive.com>",`);
|
|
128
129
|
content2.push(` "license": "MIT",`);
|
|
129
130
|
|
|
130
131
|
content2.push(` "dependencies": {`);
|
|
@@ -140,9 +141,25 @@ async function _output_package_json(info: Info, options: Options): Promise<void>
|
|
|
140
141
|
.map((d) => ` "${d}": "${versions[d]}"`)
|
|
141
142
|
.join(",\n")
|
|
142
143
|
);
|
|
143
|
-
|
|
144
|
-
content2.push(`
|
|
145
|
-
|
|
144
|
+
content2.push(` },`);
|
|
145
|
+
content2.push(` "files": [`);
|
|
146
|
+
content2.push(` "dist",`);
|
|
147
|
+
content2.push(` "source"`);
|
|
148
|
+
content2.push(` ],`);
|
|
149
|
+
|
|
150
|
+
content2.push(` "repository": {`);
|
|
151
|
+
content2.push(` "type": "git",`);
|
|
152
|
+
content2.push(` "url": "git://github.com/node-opcua/node-opcua.git"`);
|
|
153
|
+
content2.push(` },`);
|
|
154
|
+
content2.push(` "keywords": [`);
|
|
155
|
+
content2.push(` "OPCUA",`);
|
|
156
|
+
content2.push(` "opcua",`);
|
|
157
|
+
content2.push(` "m2m",`);
|
|
158
|
+
content2.push(` "iot",`);
|
|
159
|
+
content2.push(` "opc ua",`);
|
|
160
|
+
content2.push(` "internet of things"`);
|
|
161
|
+
content2.push(` ],`);
|
|
162
|
+
content2.push(` "homepage": "http://node-opcua.github.io/"`);
|
|
146
163
|
content2.push(`}`);
|
|
147
164
|
content2.push(``);
|
|
148
165
|
|
package/source/main.ts
CHANGED
|
@@ -21,9 +21,16 @@ async function main() {
|
|
|
21
21
|
nodesets.cnc,
|
|
22
22
|
nodesets.woodWorking,
|
|
23
23
|
nodesets.glass,
|
|
24
|
-
nodesets.tightening
|
|
24
|
+
nodesets.tightening,
|
|
25
|
+
nodesets.packML,
|
|
26
|
+
nodesets.eumabois,
|
|
27
|
+
nodesets.iolink,
|
|
28
|
+
nodesets.iolinkIODD,
|
|
29
|
+
nodesets.irdi,
|
|
30
|
+
nodesets.padim,
|
|
31
|
+
nodesets.machineryProcessValues,
|
|
32
|
+
nodesets.machineryResult,
|
|
25
33
|
]);
|
|
26
|
-
|
|
27
34
|
const nsUA = 0;
|
|
28
35
|
const nsDI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/DI/");
|
|
29
36
|
const nsADI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/ADI/");
|
|
@@ -38,7 +45,15 @@ async function main() {
|
|
|
38
45
|
const nsCommercialKitchenEquipment = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/CommercialKitchenEquipment/");
|
|
39
46
|
const nsWW = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Woodworking/");
|
|
40
47
|
const nsGlass = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Glass/Flat/");
|
|
41
|
-
const
|
|
48
|
+
const nsTightening = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/IJT/");
|
|
49
|
+
const nsPackML = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/PackML/");
|
|
50
|
+
const nsEumabois = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Eumabois/");
|
|
51
|
+
const nsIOLink = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/IOLink/");
|
|
52
|
+
const nsIOLinkIODD = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/IOLink/IODD/");
|
|
53
|
+
const nsIRDI = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Dictionary/IRDI");
|
|
54
|
+
const nsPADIM = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/PADIM/");
|
|
55
|
+
const nsMachineryProcessValues = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Machinery/ProcessValues/");
|
|
56
|
+
const nsMachineryResult = addressSpace.getNamespaceIndex("http://opcfoundation.org/UA/Machinery/Result/");
|
|
42
57
|
|
|
43
58
|
const session = new PseudoSession(addressSpace);
|
|
44
59
|
const options = {
|
|
@@ -46,7 +61,7 @@ async function main() {
|
|
|
46
61
|
prefix: "node-opcua-nodeset-"
|
|
47
62
|
};
|
|
48
63
|
|
|
49
|
-
const promises = [
|
|
64
|
+
const promises: Promise<void>[] = [
|
|
50
65
|
convertNamespaceTypeToTypescript(session, nsUA, options),
|
|
51
66
|
convertNamespaceTypeToTypescript(session, nsDI, options),
|
|
52
67
|
convertNamespaceTypeToTypescript(session, nsADI, options),
|
|
@@ -61,8 +76,16 @@ async function main() {
|
|
|
61
76
|
convertNamespaceTypeToTypescript(session, nsCommercialKitchenEquipment, options),
|
|
62
77
|
convertNamespaceTypeToTypescript(session, nsWW, options),
|
|
63
78
|
convertNamespaceTypeToTypescript(session, nsGlass, options),
|
|
64
|
-
convertNamespaceTypeToTypescript(session,
|
|
79
|
+
convertNamespaceTypeToTypescript(session, nsTightening, options),
|
|
80
|
+
convertNamespaceTypeToTypescript(session, nsPackML, options),
|
|
81
|
+
convertNamespaceTypeToTypescript(session, nsEumabois, options),
|
|
82
|
+
convertNamespaceTypeToTypescript(session, nsIOLink, options),
|
|
83
|
+
convertNamespaceTypeToTypescript(session, nsIOLinkIODD, options),
|
|
84
|
+
convertNamespaceTypeToTypescript(session, nsIRDI, options),
|
|
85
|
+
convertNamespaceTypeToTypescript(session, nsPADIM, options),
|
|
86
|
+
convertNamespaceTypeToTypescript(session, nsMachineryProcessValues, options),
|
|
87
|
+
convertNamespaceTypeToTypescript(session, nsMachineryResult, options),
|
|
65
88
|
];
|
|
66
89
|
await Promise.all(promises);
|
|
67
90
|
}
|
|
68
|
-
main();
|
|
91
|
+
void main();
|
|
@@ -21,6 +21,54 @@ export const officialNamespaces = {
|
|
|
21
21
|
},
|
|
22
22
|
"gds": {
|
|
23
23
|
location: "node-opcua-types-gds"
|
|
24
|
+
},
|
|
25
|
+
"robotics": {
|
|
26
|
+
location: "node-opcua-robotics"
|
|
27
|
+
},
|
|
28
|
+
"machinery": {
|
|
29
|
+
location: "node-opcua-machinery"
|
|
30
|
+
},
|
|
31
|
+
"ia": {
|
|
32
|
+
location: "node-opcua-ia"
|
|
33
|
+
},
|
|
34
|
+
"machineTool": {
|
|
35
|
+
location: "node-opcua-machineTool"
|
|
36
|
+
},
|
|
37
|
+
"cnc": {
|
|
38
|
+
location: "node-opcua-cnc"
|
|
39
|
+
},
|
|
40
|
+
"woodWorking": {
|
|
41
|
+
location: "node-opcua-woodWorking"
|
|
42
|
+
},
|
|
43
|
+
"glass": {
|
|
44
|
+
location: "node-opcua-glass"
|
|
45
|
+
},
|
|
46
|
+
"tightening": {
|
|
47
|
+
location: "node-opcua-tightening"
|
|
48
|
+
},
|
|
49
|
+
"packML": {
|
|
50
|
+
location: "node-opcua-packML"
|
|
51
|
+
},
|
|
52
|
+
"eumabois": {
|
|
53
|
+
location: "node-opcua-eumabois"
|
|
54
|
+
},
|
|
55
|
+
"iolink": {
|
|
56
|
+
location: "node-opcua-iolink"
|
|
57
|
+
},
|
|
58
|
+
"iolinkIODD": {
|
|
59
|
+
location: "node-opcua-iolinkIODD"
|
|
60
|
+
},
|
|
61
|
+
"irdi": {
|
|
62
|
+
location: "node-opcua-irdi"
|
|
63
|
+
},
|
|
64
|
+
"padim": {
|
|
65
|
+
location: "node-opcua-padim"
|
|
66
|
+
},
|
|
67
|
+
"machineryProcessValues": {
|
|
68
|
+
location: "node-opcua-machineryProcessValues"
|
|
69
|
+
},
|
|
70
|
+
"machineryResult": {
|
|
71
|
+
location: "node-opcua-machineryResult"
|
|
24
72
|
}
|
|
25
73
|
};
|
|
26
74
|
/*
|
|
@@ -30,5 +78,21 @@ export const officialNamespaces = {
|
|
|
30
78
|
nodesets.autoId,
|
|
31
79
|
nodesets.machineVision,
|
|
32
80
|
nodesets.commercialKitchenEquipment,
|
|
33
|
-
nodesets.gds
|
|
34
|
-
|
|
81
|
+
nodesets.gds,
|
|
82
|
+
nodesets.robotics,
|
|
83
|
+
nodesets.machinery,
|
|
84
|
+
nodesets.ia,
|
|
85
|
+
nodesets.machineTool,
|
|
86
|
+
nodesets.cnc,
|
|
87
|
+
nodesets.woodWorking,
|
|
88
|
+
nodesets.glass,
|
|
89
|
+
nodesets.tightening,
|
|
90
|
+
nodesets.packML,
|
|
91
|
+
nodesets.eumabois,
|
|
92
|
+
nodesets.iolink,
|
|
93
|
+
nodesets.iolinkIODD,
|
|
94
|
+
nodesets.irdi,
|
|
95
|
+
nodesets.padim,
|
|
96
|
+
nodesets.machineryProcessValues,
|
|
97
|
+
nodesets.machineryResult,
|
|
98
|
+
*/
|