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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-address-space",
3
- "version": "2.175.0",
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.174.0",
25
- "node-opcua-assert": "2.164.0",
26
- "node-opcua-basic-types": "2.174.0",
27
- "node-opcua-binary-stream": "2.173.0",
28
- "node-opcua-client-dynamic-extension-object": "2.174.0",
29
- "node-opcua-constants": "2.174.0",
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.174.0",
32
- "node-opcua-data-model": "2.174.0",
33
- "node-opcua-data-value": "2.174.0",
34
- "node-opcua-date-time": "2.174.0",
35
- "node-opcua-debug": "2.172.0",
36
- "node-opcua-enum": "2.173.0",
37
- "node-opcua-extension-object": "2.174.0",
38
- "node-opcua-factory": "2.174.0",
39
- "node-opcua-nodeid": "2.174.0",
40
- "node-opcua-nodeset-ua": "2.174.0",
41
- "node-opcua-numeric-range": "2.174.0",
42
- "node-opcua-object-registry": "2.172.0",
43
- "node-opcua-pseudo-session": "2.174.0",
44
- "node-opcua-service-browse": "2.174.0",
45
- "node-opcua-service-call": "2.174.0",
46
- "node-opcua-service-history": "2.174.0",
47
- "node-opcua-service-translate-browse-path": "2.174.0",
48
- "node-opcua-service-write": "2.174.0",
49
- "node-opcua-status-code": "2.173.0",
50
- "node-opcua-types": "2.174.0",
51
- "node-opcua-utils": "2.173.0",
52
- "node-opcua-variant": "2.174.0",
53
- "node-opcua-xml2json": "2.173.0",
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.173.0",
61
- "node-opcua-leak-detector": "2.172.0",
62
- "node-opcua-nodesets": "2.174.0",
63
- "node-opcua-packet-analyzer": "2.174.0",
64
- "node-opcua-schemas": "2.174.0",
65
- "node-opcua-service-filter": "2.174.0",
66
- "node-opcua-test-fixtures": "2.157.0"
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": "b15c534b0f03502d30c49934c36291368bdacb80",
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 {
@@ -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(","));