@trudb/tru-common-lib 0.0.262 → 0.0.264

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.
@@ -670,7 +670,7 @@ class TruPredicate {
670
670
  };
671
671
  if (typeof field === 'string') {
672
672
  var args = propertyQueryPath?.slice(0);
673
- args[args.length - 1] += field;
673
+ args[0] += field;
674
674
  args.push(operator);
675
675
  args.push(value);
676
676
  this._breezePredicate = new breeze.Predicate(args);
@@ -787,7 +787,7 @@ class TruPropertyConfigZipCode extends TruPropertyConfigBase {
787
787
  class TruQueryPredicateManager {
788
788
  constructor(propertyQueryPath, predicateName, predicateMap) {
789
789
  this._predicate = null;
790
- this._propertyQueryPath = null;
790
+ this._propertyQueryPath = [];
791
791
  this._predicateName = '';
792
792
  this._predicateMap = {};
793
793
  this.setPredicate = (queryPredicate) => {
@@ -808,12 +808,6 @@ class TruQueryPredicateManager {
808
808
  this.clear = () => {
809
809
  this.setPredicate(null);
810
810
  };
811
- //set = (queryPredicate: TruPredicate) => {
812
- // if (this._predicate !== queryPredicate && this._predicateMap !== null) {
813
- // this._predicate = queryPredicate;
814
- // this._predicateMap[this._predicateName] = this._predicate === null ? null : this._predicate;
815
- // }
816
- //}
817
811
  /**
818
812
  * Returns a new query predicate.
819
813
  *
@@ -821,7 +815,7 @@ class TruQueryPredicateManager {
821
815
  * @param {string} operator - Name of the predicate operator.
822
816
  * @param {*} value - Literal value.
823
817
  */
824
- this.create = (field, operator, value, overQuoted) => {
818
+ this.create = (field, operator, value, overQuoted = false) => {
825
819
  return new TruPredicate(field, operator, value, this._propertyQueryPath, overQuoted)._breezePredicate;
826
820
  };
827
821
  this.set = (fieldOrPredicate, operator, value, overQuoted = false) => {