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.
- package/dist/impl/_mandatory_child_or_requested_optional_filter.d.ts +6 -3
- package/dist/impl/_mandatory_child_or_requested_optional_filter.d.ts.map +1 -1
- package/dist/impl/_mandatory_child_or_requested_optional_filter.js +7 -4
- package/dist/impl/_mandatory_child_or_requested_optional_filter.js.map +1 -1
- package/dist/tsconfig_base.tsbuildinfo +1 -1
- package/impl/_mandatory_child_or_requested_optional_filter.ts +7 -4
- package/package.json +2 -2
|
@@ -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
|
|
31
|
-
* (OPC 10000-100 DI
|
|
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.
|
|
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": "
|
|
87
|
+
"gitHead": "22b86ffc9b80890a90d4d8f3cce1fa9f5290b9f8",
|
|
88
88
|
"files": [
|
|
89
89
|
"dist",
|
|
90
90
|
"distHelpers",
|