@aquiles-ai/renderize 1.8.0 → 1.85.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/index.cjs CHANGED
@@ -95,7 +95,7 @@ function buildTemplate(code) {
95
95
  // the parent has a real origin and can make fetch calls freely.
96
96
  window.fetch = function(url, options = {}) {
97
97
  return new Promise((resolve, reject) => {
98
- const id = crypto.randomUUID();
98
+ const id = Math.random().toString(36).slice(2) + Date.now().toString(36);
99
99
 
100
100
  // Serialize body \u2014 postMessage can't transfer Request objects
101
101
  const serializedOptions = {
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ function buildTemplate(code) {
69
69
  // the parent has a real origin and can make fetch calls freely.
70
70
  window.fetch = function(url, options = {}) {
71
71
  return new Promise((resolve, reject) => {
72
- const id = crypto.randomUUID();
72
+ const id = Math.random().toString(36).slice(2) + Date.now().toString(36);
73
73
 
74
74
  // Serialize body \u2014 postMessage can't transfer Request objects
75
75
  const serializedOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquiles-ai/renderize",
3
- "version": "1.8.0",
3
+ "version": "1.85.0",
4
4
  "description": "Drop-in sandbox component that executes AI-generated React code with zero configuration.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/template.ts CHANGED
@@ -65,7 +65,7 @@ export function buildTemplate(code: string): string {
65
65
  // the parent has a real origin and can make fetch calls freely.
66
66
  window.fetch = function(url, options = {}) {
67
67
  return new Promise((resolve, reject) => {
68
- const id = crypto.randomUUID();
68
+ const id = Math.random().toString(36).slice(2) + Date.now().toString(36);
69
69
 
70
70
  // Serialize body — postMessage can't transfer Request objects
71
71
  const serializedOptions = {