@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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/template.ts +1 -1
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 =
|
|
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 =
|
|
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
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 =
|
|
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 = {
|