@pronto-tools-and-more/custom-js-functions 14.20.0 → 14.22.0

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.
package/dist/main.js CHANGED
@@ -493,10 +493,10 @@
493
493
  var getPrimaryCategoryProperty = (content, key) => {
494
494
  try {
495
495
  if (!content) {
496
- return "n/a";
496
+ return "n/a (no content)";
497
497
  }
498
498
  if (Array.isArray(content)) {
499
- return "n/a";
499
+ return "n/a (content is array)";
500
500
  }
501
501
  const primaryCategoryId = content.properties["taxonomy.category.primary"];
502
502
  const categories = content.taxonomies.filter(isCategory);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/custom-js-functions",
3
- "version": "14.20.0",
3
+ "version": "14.22.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",
@@ -5,10 +5,10 @@ const isCategory = (taxonomy) => {
5
5
  export const getPrimaryCategoryProperty = (content, key) => {
6
6
  try {
7
7
  if (!content) {
8
- return "n/a";
8
+ return "n/a (no content)";
9
9
  }
10
10
  if (Array.isArray(content)) {
11
- return "n/a";
11
+ return "n/a (content is array)";
12
12
  }
13
13
  const primaryCategoryId = content.properties["taxonomy.category.primary"];
14
14
  const categories = content.taxonomies.filter(isCategory);