@point-hub/papi 0.5.50 → 0.5.51

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -70336,7 +70336,7 @@ var addExactFilter = (filters, field, value) => {
70336
70336
  }
70337
70337
  };
70338
70338
  var addDateRangeFilter = (filters, field, value_from, value_to) => {
70339
- if (value_from?.trim() && value_to?.trim()) {
70339
+ if (value_from?.trim() || value_to?.trim()) {
70340
70340
  const range = {};
70341
70341
  if (value_from?.trim()) {
70342
70342
  range["$gte"] = new Date(value_from?.trim());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@point-hub/papi",
3
- "version": "0.5.50",
3
+ "version": "0.5.51",
4
4
  "description": "Point API Framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",