node-opcua-address-space 2.108.0 → 2.110.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/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +4 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/src/base_node_impl.d.ts +2 -2
- package/dist/src/base_node_impl.js +3 -0
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/historical_access/address_space_historical_data_node.js +6 -1
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +1 -1
- package/dist/src/ua_reference_type_impl.d.ts +1 -1
- package/dist/tsconfig_common.tsbuildinfo +1 -1
- package/package.json +37 -37
- package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +1 -1
- package/src/base_node_impl.ts +6 -3
- package/src/historical_access/address_space_historical_data_node.ts +14 -3
- package/src/state_machine/ua_shelving_state_machine_ex.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-address-space",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.110.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module address-space",
|
|
5
5
|
"main": "./dist/src/index_current.js",
|
|
6
6
|
"types": "./dist/source/index.d.ts",
|
|
@@ -16,42 +16,42 @@
|
|
|
16
16
|
"c": "mocha --version"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@types/lodash": "4.14.
|
|
19
|
+
"@types/lodash": "4.14.197",
|
|
20
20
|
"@types/semver": "^7.5.0",
|
|
21
21
|
"async": "^3.2.4",
|
|
22
22
|
"chalk": "4.1.2",
|
|
23
23
|
"dequeue": "^1.0.5",
|
|
24
24
|
"lodash": "4.17.21",
|
|
25
|
-
"node-opcua-address-space-base": "2.
|
|
25
|
+
"node-opcua-address-space-base": "2.110.0",
|
|
26
26
|
"node-opcua-assert": "2.105.0",
|
|
27
|
-
"node-opcua-basic-types": "2.
|
|
28
|
-
"node-opcua-binary-stream": "2.
|
|
29
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
27
|
+
"node-opcua-basic-types": "2.110.0",
|
|
28
|
+
"node-opcua-binary-stream": "2.110.0",
|
|
29
|
+
"node-opcua-client-dynamic-extension-object": "2.110.0",
|
|
30
30
|
"node-opcua-constants": "2.98.1",
|
|
31
|
-
"node-opcua-crypto": "
|
|
32
|
-
"node-opcua-data-access": "2.
|
|
33
|
-
"node-opcua-data-model": "2.
|
|
34
|
-
"node-opcua-data-value": "2.
|
|
35
|
-
"node-opcua-date-time": "2.
|
|
36
|
-
"node-opcua-debug": "2.
|
|
37
|
-
"node-opcua-enum": "2.
|
|
38
|
-
"node-opcua-extension-object": "2.
|
|
39
|
-
"node-opcua-factory": "2.
|
|
40
|
-
"node-opcua-nodeid": "2.
|
|
41
|
-
"node-opcua-nodeset-ua": "2.
|
|
42
|
-
"node-opcua-numeric-range": "2.
|
|
43
|
-
"node-opcua-object-registry": "2.
|
|
44
|
-
"node-opcua-pseudo-session": "2.
|
|
45
|
-
"node-opcua-service-browse": "2.
|
|
46
|
-
"node-opcua-service-call": "2.
|
|
47
|
-
"node-opcua-service-history": "2.
|
|
48
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
49
|
-
"node-opcua-service-write": "2.
|
|
50
|
-
"node-opcua-status-code": "2.
|
|
51
|
-
"node-opcua-types": "2.
|
|
52
|
-
"node-opcua-utils": "2.
|
|
53
|
-
"node-opcua-variant": "2.
|
|
54
|
-
"node-opcua-xml2json": "2.
|
|
31
|
+
"node-opcua-crypto": "4.2.0",
|
|
32
|
+
"node-opcua-data-access": "2.110.0",
|
|
33
|
+
"node-opcua-data-model": "2.110.0",
|
|
34
|
+
"node-opcua-data-value": "2.110.0",
|
|
35
|
+
"node-opcua-date-time": "2.110.0",
|
|
36
|
+
"node-opcua-debug": "2.110.0",
|
|
37
|
+
"node-opcua-enum": "2.110.0",
|
|
38
|
+
"node-opcua-extension-object": "2.110.0",
|
|
39
|
+
"node-opcua-factory": "2.110.0",
|
|
40
|
+
"node-opcua-nodeid": "2.110.0",
|
|
41
|
+
"node-opcua-nodeset-ua": "2.110.0",
|
|
42
|
+
"node-opcua-numeric-range": "2.110.0",
|
|
43
|
+
"node-opcua-object-registry": "2.110.0",
|
|
44
|
+
"node-opcua-pseudo-session": "2.110.0",
|
|
45
|
+
"node-opcua-service-browse": "2.110.0",
|
|
46
|
+
"node-opcua-service-call": "2.110.0",
|
|
47
|
+
"node-opcua-service-history": "2.110.0",
|
|
48
|
+
"node-opcua-service-translate-browse-path": "2.110.0",
|
|
49
|
+
"node-opcua-service-write": "2.110.0",
|
|
50
|
+
"node-opcua-status-code": "2.110.0",
|
|
51
|
+
"node-opcua-types": "2.110.0",
|
|
52
|
+
"node-opcua-utils": "2.110.0",
|
|
53
|
+
"node-opcua-variant": "2.110.0",
|
|
54
|
+
"node-opcua-xml2json": "2.110.0",
|
|
55
55
|
"semver": "^7.5.4",
|
|
56
56
|
"set-prototype-of": "^1.0.0",
|
|
57
57
|
"thenify": "^3.3.1",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"mocha": "^10.2.0",
|
|
62
|
-
"node-opcua-benchmarker": "2.
|
|
63
|
-
"node-opcua-leak-detector": "2.
|
|
64
|
-
"node-opcua-nodesets": "2.
|
|
65
|
-
"node-opcua-packet-analyzer": "2.
|
|
66
|
-
"node-opcua-service-filter": "2.
|
|
67
|
-
"node-opcua-test-fixtures": "2.
|
|
62
|
+
"node-opcua-benchmarker": "2.110.0",
|
|
63
|
+
"node-opcua-leak-detector": "2.110.0",
|
|
64
|
+
"node-opcua-nodesets": "2.110.0",
|
|
65
|
+
"node-opcua-packet-analyzer": "2.110.0",
|
|
66
|
+
"node-opcua-service-filter": "2.110.0",
|
|
67
|
+
"node-opcua-test-fixtures": "2.110.0",
|
|
68
68
|
"should": "^13.2.3",
|
|
69
69
|
"sinon": "^15.2.0",
|
|
70
70
|
"source-map-support": "^0.5.21"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"internet of things"
|
|
85
85
|
],
|
|
86
86
|
"homepage": "http://node-opcua.github.io/",
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "f419b91486436bfd804d5d66d2b77db834a4deaf",
|
|
88
88
|
"files": [
|
|
89
89
|
"dist",
|
|
90
90
|
"distHelpers",
|
|
@@ -49,7 +49,7 @@ export const TwoWeeksDuration = OneDayDuration * 2 * 7;
|
|
|
49
49
|
* of expiration. This alarm automatically returns to normal when the certificate is updated.
|
|
50
50
|
*/
|
|
51
51
|
class UACertificateExpirationAlarmImpl extends UASystemOffNormalAlarmImpl implements UACertificateExpirationAlarmEx {
|
|
52
|
-
private timer:
|
|
52
|
+
private timer: NodeJS.Timeout | null = null;
|
|
53
53
|
|
|
54
54
|
public static instantiate(
|
|
55
55
|
namespace: INamespace,
|
package/src/base_node_impl.ts
CHANGED
|
@@ -178,7 +178,11 @@ export class BaseNodeImpl extends EventEmitter implements BaseNode {
|
|
|
178
178
|
return _private._displayName;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
|
|
181
|
+
|
|
182
|
+
public setDisplayName(value: LocalizedTextLike[] | LocalizedTextLike): void {
|
|
183
|
+
if (!Array.isArray(value)) {
|
|
184
|
+
return this.setDisplayName([value]);
|
|
185
|
+
}
|
|
182
186
|
this._setDisplayName(value);
|
|
183
187
|
/**
|
|
184
188
|
* fires when the displayName is changed.
|
|
@@ -193,8 +197,7 @@ export class BaseNodeImpl extends EventEmitter implements BaseNode {
|
|
|
193
197
|
return _private._description!;
|
|
194
198
|
}
|
|
195
199
|
|
|
196
|
-
public setDescription(value: LocalizedTextLike): void {
|
|
197
|
-
|
|
200
|
+
public setDescription(value: LocalizedTextLike| null): void {
|
|
198
201
|
this._setDescription(value);
|
|
199
202
|
/**
|
|
200
203
|
* fires when the description attribute is changed.
|
|
@@ -30,12 +30,15 @@ import {
|
|
|
30
30
|
UAVariable,
|
|
31
31
|
ContinuationData
|
|
32
32
|
} from "node-opcua-address-space-base";
|
|
33
|
+
import { make_warningLog } from "node-opcua-debug";
|
|
33
34
|
import { ISessionContext } from "node-opcua-address-space-base";
|
|
34
35
|
|
|
35
36
|
import { UAVariableImpl } from "../ua_variable_impl";
|
|
36
37
|
import { AddressSpace } from "../../source/address_space_ts";
|
|
37
38
|
import { AddressSpacePrivate } from "../address_space_private";
|
|
38
39
|
|
|
40
|
+
const warningLog = make_warningLog(__filename);
|
|
41
|
+
|
|
39
42
|
// tslint:disable:no-var-requires
|
|
40
43
|
const Dequeue = require("dequeue");
|
|
41
44
|
|
|
@@ -138,12 +141,20 @@ export class VariableHistorian implements IVariableHistorian {
|
|
|
138
141
|
// ensure that values are set with date increasing
|
|
139
142
|
if (sourceTime.getTime() <= this.lastDate.getTime()) {
|
|
140
143
|
if (!(sourceTime.getTime() === this.lastDate.getTime() && sourcePicoSeconds > this.lastDatePicoSeconds)) {
|
|
141
|
-
|
|
144
|
+
warningLog(
|
|
142
145
|
chalk.red("Warning date not increasing "),
|
|
146
|
+
chalk.cyan("\n node: ", this.node.browseName.toString(), this.node.nodeId.toString()),
|
|
147
|
+
"\n new value = ",
|
|
143
148
|
newDataValue.toString(),
|
|
144
|
-
" last known date = ",
|
|
145
|
-
this.lastDate
|
|
149
|
+
"\n last known date = ",
|
|
150
|
+
this.lastDate,
|
|
151
|
+
"\n last known picoSeconds = ",
|
|
152
|
+
this.lastDatePicoSeconds,
|
|
153
|
+
"\n lastValue = ",
|
|
154
|
+
this._timeline[this._timeline.length - 1]?.toString()
|
|
146
155
|
);
|
|
156
|
+
// artificially increment date by one 100 picoseconds
|
|
157
|
+
newDataValue.sourcePicoseconds++;
|
|
147
158
|
}
|
|
148
159
|
}
|
|
149
160
|
|
|
@@ -26,14 +26,14 @@ const debugLog = make_debugLog(__filename);
|
|
|
26
26
|
const doDebug = checkDebugFlag(__filename);
|
|
27
27
|
|
|
28
28
|
export interface UAShelvedStateMachineHelper {
|
|
29
|
-
_timer: NodeJS.
|
|
29
|
+
_timer: NodeJS.Timeout | null;
|
|
30
30
|
_sheveldTime: Date;
|
|
31
31
|
_unshelvedTime: Date;
|
|
32
32
|
_duration: number;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface UAShelvedStateMachineExImpl extends UAShelvedStateMachineHelper {
|
|
36
|
-
|
|
36
|
+
unshelveTime: UAProperty<number, /*z*/ DataType.Double>;
|
|
37
37
|
unshelved: UAState;
|
|
38
38
|
timedShelved: UAState;
|
|
39
39
|
oneShotShelved: UAState;
|