drapcode-utility 1.8.0 → 1.8.2

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.
@@ -278,6 +278,7 @@ var queryToMongo = function (query, requiredExternal, externalParams, constants,
278
278
  if (currentUserSetting === void 0) { currentUserSetting = {}; }
279
279
  var key = query.key, field = query.field, value = query.value, fieldType = query.fieldType;
280
280
  if ([drapcode_constant_1.EQUALS, drapcode_constant_1.NOT_EQUAL].includes(key) &&
281
+ typeof value === "string" &&
281
282
  drapcode_constant_1.DateRangeConstant.some(function (cnst) { return value.includes(cnst); })) {
282
283
  var final = (0, date_util_1.getDateRangeValue)(key, field, value);
283
284
  console.log("\n ===final getDateRangeValue", final);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-utility",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -37,9 +37,9 @@
37
37
  "@types/voca": "^1.4.2",
38
38
  "axios": "^1.1.2",
39
39
  "dompurify": "^3.1.7",
40
- "drapcode-constant": "^1.6.1",
41
- "drapcode-logger": "^1.2.8",
42
- "drapcode-redis": "^1.1.7",
40
+ "drapcode-constant": "^1.6.2",
41
+ "drapcode-logger": "^1.2.9",
42
+ "drapcode-redis": "^1.1.8",
43
43
  "exiftool-vendored": "^28.2.1",
44
44
  "express": "^4.17.1",
45
45
  "gm": "^1.25.0",