@satori-sh/cli 0.0.28 → 0.0.29
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.js +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -369,6 +369,13 @@ ${instruction}`);
|
|
|
369
369
|
globalThis.Element = class Element {
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
+
if (typeof globalThis.document === "undefined") {
|
|
373
|
+
globalThis.document = {
|
|
374
|
+
createElement: () => ({}),
|
|
375
|
+
createElementNS: () => ({}),
|
|
376
|
+
createTextNode: () => ({})
|
|
377
|
+
};
|
|
378
|
+
}
|
|
372
379
|
const { runInteractiveApp } = await import("./ui-OEY6KRG2.js");
|
|
373
380
|
await runInteractiveApp({
|
|
374
381
|
initialPrompt,
|