@smartbit4all/ng-client 3.1.3 → 3.1.4

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.
@@ -23,6 +23,7 @@ import * as i20 from '@angular/forms';
23
23
  import { FormGroup, FormControl, Validators, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
24
24
  import { ENTER, COMMA } from '@angular/cdk/keycodes';
25
25
  import moment from 'moment';
26
+ import { deepEqual } from 'fast-equals';
26
27
  import * as i3$2 from '@angular/material/form-field';
27
28
  import { MatFormFieldModule } from '@angular/material/form-field';
28
29
  import * as i6 from '@angular/material/autocomplete';
@@ -4987,16 +4988,13 @@ class SmartformwidgetComponent {
4987
4988
  if (obj && typeof obj === 'string') {
4988
4989
  return obj.replace(/\.v[0-9]+$/, '');
4989
4990
  }
4990
- if (obj && typeof obj === 'object') {
4991
- return JSON.stringify(obj);
4992
- }
4993
4991
  return obj;
4994
4992
  }
4995
4993
  // calling this.truncateUri didn't work
4996
4994
  // TODO: use widget.selection.parameter for ignoreUriVersion / strictUriComparison;
4997
4995
  let v1 = convert(o1);
4998
4996
  let v2 = convert(o2);
4999
- return v1 === v2;
4997
+ return deepEqual(v1, v2);
5000
4998
  }
5001
4999
  truncateUri(uri) {
5002
5000
  if (uri && typeof uri === 'string') {