pangea-server 3.3.66 → 3.3.67

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.
@@ -62,6 +62,7 @@ function hasInstancesAndTotalCount(obj) {
62
62
  }
63
63
  async function setImageUrls(data) {
64
64
  const targets = [];
65
+ const visited = new WeakSet();
65
66
  function collect(node) {
66
67
  if (!node)
67
68
  return;
@@ -71,6 +72,9 @@ async function setImageUrls(data) {
71
72
  }
72
73
  if (typeof node !== 'object')
73
74
  return;
75
+ if (visited.has(node))
76
+ return;
77
+ visited.add(node);
74
78
  if (typeof node.image === 'string' && node.image.length)
75
79
  targets.push(node);
76
80
  Object.values(node).forEach(collect);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.66",
4
+ "version": "3.3.67",
5
5
  "files": [
6
6
  "dist"
7
7
  ],