node-opcua-client-dynamic-extension-object 2.183.0 → 2.184.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_data_type_definition_to_structuretype_schema.d.ts +1 -0
- package/dist/convert_data_type_definition_to_structuretype_schema.d.ts.map +1 -0
- package/dist/convert_data_type_definition_to_structuretype_schema.js +82 -85
- package/dist/convert_data_type_definition_to_structuretype_schema.js.map +1 -1
- package/dist/convert_structuretype_schema_to_structure_definition.d.ts +1 -0
- package/dist/convert_structuretype_schema_to_structure_definition.d.ts.map +1 -0
- package/dist/convert_structuretype_schema_to_structure_definition.js +13 -16
- package/dist/convert_structuretype_schema_to_structure_definition.js.map +1 -1
- package/dist/extra_data_type_manager.d.ts +16 -0
- package/dist/extra_data_type_manager.d.ts.map +1 -0
- package/dist/extra_data_type_manager.js +56 -21
- package/dist/extra_data_type_manager.js.map +1 -1
- package/dist/get_extension_object_constructor.d.ts +1 -0
- package/dist/get_extension_object_constructor.d.ts.map +1 -0
- package/dist/get_extension_object_constructor.js +7 -10
- package/dist/get_extension_object_constructor.js.map +1 -1
- package/dist/get_extra_data_type_manager.d.ts +1 -0
- package/dist/get_extra_data_type_manager.d.ts.map +1 -0
- package/dist/get_extra_data_type_manager.js +21 -27
- package/dist/get_extra_data_type_manager.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -25
- package/dist/index.js.map +1 -1
- package/dist/populate_data_type_manager.d.ts +1 -0
- package/dist/populate_data_type_manager.d.ts.map +1 -0
- package/dist/populate_data_type_manager.js +44 -49
- package/dist/populate_data_type_manager.js.map +1 -1
- package/dist/private/find_encodings.d.ts +1 -0
- package/dist/private/find_encodings.d.ts.map +1 -0
- package/dist/private/find_encodings.js +12 -15
- package/dist/private/find_encodings.js.map +1 -1
- package/dist/private/populate_data_type_manager_103.d.ts +1 -0
- package/dist/private/populate_data_type_manager_103.d.ts.map +1 -0
- package/dist/private/populate_data_type_manager_103.js +88 -94
- package/dist/private/populate_data_type_manager_103.js.map +1 -1
- package/dist/private/populate_data_type_manager_104.d.ts +1 -0
- package/dist/private/populate_data_type_manager_104.d.ts.map +1 -0
- package/dist/private/populate_data_type_manager_104.js +35 -39
- package/dist/private/populate_data_type_manager_104.js.map +1 -1
- package/dist/promote_opaque_structure.d.ts +1 -0
- package/dist/promote_opaque_structure.d.ts.map +1 -0
- package/dist/promote_opaque_structure.js +12 -16
- package/dist/promote_opaque_structure.js.map +1 -1
- package/dist/promote_opaque_structure_in_notification_data.d.ts +1 -0
- package/dist/promote_opaque_structure_in_notification_data.d.ts.map +1 -0
- package/dist/promote_opaque_structure_in_notification_data.js +9 -12
- package/dist/promote_opaque_structure_in_notification_data.js.map +1 -1
- package/dist/resolve_dynamic_extension_object.d.ts +1 -0
- package/dist/resolve_dynamic_extension_object.d.ts.map +1 -0
- package/dist/resolve_dynamic_extension_object.js +16 -20
- package/dist/resolve_dynamic_extension_object.js.map +1 -1
- package/package.json +19 -18
- package/source/extra_data_type_manager.ts +49 -4
- package/source/get_extra_data_type_manager.ts +3 -3
- package/source/private/populate_data_type_manager_103.ts +1 -1
- package/source/private/populate_data_type_manager_104.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve_dynamic_extension_object.js","sourceRoot":"","sources":["../source/resolve_dynamic_extension_object.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolve_dynamic_extension_object.js","sourceRoot":"","sources":["../source/resolve_dynamic_extension_object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA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name": "node-opcua-client-dynamic-extension-object",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.184.0",
|
|
4
5
|
"description": "pure nodejs OPCUA SDK - module client-dynamic-extension-object",
|
|
5
6
|
"main": "./dist/index.js",
|
|
6
7
|
"types": "./dist/index.d.ts",
|
|
@@ -15,22 +16,22 @@
|
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"chalk": "4.1.2",
|
|
18
|
-
"node-opcua-assert": "2.
|
|
19
|
-
"node-opcua-binary-stream": "2.
|
|
20
|
-
"node-opcua-constants": "2.
|
|
21
|
-
"node-opcua-data-model": "2.
|
|
22
|
-
"node-opcua-data-value": "2.
|
|
23
|
-
"node-opcua-debug": "2.
|
|
24
|
-
"node-opcua-extension-object": "2.
|
|
25
|
-
"node-opcua-factory": "2.
|
|
26
|
-
"node-opcua-nodeid": "2.
|
|
27
|
-
"node-opcua-pseudo-session": "2.
|
|
28
|
-
"node-opcua-schemas": "2.
|
|
29
|
-
"node-opcua-service-browse": "2.
|
|
30
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
31
|
-
"node-opcua-status-code": "2.
|
|
32
|
-
"node-opcua-types": "2.
|
|
33
|
-
"node-opcua-variant": "2.
|
|
19
|
+
"node-opcua-assert": "2.184.0",
|
|
20
|
+
"node-opcua-binary-stream": "2.184.0",
|
|
21
|
+
"node-opcua-constants": "2.184.0",
|
|
22
|
+
"node-opcua-data-model": "2.184.0",
|
|
23
|
+
"node-opcua-data-value": "2.184.0",
|
|
24
|
+
"node-opcua-debug": "2.184.0",
|
|
25
|
+
"node-opcua-extension-object": "2.184.0",
|
|
26
|
+
"node-opcua-factory": "2.184.0",
|
|
27
|
+
"node-opcua-nodeid": "2.184.0",
|
|
28
|
+
"node-opcua-pseudo-session": "2.184.0",
|
|
29
|
+
"node-opcua-schemas": "2.184.0",
|
|
30
|
+
"node-opcua-service-browse": "2.184.0",
|
|
31
|
+
"node-opcua-service-translate-browse-path": "2.184.0",
|
|
32
|
+
"node-opcua-status-code": "2.184.0",
|
|
33
|
+
"node-opcua-types": "2.184.0",
|
|
34
|
+
"node-opcua-variant": "2.184.0"
|
|
34
35
|
},
|
|
35
36
|
"author": "Etienne Rossignon",
|
|
36
37
|
"license": "MIT",
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"internet of things"
|
|
48
49
|
],
|
|
49
50
|
"homepage": "http://node-opcua.github.io/",
|
|
50
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "441a5c63e3a4202eb8de8597acac77a3a49248b7",
|
|
51
52
|
"files": [
|
|
52
53
|
"dist",
|
|
53
54
|
"source"
|
|
@@ -5,11 +5,16 @@ import { format } from "node:util";
|
|
|
5
5
|
|
|
6
6
|
import { assert } from "node-opcua-assert";
|
|
7
7
|
import { BrowseDirection, NodeClassMask, ResultMask } from "node-opcua-data-model";
|
|
8
|
+
import { make_warningLog } from "node-opcua-debug";
|
|
8
9
|
import { type ConstructorFunc, type DataTypeFactory, getStandardDataTypeFactory, type StructureInfo } from "node-opcua-factory";
|
|
9
10
|
import type { NodeId } from "node-opcua-nodeid";
|
|
10
11
|
import type { IBasicSessionAsync2 } from "node-opcua-pseudo-session";
|
|
11
12
|
import type { AnyConstructorFunc } from "node-opcua-schemas";
|
|
12
13
|
|
|
14
|
+
import { readDataTypeDefinitionAndBuildType } from "./private/populate_data_type_manager_104.js";
|
|
15
|
+
|
|
16
|
+
const warningLog = make_warningLog("ExtraDataTypeManager");
|
|
17
|
+
|
|
13
18
|
export class ExtraDataTypeManager {
|
|
14
19
|
public namespaceArray: string[] = [];
|
|
15
20
|
private dataTypeFactoryMapByNamespace: { [key: number]: DataTypeFactory } = {};
|
|
@@ -40,6 +45,50 @@ export class ExtraDataTypeManager {
|
|
|
40
45
|
this.dataTypeFactoryMapByNamespace[namespaceIndex] = dataTypeFactory;
|
|
41
46
|
}
|
|
42
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Forget the factory of a namespace, and with it every structure, enumeration and
|
|
50
|
+
* ExtensionObject constructor that namespace registered.
|
|
51
|
+
*
|
|
52
|
+
* A namespace that is emptied and loaded again (see `IAddressSpace.deleteNamespace`) must
|
|
53
|
+
* come back to a manager that has no memory of the previous load: `registerDataTypeFactory`
|
|
54
|
+
* refuses a second factory for the same index, and the schemas of the old load carry the
|
|
55
|
+
* NodeIds of nodes that no longer exist.
|
|
56
|
+
*
|
|
57
|
+
* Namespace 0 has no factory of its own - it is served by the standard one - and is refused.
|
|
58
|
+
*
|
|
59
|
+
* A factory that other namespaces list among their base factories keeps being referenced by
|
|
60
|
+
* them; those namespaces have to be re-extracted as well if they used its types.
|
|
61
|
+
*/
|
|
62
|
+
public unregisterDataTypeFactory(namespaceIndex: number): void {
|
|
63
|
+
/* c8 ignore next */
|
|
64
|
+
if (namespaceIndex === 0) {
|
|
65
|
+
throw new Error("unregisterDataTypeFactory cannot be used for namespace 0");
|
|
66
|
+
}
|
|
67
|
+
const dropped = this.dataTypeFactoryMapByNamespace[namespaceIndex];
|
|
68
|
+
if (!dropped) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
delete this.dataTypeFactoryMapByNamespace[namespaceIndex];
|
|
72
|
+
|
|
73
|
+
// A namespace whose types are built on this one keeps the factory just dropped in its
|
|
74
|
+
// fallback chain, and will go on resolving those types through schemas of the load that
|
|
75
|
+
// has gone. Nothing fails when that happens, which is why it is said out loud here: the
|
|
76
|
+
// dependent namespaces have to be extracted again too.
|
|
77
|
+
const dependents: number[] = [];
|
|
78
|
+
for (const [key, factory] of Object.entries(this.dataTypeFactoryMapByNamespace)) {
|
|
79
|
+
if (factory.getBaseDataFactories().includes(dropped)) {
|
|
80
|
+
dependents.push(Number.parseInt(key, 10));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (dependents.length) {
|
|
84
|
+
warningLog(
|
|
85
|
+
`unregisterDataTypeFactory: namespace ${namespaceIndex} (${dropped.targetNamespace}) is a base of ` +
|
|
86
|
+
`namespace(s) ${dependents.join(", ")}, whose DataType factories now refer to a discarded one. ` +
|
|
87
|
+
"Those namespaces must be reloaded as well."
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
43
92
|
public getDataTypeFactoryForNamespace(namespaceIndex: number): DataTypeFactory {
|
|
44
93
|
if (namespaceIndex === 0) {
|
|
45
94
|
return getStandardDataTypeFactory();
|
|
@@ -90,10 +139,6 @@ export class ExtraDataTypeManager {
|
|
|
90
139
|
|
|
91
140
|
const session = this._session;
|
|
92
141
|
const promise = (async () => {
|
|
93
|
-
// We'll need to make sure it's accessible and correctly used.
|
|
94
|
-
// For now, let's assume we can import it or move it.
|
|
95
|
-
// Actually, populate_data_type_manager_104.ts exports readDataTypeDefinitionAndBuildType
|
|
96
|
-
const { readDataTypeDefinitionAndBuildType } = require("./private/populate_data_type_manager_104");
|
|
97
142
|
const cache = {}; // local cache for this extraction
|
|
98
143
|
await readDataTypeDefinitionAndBuildType(session, dataTypeNodeId, undefined, this, cache);
|
|
99
144
|
|
|
@@ -37,11 +37,11 @@ async function extractDataTypeManagerPrivate(
|
|
|
37
37
|
strategy: DataTypeExtractStrategy
|
|
38
38
|
): Promise<ExtraDataTypeManager> {
|
|
39
39
|
const namespaceArray = await readNamespaceArray(session);
|
|
40
|
-
|
|
40
|
+
/* c8 ignore next */
|
|
41
41
|
if (namespaceArray.length === 0) {
|
|
42
42
|
errorLog("namespaceArray is not populated ! Your server must expose a list of namespace ");
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
/* c8 ignore next */
|
|
45
45
|
if (doDebug) {
|
|
46
46
|
debugLog("Namespace Array = ", namespaceArray.join("\n "));
|
|
47
47
|
}
|
|
@@ -54,7 +54,7 @@ async function extractDataTypeManagerPrivate(
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
await populateDataTypeManager(session, dataTypeManager, strategy);
|
|
57
|
-
|
|
57
|
+
/* c8 ignore next */
|
|
58
58
|
if (dataTypeManager.namespaceArray.length === 0) {
|
|
59
59
|
throw new Error("namespaceArray is not populated ! Your server must expose a list of namespace ");
|
|
60
60
|
}
|
|
@@ -65,7 +65,7 @@ async function _readDeprecatedFlag(session: IBasicSessionAsync, dataTypeDictiona
|
|
|
65
65
|
/* c8 ignore next */
|
|
66
66
|
if (!a.targets || a.targets.length === 0) {
|
|
67
67
|
// the server is probably version < 1.04.
|
|
68
|
-
|
|
68
|
+
/* c8 ignore next */
|
|
69
69
|
doDebug && debugLog(`Cannot find Deprecated property for dataTypeDictionary ${dataTypeDictionary.toString()}`);
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
@@ -77,7 +77,7 @@ export async function readDataTypeDefinitionAndBuildType(
|
|
|
77
77
|
]);
|
|
78
78
|
if (isAbstractDataValue.statusCode === StatusCodes.BadNodeIdUnknown) {
|
|
79
79
|
// may be model is incomplete and dataTypeNodeId is missing
|
|
80
|
-
|
|
80
|
+
/* c8 ignore next */
|
|
81
81
|
doDebug && debugLog("Cannot find dataTypeNodeId = ", dataTypeNodeId.toString());
|
|
82
82
|
return dependentNamespaces;
|
|
83
83
|
}
|