geonodes-web-render 0.1.2 → 0.1.3

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/embed.js CHANGED
@@ -14,7 +14,9 @@ async function b(e) {
14
14
  return new Uint8Array(n);
15
15
  }
16
16
  async function x(e) {
17
- let t = e.trim(), n = y(t.startsWith(v) ? t.slice(13) : t), r = n.length >= 2 && n[0] === 31 && n[1] === 139 ? await b(n) : n;
17
+ let t = e.trim();
18
+ if (t.startsWith("{") || t.startsWith("[")) return t;
19
+ let n = y(t.startsWith(v) ? t.slice(13) : t), r = n.length >= 2 && n[0] === 31 && n[1] === 139 ? await b(n) : n;
18
20
  return new TextDecoder().decode(r);
19
21
  }
20
22
  //#endregion
@@ -1,2 +1,3 @@
1
- /** Decode Tree Clipper asset data (optional "TreeClipper::" prefix + base64, optionally gzipped) to JSON string. */
1
+ /** Decode Tree Clipper asset data (optional "TreeClipper::" prefix + base64, optionally gzipped) to JSON string.
2
+ * Also accepts raw JSON strings (starting with '{' or '[') which are returned as-is. */
2
3
  export declare function decodeTreeClipperPayload(raw: string): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonodes-web-render",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Browser-based viewer for Blender Geometry Nodes exported via Tree Clipper. Renders node trees as a read-only, Blender-styled graph.",
5
5
  "type": "module",
6
6
  "exports": {