node-opcua-address-space-base 2.78.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.
@@ -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
- registerShutdownTask(task: (this: IAddressSpace) => void): void;
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;
@@ -12,7 +12,7 @@ exports.defaultCloneExtraInfo = {
12
12
  pad() {
13
13
  return " ".padEnd(this.level * 2);
14
14
  },
15
- registerClonedObject(clonedObject, originalObject) {
15
+ registerClonedObject(_clonedObject, _originalObject) {
16
16
  // nothing to do
17
17
  }
18
18
  };
@@ -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,YAAsB,EAAE,cAAwB;QACjE,gBAAgB;IACpB,CAAC;CACJ,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.78.0",
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",
@@ -16,20 +16,20 @@
16
16
  "c": "mocha --version"
17
17
  },
18
18
  "dependencies": {
19
- "@types/lodash": "4.14.184",
20
- "node-opcua-basic-types": "2.77.0",
19
+ "@types/lodash": "4.14.185",
20
+ "node-opcua-basic-types": "2.79.0",
21
21
  "node-opcua-constants": "2.77.0",
22
22
  "node-opcua-crypto": "^1.11.0",
23
- "node-opcua-data-model": "2.78.0",
24
- "node-opcua-data-value": "2.78.0",
23
+ "node-opcua-data-model": "2.79.0",
24
+ "node-opcua-data-value": "2.79.0",
25
25
  "node-opcua-date-time": "2.77.0",
26
- "node-opcua-extension-object": "2.78.0",
27
- "node-opcua-nodeid": "2.77.0",
28
- "node-opcua-numeric-range": "2.78.0",
29
- "node-opcua-schemas": "2.78.0",
26
+ "node-opcua-extension-object": "2.79.0",
27
+ "node-opcua-nodeid": "2.79.0",
28
+ "node-opcua-numeric-range": "2.79.0",
29
+ "node-opcua-schemas": "2.79.0",
30
30
  "node-opcua-status-code": "2.77.0",
31
- "node-opcua-types": "2.78.0",
32
- "node-opcua-variant": "2.78.0"
31
+ "node-opcua-types": "2.79.0",
32
+ "node-opcua-variant": "2.79.0"
33
33
  },
34
34
  "author": "Etienne Rossignon",
35
35
  "license": "MIT",
@@ -46,5 +46,5 @@
46
46
  "internet of things"
47
47
  ],
48
48
  "homepage": "http://node-opcua.github.io/",
49
- "gitHead": "31c6eee3c51f52427584364fff2fdb07bbac65be"
49
+ "gitHead": "bd0e2d787142e2e76de7795990f942ab7ea80e1b"
50
50
  }
@@ -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
- registerShutdownTask(task: (this: IAddressSpace) => void): void;
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;
@@ -32,7 +32,7 @@ export const defaultCloneExtraInfo: CloneExtraInfo = {
32
32
  pad(this: CloneExtraInfo) {
33
33
  return " ".padEnd(this.level * 2);
34
34
  },
35
- registerClonedObject(clonedObject: BaseNode, originalObject: BaseNode): void {
35
+ registerClonedObject(_clonedObject: BaseNode, _originalObject: BaseNode): void {
36
36
  // nothing to do
37
37
  }
38
38
  };