node-opcua-address-space-base 2.79.0 → 2.80.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/address_space.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { UAReferenceType } from "./ua_reference_type";
|
|
|
17
17
|
import { IHistoricalDataNodeOptions, UAVariable } from "./ua_variable";
|
|
18
18
|
import { UAVariableType } from "./ua_variable_type";
|
|
19
19
|
import { UAView } from "./ua_view";
|
|
20
|
+
export declare type ShutdownTask = ((this: IAddressSpace) => void) | ((this: IAddressSpace) => Promise<void>);
|
|
20
21
|
interface UARootFolder_Objects extends UAObject {
|
|
21
22
|
server: UAObject;
|
|
22
23
|
}
|
|
@@ -155,7 +156,14 @@ export interface IAddressSpace {
|
|
|
155
156
|
*/
|
|
156
157
|
extractRootViews(node: UAObject | UAVariable): UAView[];
|
|
157
158
|
installHistoricalDataNode(variableNode: UAVariable, options?: IHistoricalDataNodeOptions): void;
|
|
158
|
-
|
|
159
|
+
/**
|
|
160
|
+
* register a task that will be executed just before the address space is disposed.
|
|
161
|
+
*/
|
|
162
|
+
registerShutdownTask(task: ShutdownTask): void;
|
|
163
|
+
/**
|
|
164
|
+
* shutdown the address space by executingthe registered shutdown tasks.
|
|
165
|
+
* @see registerShutdownTask, dispose
|
|
166
|
+
*/
|
|
159
167
|
shutdown(): Promise<void>;
|
|
160
168
|
dispose(): void;
|
|
161
169
|
installAlarmsAndConditionsService(): void;
|
package/dist/clone_options.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone_options.js","sourceRoot":"","sources":["../source/clone_options.ts"],"names":[],"mappings":";;;AAgBa,QAAA,kBAAkB,GAAgB;IAC3C,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI;IACtB,SAAS,CAAC,IAAc;QACpB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAC;AAQW,QAAA,qBAAqB,GAAmB;IACjD,KAAK,EAAE,CAAC;IACR,GAAG;QACC,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;IACD,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"clone_options.js","sourceRoot":"","sources":["../source/clone_options.ts"],"names":[],"mappings":";;;AAgBa,QAAA,kBAAkB,GAAgB;IAC3C,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI;IACtB,SAAS,CAAC,IAAc;QACpB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAC;AAQW,QAAA,qBAAqB,GAAmB;IACjD,KAAK,EAAE,CAAC;IACR,GAAG;QACC,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;IACD,oBAAoB,CAAC,aAAuB,EAAE,eAAyB;QACnE,gBAAgB;IACpB,CAAC;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space-base",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.80.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -address-space",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"internet of things"
|
|
47
47
|
],
|
|
48
48
|
"homepage": "http://node-opcua.github.io/",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "bd0e2d787142e2e76de7795990f942ab7ea80e1b"
|
|
50
50
|
}
|
package/source/address_space.ts
CHANGED
|
@@ -19,6 +19,8 @@ import { IHistoricalDataNodeOptions, UAVariable } from "./ua_variable";
|
|
|
19
19
|
import { UAVariableType } from "./ua_variable_type";
|
|
20
20
|
import { UAView } from "./ua_view";
|
|
21
21
|
|
|
22
|
+
export type ShutdownTask = ((this: IAddressSpace) => void) | ((this: IAddressSpace) => Promise<void>);
|
|
23
|
+
|
|
22
24
|
interface UARootFolder_Objects extends UAObject {
|
|
23
25
|
server: UAObject;
|
|
24
26
|
}
|
|
@@ -185,8 +187,15 @@ export interface IAddressSpace {
|
|
|
185
187
|
installHistoricalDataNode(variableNode: UAVariable, options?: IHistoricalDataNodeOptions): void;
|
|
186
188
|
|
|
187
189
|
// -------------- Shutdown helpers
|
|
188
|
-
|
|
190
|
+
/**
|
|
191
|
+
* register a task that will be executed just before the address space is disposed.
|
|
192
|
+
*/
|
|
193
|
+
registerShutdownTask(task: ShutdownTask): void;
|
|
189
194
|
|
|
195
|
+
/**
|
|
196
|
+
* shutdown the address space by executingthe registered shutdown tasks.
|
|
197
|
+
* @see registerShutdownTask, dispose
|
|
198
|
+
*/
|
|
190
199
|
shutdown(): Promise<void>;
|
|
191
200
|
|
|
192
201
|
dispose(): void;
|
package/source/clone_options.ts
CHANGED
|
@@ -32,7 +32,7 @@ export const defaultCloneExtraInfo: CloneExtraInfo = {
|
|
|
32
32
|
pad(this: CloneExtraInfo) {
|
|
33
33
|
return " ".padEnd(this.level * 2);
|
|
34
34
|
},
|
|
35
|
-
registerClonedObject(
|
|
35
|
+
registerClonedObject(_clonedObject: BaseNode, _originalObject: BaseNode): void {
|
|
36
36
|
// nothing to do
|
|
37
37
|
}
|
|
38
38
|
};
|