drapcode-utility 1.5.9 → 1.6.1

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.
@@ -411,7 +411,7 @@ var parseValueFromData = function (data, fieldName) {
411
411
  return item[prefix_1];
412
412
  });
413
413
  }
414
- if (stack && !stack[prefix_1]) {
414
+ if (stack && stack[prefix_1] === undefined) {
415
415
  stack[prefix_1] = "";
416
416
  }
417
417
  stack = stack[prefix_1];
@@ -427,7 +427,7 @@ var parseValueFromData = function (data, fieldName) {
427
427
  if (value && Array.isArray(value) && typeof value[0] === "string") {
428
428
  return value.join(", ");
429
429
  }
430
- if (value && typeof value === "number") {
430
+ if (typeof value !== undefined && typeof value === "number") {
431
431
  return value.toString();
432
432
  }
433
433
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-utility",
3
- "version": "1.5.9",
3
+ "version": "1.6.1",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "dompurify": "^3.1.7",
40
40
  "drapcode-constant": "^1.4.9",
41
41
  "drapcode-logger": "^1.1.9",
42
- "drapcode-redis": "^1.0.6",
42
+ "drapcode-redis": "^1.0.7",
43
43
  "exiftool-vendored": "^28.2.1",
44
44
  "express": "^4.17.1",
45
45
  "gm": "^1.25.0",