node-opcua-address-space 2.175.0 → 2.175.1
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/source/loader/make_xml_extension_object_parser.js +2 -2
- package/dist/source/loader/make_xml_extension_object_parser.js.map +1 -1
- package/dist/src/nodeid_manager.js +2 -2
- package/dist/src/nodeid_manager.js.map +1 -1
- package/dist/src/nodeset_tools/dump_to_bsd.js +5 -5
- package/dist/src/nodeset_tools/dump_to_bsd.js.map +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/tsconfig_base.tsbuildinfo +1 -1
- package/package.json +38 -38
- package/source/loader/make_xml_extension_object_parser.ts +2 -2
- package/src/nodeid_manager.ts +4 -4
- package/src/nodeset_tools/dump_to_bsd.ts +5 -5
- package/src/nodeset_tools/nodeset_to_xml.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space",
|
|
3
|
-
"version": "2.175.
|
|
3
|
+
"version": "2.175.1",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module address-space",
|
|
5
5
|
"main": "./dist/src/index_current.js",
|
|
6
6
|
"types": "./dist/source/index.d.ts",
|
|
@@ -21,49 +21,49 @@
|
|
|
21
21
|
"@types/semver": "7.7.1",
|
|
22
22
|
"chalk": "4.1.2",
|
|
23
23
|
"dequeue": "^1.0.5",
|
|
24
|
-
"node-opcua-address-space-base": "2.
|
|
25
|
-
"node-opcua-assert": "2.
|
|
26
|
-
"node-opcua-basic-types": "2.
|
|
27
|
-
"node-opcua-binary-stream": "2.
|
|
28
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
29
|
-
"node-opcua-constants": "2.
|
|
24
|
+
"node-opcua-address-space-base": "2.175.1",
|
|
25
|
+
"node-opcua-assert": "2.175.1",
|
|
26
|
+
"node-opcua-basic-types": "2.175.1",
|
|
27
|
+
"node-opcua-binary-stream": "2.175.1",
|
|
28
|
+
"node-opcua-client-dynamic-extension-object": "2.175.1",
|
|
29
|
+
"node-opcua-constants": "2.175.1",
|
|
30
30
|
"node-opcua-crypto": "5.3.6",
|
|
31
|
-
"node-opcua-data-access": "2.
|
|
32
|
-
"node-opcua-data-model": "2.
|
|
33
|
-
"node-opcua-data-value": "2.
|
|
34
|
-
"node-opcua-date-time": "2.
|
|
35
|
-
"node-opcua-debug": "2.
|
|
36
|
-
"node-opcua-enum": "2.
|
|
37
|
-
"node-opcua-extension-object": "2.
|
|
38
|
-
"node-opcua-factory": "2.
|
|
39
|
-
"node-opcua-nodeid": "2.
|
|
40
|
-
"node-opcua-nodeset-ua": "2.
|
|
41
|
-
"node-opcua-numeric-range": "2.
|
|
42
|
-
"node-opcua-object-registry": "2.
|
|
43
|
-
"node-opcua-pseudo-session": "2.
|
|
44
|
-
"node-opcua-service-browse": "2.
|
|
45
|
-
"node-opcua-service-call": "2.
|
|
46
|
-
"node-opcua-service-history": "2.
|
|
47
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
48
|
-
"node-opcua-service-write": "2.
|
|
49
|
-
"node-opcua-status-code": "2.
|
|
50
|
-
"node-opcua-types": "2.
|
|
51
|
-
"node-opcua-utils": "2.
|
|
52
|
-
"node-opcua-variant": "2.
|
|
53
|
-
"node-opcua-xml2json": "2.
|
|
31
|
+
"node-opcua-data-access": "2.175.1",
|
|
32
|
+
"node-opcua-data-model": "2.175.1",
|
|
33
|
+
"node-opcua-data-value": "2.175.1",
|
|
34
|
+
"node-opcua-date-time": "2.175.1",
|
|
35
|
+
"node-opcua-debug": "2.175.1",
|
|
36
|
+
"node-opcua-enum": "2.175.1",
|
|
37
|
+
"node-opcua-extension-object": "2.175.1",
|
|
38
|
+
"node-opcua-factory": "2.175.1",
|
|
39
|
+
"node-opcua-nodeid": "2.175.1",
|
|
40
|
+
"node-opcua-nodeset-ua": "2.175.1",
|
|
41
|
+
"node-opcua-numeric-range": "2.175.1",
|
|
42
|
+
"node-opcua-object-registry": "2.175.1",
|
|
43
|
+
"node-opcua-pseudo-session": "2.175.1",
|
|
44
|
+
"node-opcua-service-browse": "2.175.1",
|
|
45
|
+
"node-opcua-service-call": "2.175.1",
|
|
46
|
+
"node-opcua-service-history": "2.175.1",
|
|
47
|
+
"node-opcua-service-translate-browse-path": "2.175.1",
|
|
48
|
+
"node-opcua-service-write": "2.175.1",
|
|
49
|
+
"node-opcua-status-code": "2.175.1",
|
|
50
|
+
"node-opcua-types": "2.175.1",
|
|
51
|
+
"node-opcua-utils": "2.175.1",
|
|
52
|
+
"node-opcua-variant": "2.175.1",
|
|
53
|
+
"node-opcua-xml2json": "2.175.1",
|
|
54
54
|
"semver": "^7.8.5",
|
|
55
55
|
"thenify-ex": "4.4.0",
|
|
56
56
|
"xml-writer": "^1.7.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"humanize": "0.0.9",
|
|
60
|
-
"node-opcua-benchmarker": "2.
|
|
61
|
-
"node-opcua-leak-detector": "2.
|
|
62
|
-
"node-opcua-nodesets": "2.
|
|
63
|
-
"node-opcua-packet-analyzer": "2.
|
|
64
|
-
"node-opcua-schemas": "2.
|
|
65
|
-
"node-opcua-service-filter": "2.
|
|
66
|
-
"node-opcua-test-fixtures": "2.
|
|
60
|
+
"node-opcua-benchmarker": "2.175.1",
|
|
61
|
+
"node-opcua-leak-detector": "2.175.1",
|
|
62
|
+
"node-opcua-nodesets": "2.175.1",
|
|
63
|
+
"node-opcua-packet-analyzer": "2.175.1",
|
|
64
|
+
"node-opcua-schemas": "2.175.1",
|
|
65
|
+
"node-opcua-service-filter": "2.175.1",
|
|
66
|
+
"node-opcua-test-fixtures": "2.175.1"
|
|
67
67
|
},
|
|
68
68
|
"author": "Etienne Rossignon",
|
|
69
69
|
"license": "MIT",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"internet of things"
|
|
81
81
|
],
|
|
82
82
|
"homepage": "http://node-opcua.github.io/",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "7c0416a09c7fd83a034b4de3dc8197dff84b8ad8",
|
|
84
84
|
"files": [
|
|
85
85
|
"dist",
|
|
86
86
|
"distHelpers",
|
|
@@ -260,11 +260,11 @@ function _makeTypeReader(
|
|
|
260
260
|
throw new Error(`??? ${field.dataType} ${field.name}`);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
reader.parser![field.name
|
|
263
|
+
reader.parser![field.name || ""] = {
|
|
264
264
|
parser: fieldParser.parser,
|
|
265
265
|
// endElement: fieldReader.endElement,
|
|
266
266
|
finish(this: any) {
|
|
267
|
-
const elName = lowerFirstLetter(field.name
|
|
267
|
+
const elName = lowerFirstLetter(field.name || "");
|
|
268
268
|
if (fieldParser.finish) {
|
|
269
269
|
fieldParser.finish.call(this);
|
|
270
270
|
} else {
|
package/src/nodeid_manager.ts
CHANGED
|
@@ -169,13 +169,13 @@ export class NodeIdManager {
|
|
|
169
169
|
const [parentNodeId, suffix] = parentInfo;
|
|
170
170
|
fullParentName = buildUpName2(parentNodeId, suffix);
|
|
171
171
|
}
|
|
172
|
-
const fullName = compose(fullParentName, prepareName(options.browseName
|
|
172
|
+
const fullName = compose(fullParentName, prepareName(options.browseName));
|
|
173
173
|
if (this._cacheSymbolicName[fullName]) {
|
|
174
174
|
return makeNodeId(this._cacheSymbolicName[fullName][0], this.namespaceIndex);
|
|
175
175
|
}
|
|
176
176
|
const nodeId = this._constructNodeId(options);
|
|
177
177
|
if (nodeId.identifierType === NodeIdType.NUMERIC) {
|
|
178
|
-
this._cacheSymbolicName[fullName] = [nodeId.value as number, options.nodeClass
|
|
178
|
+
this._cacheSymbolicName[fullName] = [nodeId.value as number, options.nodeClass || NodeClass.Unspecified];
|
|
179
179
|
this._cacheSymbolicNameRev.add(nodeId.value as number);
|
|
180
180
|
}
|
|
181
181
|
return nodeId;
|
|
@@ -192,9 +192,9 @@ export class NodeIdManager {
|
|
|
192
192
|
const [parentNodeId, suffix] = parentInfo;
|
|
193
193
|
fullParentName = buildUpName2(parentNodeId, suffix);
|
|
194
194
|
}
|
|
195
|
-
const fullName = compose(fullParentName, prepareName(options.browseName
|
|
195
|
+
const fullName = compose(fullParentName, prepareName(options.browseName));
|
|
196
196
|
if (!this._cacheSymbolicName[fullName]) {
|
|
197
|
-
this._cacheSymbolicName[fullName] = [nodeId.value as number, options.nodeClass
|
|
197
|
+
this._cacheSymbolicName[fullName] = [nodeId.value as number, options.nodeClass || NodeClass.Unspecified];
|
|
198
198
|
this._cacheSymbolicNameRev.add(nodeId.value as number);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -16,7 +16,7 @@ function dumpEnumeratedType(xw: XmlWriter, e: EnumDefinition, name: string): voi
|
|
|
16
16
|
xw.writeAttribute("LengthInBits", "32");
|
|
17
17
|
for (const f of e.fields || []) {
|
|
18
18
|
xw.startElement("opc:EnumeratedValue");
|
|
19
|
-
xw.writeAttribute("Name", f.name
|
|
19
|
+
xw.writeAttribute("Name", f.name|| "");
|
|
20
20
|
assert(f.value[0] === 0, "unsupported 64 bit value !");
|
|
21
21
|
xw.writeAttribute("Value", f.value[1].toString());
|
|
22
22
|
xw.endElement();
|
|
@@ -119,15 +119,15 @@ function dumpDataTypeStructure(
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
xw.startElement("opc:Field");
|
|
122
|
-
xw.writeAttribute("Name", f.name
|
|
122
|
+
xw.writeAttribute("Name", f.name|| "");
|
|
123
123
|
|
|
124
124
|
const typeName = buildXmlName(addressSpace as AddressSpacePrivate, map, f.dataType);
|
|
125
125
|
xw.writeAttribute("TypeName", typeName);
|
|
126
126
|
if (isArray) {
|
|
127
|
-
xw.writeAttribute("LengthField", `NoOf${f.name
|
|
127
|
+
xw.writeAttribute("LengthField", `NoOf${f.name|| ""}`);
|
|
128
128
|
}
|
|
129
129
|
if (f.isOptional) {
|
|
130
|
-
xw.writeAttribute("SwitchField", `${f.name}Specified`);
|
|
130
|
+
xw.writeAttribute("SwitchField", `${f.name|| ""}Specified`);
|
|
131
131
|
}
|
|
132
132
|
xw.endElement();
|
|
133
133
|
}
|
|
@@ -137,7 +137,7 @@ function dumpDataTypeStructure(
|
|
|
137
137
|
function dumpDataTypeToBSD(xw: XmlWriter, dataType: UADataType, map: Map<number, string>) {
|
|
138
138
|
const addressSpace = dataType.addressSpace;
|
|
139
139
|
|
|
140
|
-
const name: string = dataType.browseName.name
|
|
140
|
+
const name: string = dataType.browseName.name || "";
|
|
141
141
|
|
|
142
142
|
const definition = dataType.getDefinition();
|
|
143
143
|
if (definition instanceof StructureDefinition) {
|
|
@@ -898,7 +898,7 @@ function _dumpStructureDefinition(
|
|
|
898
898
|
for (let index = nbFieldsInBase; index < fields.length; index++) {
|
|
899
899
|
const defItem = fields[index];
|
|
900
900
|
xw.startElement("Field");
|
|
901
|
-
xw.writeAttribute("Name", defItem.name
|
|
901
|
+
xw.writeAttribute("Name", defItem.name as string);
|
|
902
902
|
|
|
903
903
|
if (defItem.arrayDimensions) {
|
|
904
904
|
xw.writeAttribute("ArrayDimensions", defItem.arrayDimensions.map((x) => x.toString()).join(","));
|