node-opcua-address-space 2.187.1 → 2.187.2

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.
@@ -26,9 +26,12 @@ export class MandatoryChildOrRequestedOptionalFilter implements CloneFilter {
26
26
  private readonly references: UAReference[];
27
27
  private readonly copyAlsoAllOptionals: boolean = false;
28
28
  /**
29
- * the clone is an instance declaration of a type (instantiate() inside a type): the
30
- * placeholders its type declares are part of it, as the ModelCompiler emits them
31
- * (OPC 10000-100 DI DeviceType/DeviceTypeImage/<ImageIdentifier>). An instance never takes one.
29
+ * the clone is an instance declaration of a type (instantiate() inside a type): it takes the
30
+ * placeholders of its type that `optionals` requests, and only those. The ModelCompiler emits
31
+ * a placeholder in an instance declaration when the design declares it (OPC 10000-100 DI
32
+ * DeviceType/DeviceTypeImage/<ImageIdentifier>), not every placeholder of the member's type
33
+ * (DI TopologyElementType/Identification carries no <GroupIdentifier>). An instance never
34
+ * takes one.
32
35
  */
33
36
  private readonly keepPlaceholders: boolean = false;
34
37
 
@@ -86,7 +89,7 @@ export class MandatoryChildOrRequestedOptionalFilter implements CloneFilter {
86
89
  return this.copyAlsoAllOptionals || (node.browseName?.name || "") in this.optionalsMap;
87
90
  case "OptionalPlaceholder":
88
91
  case "MandatoryPlaceholder":
89
- return this.keepPlaceholders;
92
+ return this.keepPlaceholders && (node.browseName?.name || "") in this.optionalsMap;
90
93
  default:
91
94
  return false; // ignored
92
95
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-opcua-address-space",
3
3
  "type": "module",
4
- "version": "2.187.1",
4
+ "version": "2.187.2",
5
5
  "description": "pure nodejs OPCUA SDK - module address-space",
6
6
  "main": "./dist/api/index.js",
7
7
  "types": "./dist/api/index.d.ts",
@@ -84,7 +84,7 @@
84
84
  "internet of things"
85
85
  ],
86
86
  "homepage": "http://node-opcua.github.io/",
87
- "gitHead": "706db482c6f77cd5c7c1f98f9f7cf1c5841a0161",
87
+ "gitHead": "22b86ffc9b80890a90d4d8f3cce1fa9f5290b9f8",
88
88
  "files": [
89
89
  "dist",
90
90
  "distHelpers",