node-opcua-service-subscription 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.
@@ -25,3 +25,4 @@ export declare function isOutsideDeadbandAbsolute(variant1: Variant, variant2: V
25
25
  * @return true if the element is outside deadBand
26
26
  */
27
27
  export declare function isOutsideDeadbandPercent(variant1: Variant, variant2: Variant, deadbandValuePercent: number, range: PseudoRange): boolean;
28
+ //# sourceMappingURL=deadband_checker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deadband_checker.d.ts","sourceRoot":"","sources":["../source/deadband_checker.ts"],"names":[],"mappings":"AAKA,OAAO,EAAY,KAAK,OAAO,EAAoB,MAAM,oBAAoB,CAAC;AAE9E,oBAAY,YAAY;IACpB,IAAI,IAAO;IACX,QAAQ,IAAO;IACf,OAAO,IAAO;IACd,OAAO,OAAS;CACnB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAE3C,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CAChB;AA0GD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAGnF;AACD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAG9G;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACpC,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,OAAO,EACjB,oBAAoB,EAAE,MAAM,EAC5B,KAAK,EAAE,WAAW,GACnB,OAAO,CAsBT"}
@@ -1,28 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeadbandType = void 0;
4
- exports.isOutsideDeadbandNone = isOutsideDeadbandNone;
5
- exports.isOutsideDeadbandAbsolute = isOutsideDeadbandAbsolute;
6
- exports.isOutsideDeadbandPercent = isOutsideDeadbandPercent;
7
1
  /**
8
2
  * @module node-opcua-service-subscription
9
3
  */
10
- const node_opcua_assert_1 = require("node-opcua-assert");
11
- const node_opcua_variant_1 = require("node-opcua-variant");
12
- var DeadbandType;
4
+ import { assert } from "node-opcua-assert";
5
+ import { DataType, VariantArrayType } from "node-opcua-variant";
6
+ export var DeadbandType;
13
7
  (function (DeadbandType) {
14
8
  DeadbandType[DeadbandType["None"] = 0] = "None";
15
9
  DeadbandType[DeadbandType["Absolute"] = 1] = "Absolute";
16
10
  DeadbandType[DeadbandType["Percent"] = 2] = "Percent";
17
11
  DeadbandType[DeadbandType["Invalid"] = 4096] = "Invalid";
18
- })(DeadbandType || (exports.DeadbandType = DeadbandType = {}));
12
+ })(DeadbandType || (DeadbandType = {}));
19
13
  /**
20
14
  * @returns true if the difference between value1 and value2 is greater than absoluteDeadband
21
15
  */
22
16
  function _isOutsideDeadbandScalar(value1, value2, dataType, absoluteDeadband) {
23
17
  let diff;
24
- if (dataType === node_opcua_variant_1.DataType.UInt64 || dataType === node_opcua_variant_1.DataType.Int64) {
25
- // c8 ignore next
18
+ if (dataType === DataType.UInt64 || dataType === DataType.Int64) {
19
+ /* c8 ignore next */
26
20
  if (!(Array.isArray(value1) && Array.isArray(value2))) {
27
21
  throw new Error("Invalid");
28
22
  }
@@ -35,20 +29,20 @@ function _isOutsideDeadbandScalar(value1, value2, dataType, absoluteDeadband) {
35
29
  }
36
30
  }
37
31
  diff = value1[1] - value2[1];
38
- (0, node_opcua_assert_1.assert)(typeof diff === "number" && Number.isFinite(diff));
32
+ assert(typeof diff === "number" && Number.isFinite(diff));
39
33
  return Math.abs(diff) > absoluteDeadband;
40
34
  }
41
- // c8 ignore next
35
+ /* c8 ignore next */
42
36
  if (!(typeof value1 === "number" && typeof value2 === "number")) {
43
37
  throw new Error(`Invalid value in _isOutsideDeadbandScalar > expecting number only but got ${typeof value1} ${typeof value2}`);
44
38
  }
45
39
  diff = value2 - value1;
46
- (0, node_opcua_assert_1.assert)(typeof diff === "number" && Number.isFinite(diff));
40
+ assert(typeof diff === "number" && Number.isFinite(diff));
47
41
  return Math.abs(diff) > absoluteDeadband;
48
42
  }
49
43
  function isOutsideDeadbandVariant(v1, v2, absoluteDeadBand) {
50
- (0, node_opcua_assert_1.assert)(Number.isFinite(absoluteDeadBand));
51
- if (v1.arrayType === node_opcua_variant_1.VariantArrayType.Array || v1.arrayType === node_opcua_variant_1.VariantArrayType.Matrix) {
44
+ assert(Number.isFinite(absoluteDeadBand));
45
+ if (v1.arrayType === VariantArrayType.Array || v1.arrayType === VariantArrayType.Matrix) {
52
46
  // If the Value of the MonitoredItem is an array, then the deadband calculation logic shall be applied to
53
47
  // each element of the array. If an element that requires a DataChange is found, then no further
54
48
  // deadband checking is necessary and the entire array shall be returned.
@@ -68,7 +62,7 @@ function isOutsideDeadbandVariant(v1, v2, absoluteDeadBand) {
68
62
  return false;
69
63
  }
70
64
  else {
71
- (0, node_opcua_assert_1.assert)(v1.arrayType === node_opcua_variant_1.VariantArrayType.Scalar);
65
+ assert(v1.arrayType === VariantArrayType.Scalar);
72
66
  if (v1.dataType !== v2.dataType) {
73
67
  return true;
74
68
  }
@@ -119,7 +113,7 @@ function isOutsideDeadbandVariant(v1, v2, absoluteDeadBand) {
119
113
 
120
114
  * @return true if the element is in deadBand
121
115
  */
122
- function isOutsideDeadbandNone(variant1, variant2) {
116
+ export function isOutsideDeadbandNone(variant1, variant2) {
123
117
  // No Deadband calculation should be applied.
124
118
  return variant1.value !== variant2.value;
125
119
  }
@@ -127,7 +121,7 @@ function isOutsideDeadbandNone(variant1, variant2) {
127
121
 
128
122
  * @return true if the element is in deadBand
129
123
  */
130
- function isOutsideDeadbandAbsolute(variant1, variant2, deadbandValue) {
124
+ export function isOutsideDeadbandAbsolute(variant1, variant2, deadbandValue) {
131
125
  // No Deadband calculation should be applied.
132
126
  return isOutsideDeadbandVariant(variant1, variant2, deadbandValue);
133
127
  }
@@ -135,7 +129,7 @@ function isOutsideDeadbandAbsolute(variant1, variant2, deadbandValue) {
135
129
 
136
130
  * @return true if the element is outside deadBand
137
131
  */
138
- function isOutsideDeadbandPercent(variant1, variant2, deadbandValuePercent, range) {
132
+ export function isOutsideDeadbandPercent(variant1, variant2, deadbandValuePercent, range) {
139
133
  // DeadbandType = PercentDeadband
140
134
  // For this type of deadband the deadbandValue is defined as the percentage of the EURange. That is,
141
135
  // it applies only to AnalogItems with an EURange Property that defines the typical value range for the
@@ -146,7 +140,7 @@ function isOutsideDeadbandPercent(variant1, variant2, deadbandValuePercent, rang
146
140
  // (deadbandValue/100.0) * ((high-low) of EURange)))
147
141
  //
148
142
  // The range of the deadbandValue is from 0.0 to 100.0 Percent.
149
- (0, node_opcua_assert_1.assert)(deadbandValuePercent >= 0 && deadbandValuePercent <= 100);
143
+ assert(deadbandValuePercent >= 0 && deadbandValuePercent <= 100);
150
144
  const valueRange = Math.abs(range.high - range.low);
151
145
  const deadBandValueAbsolute = (deadbandValuePercent / 100.0) * valueRange;
152
146
  // if (isOnEdgeOfRange(variant1, variant2, range, deadBandValueAbsolute)) {
@@ -1 +1 @@
1
- {"version":3,"file":"deadband_checker.js","sourceRoot":"","sources":["../source/deadband_checker.ts"],"names":[],"mappings":";;;AAiIA,sDAGC;AAKD,8DAGC;AAMD,4DA2BC;AA7KD;;GAEG;AACH,yDAA2C;AAE3C,2DAA8E;AAE9E,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,+CAAW,CAAA;IACX,uDAAe,CAAA;IACf,qDAAc,CAAA;IACd,wDAAgB,CAAA;AACpB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AASD;;GAEG;AACH,SAAS,wBAAwB,CAAC,MAAkB,EAAE,MAAkB,EAAE,QAAkB,EAAE,gBAAwB;IAClH,IAAI,IAAY,CAAC;IACjB,IAAI,QAAQ,KAAK,6BAAQ,CAAC,MAAM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AU,CAAC;IAE1E,2EAA2E;IAC3E,mBAAmB;IACnB,IAAI;IAEJ,OAAO,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AAChF,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@
4
4
  export type { CreateMonitoredItemsRequestOptions, CreateSubscriptionRequestOptions, DeleteMonitoredItemsRequestOptions, DeleteSubscriptionsRequestOptions, ModifyMonitoredItemsRequestOptions, ModifySubscriptionRequestOptions, MonitoredItemCreateRequestOptions, MonitoringParametersOptions, PublishRequestOptions, PublishResponseOptions, RepublishRequestOptions, RepublishResponseOptions, SetMonitoringModeRequestOptions, SetPublishingModeRequestOptions, SetTriggeringRequestOptions, TransferSubscriptionsRequestOptions } from "node-opcua-types";
5
5
  export { AggregateFilter, ContentFilterElementResult, ContentFilterResult, CreateMonitoredItemsRequest, CreateMonitoredItemsResponse, CreateSubscriptionRequest, CreateSubscriptionResponse, DataChangeFilter, DataChangeNotification, DataChangeTrigger, DeleteMonitoredItemsRequest, DeleteMonitoredItemsResponse, DeleteSubscriptionsRequest, DeleteSubscriptionsResponse, EventFieldList, EventFilterResult, EventNotificationList, ModifyMonitoredItemsRequest, ModifyMonitoredItemsResponse, ModifySubscriptionRequest, ModifySubscriptionResponse, MonitoredItemCreateRequest, MonitoredItemCreateResult, MonitoredItemModifyRequest, MonitoredItemModifyResult, MonitoredItemNotification, MonitoringMode, MonitoringParameters, NotificationData, NotificationMessage, PublishRequest, PublishResponse, RepublishRequest, RepublishResponse, SetMonitoringModeRequest, SetMonitoringModeResponse, SetPublishingModeRequest, SetPublishingModeResponse, SetTriggeringRequest, SetTriggeringResponse, StatusChangeNotification, SubscriptionAcknowledgement, TransferResult, TransferSubscriptionsRequest, TransferSubscriptionsResponse } from "node-opcua-types";
6
6
  export * from "./deadband_checker.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EACR,kCAAkC,EAClC,gCAAgC,EAChC,kCAAkC,EAClC,iCAAiC,EACjC,kCAAkC,EAClC,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,mCAAmC,EACtC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,eAAe,EACf,0BAA0B,EAC1B,mBAAmB,EACnB,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,EAC3B,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAChC,MAAM,kBAAkB,CAAC;AAE1B,cAAc,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,74 +1,12 @@
1
- "use strict";
2
1
  /**
3
2
  * @module node-opcua-service-subscription
4
3
  */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
- };
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.TransferSubscriptionsResponse = exports.TransferSubscriptionsRequest = exports.TransferResult = exports.SubscriptionAcknowledgement = exports.StatusChangeNotification = exports.SetTriggeringResponse = exports.SetTriggeringRequest = exports.SetPublishingModeResponse = exports.SetPublishingModeRequest = exports.SetMonitoringModeResponse = exports.SetMonitoringModeRequest = exports.RepublishResponse = exports.RepublishRequest = exports.PublishResponse = exports.PublishRequest = exports.NotificationMessage = exports.NotificationData = exports.MonitoringParameters = exports.MonitoringMode = exports.MonitoredItemNotification = exports.MonitoredItemModifyResult = exports.MonitoredItemModifyRequest = exports.MonitoredItemCreateResult = exports.MonitoredItemCreateRequest = exports.ModifySubscriptionResponse = exports.ModifySubscriptionRequest = exports.ModifyMonitoredItemsResponse = exports.ModifyMonitoredItemsRequest = exports.EventNotificationList = exports.EventFilterResult = exports.EventFieldList = exports.DeleteSubscriptionsResponse = exports.DeleteSubscriptionsRequest = exports.DeleteMonitoredItemsResponse = exports.DeleteMonitoredItemsRequest = exports.DataChangeTrigger = exports.DataChangeNotification = exports.DataChangeFilter = exports.CreateSubscriptionResponse = exports.CreateSubscriptionRequest = exports.CreateMonitoredItemsResponse = exports.CreateMonitoredItemsRequest = exports.ContentFilterResult = exports.ContentFilterElementResult = exports.AggregateFilter = void 0;
21
- var node_opcua_types_1 = require("node-opcua-types");
22
- Object.defineProperty(exports, "AggregateFilter", { enumerable: true, get: function () { return node_opcua_types_1.AggregateFilter; } });
23
- Object.defineProperty(exports, "ContentFilterElementResult", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilterElementResult; } });
24
- Object.defineProperty(exports, "ContentFilterResult", { enumerable: true, get: function () { return node_opcua_types_1.ContentFilterResult; } });
25
- Object.defineProperty(exports, "CreateMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.CreateMonitoredItemsRequest; } });
26
- Object.defineProperty(exports, "CreateMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.CreateMonitoredItemsResponse; } });
27
- Object.defineProperty(exports, "CreateSubscriptionRequest", { enumerable: true, get: function () { return node_opcua_types_1.CreateSubscriptionRequest; } });
28
- Object.defineProperty(exports, "CreateSubscriptionResponse", { enumerable: true, get: function () { return node_opcua_types_1.CreateSubscriptionResponse; } });
29
- Object.defineProperty(exports, "DataChangeFilter", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeFilter; } });
30
- Object.defineProperty(exports, "DataChangeNotification", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeNotification; } });
31
- Object.defineProperty(exports, "DataChangeTrigger", { enumerable: true, get: function () { return node_opcua_types_1.DataChangeTrigger; } });
32
- Object.defineProperty(exports, "DeleteMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.DeleteMonitoredItemsRequest; } });
33
- Object.defineProperty(exports, "DeleteMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.DeleteMonitoredItemsResponse; } });
34
- Object.defineProperty(exports, "DeleteSubscriptionsRequest", { enumerable: true, get: function () { return node_opcua_types_1.DeleteSubscriptionsRequest; } });
35
- Object.defineProperty(exports, "DeleteSubscriptionsResponse", { enumerable: true, get: function () { return node_opcua_types_1.DeleteSubscriptionsResponse; } });
36
- Object.defineProperty(exports, "EventFieldList", { enumerable: true, get: function () { return node_opcua_types_1.EventFieldList; } });
37
- Object.defineProperty(exports, "EventFilterResult", { enumerable: true, get: function () { return node_opcua_types_1.EventFilterResult; } });
38
- Object.defineProperty(exports, "EventNotificationList", { enumerable: true, get: function () { return node_opcua_types_1.EventNotificationList; } });
39
- Object.defineProperty(exports, "ModifyMonitoredItemsRequest", { enumerable: true, get: function () { return node_opcua_types_1.ModifyMonitoredItemsRequest; } });
40
- Object.defineProperty(exports, "ModifyMonitoredItemsResponse", { enumerable: true, get: function () { return node_opcua_types_1.ModifyMonitoredItemsResponse; } });
41
- Object.defineProperty(exports, "ModifySubscriptionRequest", { enumerable: true, get: function () { return node_opcua_types_1.ModifySubscriptionRequest; } });
42
- Object.defineProperty(exports, "ModifySubscriptionResponse", { enumerable: true, get: function () { return node_opcua_types_1.ModifySubscriptionResponse; } });
43
- Object.defineProperty(exports, "MonitoredItemCreateRequest", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemCreateRequest; } });
44
- Object.defineProperty(exports, "MonitoredItemCreateResult", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemCreateResult; } });
45
- Object.defineProperty(exports, "MonitoredItemModifyRequest", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemModifyRequest; } });
46
- Object.defineProperty(exports, "MonitoredItemModifyResult", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemModifyResult; } });
47
- Object.defineProperty(exports, "MonitoredItemNotification", { enumerable: true, get: function () { return node_opcua_types_1.MonitoredItemNotification; } });
48
- Object.defineProperty(exports, "MonitoringMode", { enumerable: true, get: function () { return node_opcua_types_1.MonitoringMode; } });
49
- Object.defineProperty(exports, "MonitoringParameters", { enumerable: true, get: function () { return node_opcua_types_1.MonitoringParameters; } });
50
- Object.defineProperty(exports, "NotificationData", { enumerable: true, get: function () { return node_opcua_types_1.NotificationData; } });
51
- Object.defineProperty(exports, "NotificationMessage", { enumerable: true, get: function () { return node_opcua_types_1.NotificationMessage; } });
52
- Object.defineProperty(exports, "PublishRequest", { enumerable: true, get: function () { return node_opcua_types_1.PublishRequest; } });
53
- Object.defineProperty(exports, "PublishResponse", { enumerable: true, get: function () { return node_opcua_types_1.PublishResponse; } });
54
- Object.defineProperty(exports, "RepublishRequest", { enumerable: true, get: function () { return node_opcua_types_1.RepublishRequest; } });
55
- Object.defineProperty(exports, "RepublishResponse", { enumerable: true, get: function () { return node_opcua_types_1.RepublishResponse; } });
56
- Object.defineProperty(exports, "SetMonitoringModeRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetMonitoringModeRequest; } });
57
- Object.defineProperty(exports, "SetMonitoringModeResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetMonitoringModeResponse; } });
58
- Object.defineProperty(exports, "SetPublishingModeRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetPublishingModeRequest; } });
59
- Object.defineProperty(exports, "SetPublishingModeResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetPublishingModeResponse; } });
60
- Object.defineProperty(exports, "SetTriggeringRequest", { enumerable: true, get: function () { return node_opcua_types_1.SetTriggeringRequest; } });
61
- Object.defineProperty(exports, "SetTriggeringResponse", { enumerable: true, get: function () { return node_opcua_types_1.SetTriggeringResponse; } });
62
- Object.defineProperty(exports, "StatusChangeNotification", { enumerable: true, get: function () { return node_opcua_types_1.StatusChangeNotification; } });
63
- Object.defineProperty(exports, "SubscriptionAcknowledgement", { enumerable: true, get: function () { return node_opcua_types_1.SubscriptionAcknowledgement; } });
64
- Object.defineProperty(exports, "TransferResult", { enumerable: true, get: function () { return node_opcua_types_1.TransferResult; } });
65
- Object.defineProperty(exports, "TransferSubscriptionsRequest", { enumerable: true, get: function () { return node_opcua_types_1.TransferSubscriptionsRequest; } });
66
- Object.defineProperty(exports, "TransferSubscriptionsResponse", { enumerable: true, get: function () { return node_opcua_types_1.TransferSubscriptionsResponse; } });
67
- __exportStar(require("./deadband_checker.js"), exports);
68
- const node_opcua_assert_1 = require("node-opcua-assert");
69
- const node_opcua_types_2 = require("node-opcua-types");
70
- (0, node_opcua_assert_1.assert)(node_opcua_types_2.PublishResponse.schema.fields[1].name === "subscriptionId");
71
- node_opcua_types_2.PublishResponse.schema.fields[1].defaultValue = 0xffffffff;
72
- (0, node_opcua_assert_1.assert)(node_opcua_types_2.MonitoringParameters.schema.fields[0].name === "clientHandle");
73
- node_opcua_types_2.MonitoringParameters.schema.fields[0].defaultValue = 0xffffffff;
4
+ export { AggregateFilter, ContentFilterElementResult, ContentFilterResult, CreateMonitoredItemsRequest, CreateMonitoredItemsResponse, CreateSubscriptionRequest, CreateSubscriptionResponse, DataChangeFilter, DataChangeNotification, DataChangeTrigger, DeleteMonitoredItemsRequest, DeleteMonitoredItemsResponse, DeleteSubscriptionsRequest, DeleteSubscriptionsResponse, EventFieldList, EventFilterResult, EventNotificationList, ModifyMonitoredItemsRequest, ModifyMonitoredItemsResponse, ModifySubscriptionRequest, ModifySubscriptionResponse, MonitoredItemCreateRequest, MonitoredItemCreateResult, MonitoredItemModifyRequest, MonitoredItemModifyResult, MonitoredItemNotification, MonitoringMode, MonitoringParameters, NotificationData, NotificationMessage, PublishRequest, PublishResponse, RepublishRequest, RepublishResponse, SetMonitoringModeRequest, SetMonitoringModeResponse, SetPublishingModeRequest, SetPublishingModeResponse, SetTriggeringRequest, SetTriggeringResponse, StatusChangeNotification, SubscriptionAcknowledgement, TransferResult, TransferSubscriptionsRequest, TransferSubscriptionsResponse } from "node-opcua-types";
5
+ export * from "./deadband_checker.js";
6
+ import { assert } from "node-opcua-assert";
7
+ import { MonitoringParameters, PublishResponse } from "node-opcua-types";
8
+ assert(PublishResponse.schema.fields[1].name === "subscriptionId");
9
+ PublishResponse.schema.fields[1].defaultValue = 0xffffffff;
10
+ assert(MonitoringParameters.schema.fields[0].name === "clientHandle");
11
+ MonitoringParameters.schema.fields[0].defaultValue = 0xffffffff;
74
12
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAoBH,qDA8C0B;AA7CtB,mHAAA,eAAe,OAAA;AACf,8HAAA,0BAA0B,OAAA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mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEzE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC;AACnE,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,UAAU,CAAC;AAE3D,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC;AACtE,oBAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "node-opcua-service-subscription",
3
- "version": "2.183.0",
3
+ "type": "module",
4
+ "version": "2.184.0",
4
5
  "description": "pure nodejs OPCUA SDK - module service-subscription",
5
6
  "main": "./dist/index.js",
6
7
  "types": "./dist/index.d.ts",
@@ -15,18 +16,18 @@
15
16
  "node": ">=22.13.0"
16
17
  },
17
18
  "dependencies": {
18
- "node-opcua-assert": "2.183.0",
19
- "node-opcua-types": "2.183.0",
20
- "node-opcua-variant": "2.183.0"
19
+ "node-opcua-assert": "2.184.0",
20
+ "node-opcua-types": "2.184.0",
21
+ "node-opcua-variant": "2.184.0"
21
22
  },
22
23
  "devDependencies": {
23
- "node-opcua-buffer-utils": "2.183.0",
24
- "node-opcua-debug": "2.183.0",
25
- "node-opcua-nodeid": "2.183.0",
26
- "node-opcua-packet-analyzer": "2.183.0",
27
- "node-opcua-secure-channel": "2.183.0",
28
- "node-opcua-service-read": "2.183.0",
29
- "node-opcua-status-code": "2.183.0"
24
+ "node-opcua-buffer-utils": "2.184.0",
25
+ "node-opcua-debug": "2.184.0",
26
+ "node-opcua-nodeid": "2.184.0",
27
+ "node-opcua-packet-analyzer": "2.184.0",
28
+ "node-opcua-secure-channel": "2.184.0",
29
+ "node-opcua-service-read": "2.184.0",
30
+ "node-opcua-status-code": "2.184.0"
30
31
  },
31
32
  "author": "Etienne Rossignon",
32
33
  "license": "MIT",
@@ -43,7 +44,7 @@
43
44
  "internet of things"
44
45
  ],
45
46
  "homepage": "http://node-opcua.github.io/",
46
- "gitHead": "d9a9af54d162f0fbb8d287e168aaeeda2d5c38b7",
47
+ "gitHead": "441a5c63e3a4202eb8de8597acac77a3a49248b7",
47
48
  "files": [
48
49
  "dist",
49
50
  "source"
@@ -25,7 +25,7 @@ export interface PseudoRange {
25
25
  function _isOutsideDeadbandScalar(value1: NumberType, value2: NumberType, dataType: DataType, absoluteDeadband: number): boolean {
26
26
  let diff: number;
27
27
  if (dataType === DataType.UInt64 || dataType === DataType.Int64) {
28
- // c8 ignore next
28
+ /* c8 ignore next */
29
29
  if (!(Array.isArray(value1) && Array.isArray(value2))) {
30
30
  throw new Error("Invalid");
31
31
  }
@@ -41,7 +41,7 @@ function _isOutsideDeadbandScalar(value1: NumberType, value2: NumberType, dataTy
41
41
  assert(typeof diff === "number" && Number.isFinite(diff));
42
42
  return Math.abs(diff) > absoluteDeadband;
43
43
  }
44
- // c8 ignore next
44
+ /* c8 ignore next */
45
45
  if (!(typeof value1 === "number" && typeof value2 === "number")) {
46
46
  throw new Error(
47
47
  `Invalid value in _isOutsideDeadbandScalar > expecting number only but got ${typeof value1} ${typeof value2}`