remult 0.23.0-exp.8 → 0.23.0-exp.9
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.
|
@@ -208,6 +208,8 @@ class filterHelper {
|
|
|
208
208
|
}
|
|
209
209
|
isIn(val) {
|
|
210
210
|
val = val.map((x) => this.processVal(x));
|
|
211
|
+
if (val?.length == 1 && val[0] != undefined && val[0] !== null)
|
|
212
|
+
return new Filter((add) => add.isEqualTo(this.metadata, val[0]));
|
|
211
213
|
return new Filter((add) => add.isIn(this.metadata, val));
|
|
212
214
|
}
|
|
213
215
|
}
|
package/package.json
CHANGED
|
@@ -279,6 +279,8 @@ var filterHelper = /** @class */ (function () {
|
|
|
279
279
|
filterHelper.prototype.isIn = function (val) {
|
|
280
280
|
var _this = this;
|
|
281
281
|
val = val.map(function (x) { return _this.processVal(x); });
|
|
282
|
+
if ((val === null || val === void 0 ? void 0 : val.length) == 1 && val[0] != undefined && val[0] !== null)
|
|
283
|
+
return new Filter(function (add) { return add.isEqualTo(_this.metadata, val[0]); });
|
|
282
284
|
return new Filter(function (add) { return add.isIn(_this.metadata, val); });
|
|
283
285
|
};
|
|
284
286
|
return filterHelper;
|