node-opcua-address-space 2.174.0 → 2.175.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-address-space",
3
- "version": "2.174.0",
3
+ "version": "2.175.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",
@@ -80,7 +80,7 @@
80
80
  "internet of things"
81
81
  ],
82
82
  "homepage": "http://node-opcua.github.io/",
83
- "gitHead": "011657a3a4805ad106df7381c24ed84e2a18d8f1",
83
+ "gitHead": "b15c534b0f03502d30c49934c36291368bdacb80",
84
84
  "files": [
85
85
  "dist",
86
86
  "distHelpers",
@@ -216,18 +216,18 @@ export class UATwoStateVariableImpl extends UAVariableImplT<LocalizedText, DataT
216
216
  assert(typeof options.trueState === "string");
217
217
  assert(typeof options.falseState === "string");
218
218
 
219
- if (this.falseState) {
220
- this.falseState.setValueFromSource({
219
+ if (this.trueState) {
220
+ this.trueState.setValueFromSource({
221
221
  dataType: DataType.LocalizedText,
222
- value: coerceLocalizedText(options.falseState)
222
+ value: coerceLocalizedText(options.trueState)
223
223
  });
224
224
  } else {
225
225
  this._trueState = coerceLocalizedText(options.trueState)?.text!;
226
226
  }
227
- if (this.trueState) {
228
- this.trueState.setValueFromSource({
227
+ if (this.falseState) {
228
+ this.falseState.setValueFromSource({
229
229
  dataType: DataType.LocalizedText,
230
- value: coerceLocalizedText(options.trueState)
230
+ value: coerceLocalizedText(options.falseState)
231
231
  });
232
232
  } else {
233
233
  this._falseState = coerceLocalizedText(options.falseState)?.text!;