@satori-sh/cli 0.0.30 → 0.0.32

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 CHANGED
@@ -372,16 +372,18 @@ ${instruction}`);
372
372
  const globalScope = globalThis;
373
373
  globalScope.window = window;
374
374
  globalScope.document = document;
375
- globalScope.Element = domWindow.Element;
376
- globalScope.Node = domWindow.Node;
377
- globalScope.Text = domWindow.Text;
378
- globalScope.HTMLElement = domWindow.HTMLElement;
379
- if (domWindow.SVGElement) {
380
- globalScope.SVGElement = domWindow.SVGElement;
381
- }
382
- if (domWindow.SVGSVGElement) {
383
- globalScope.SVGSVGElement = domWindow.SVGSVGElement;
384
- }
375
+ globalScope.Element = domWindow.Element ?? class Element {
376
+ };
377
+ globalScope.Node = domWindow.Node ?? class Node {
378
+ };
379
+ globalScope.Text = domWindow.Text ?? class Text {
380
+ };
381
+ globalScope.HTMLElement = domWindow.HTMLElement ?? class HTMLElement {
382
+ };
383
+ globalScope.SVGElement = domWindow.SVGElement ?? class SVGElement {
384
+ };
385
+ globalScope.SVGSVGElement = domWindow.SVGSVGElement ?? class SVGSVGElement {
386
+ };
385
387
  if (domWindow.navigator) {
386
388
  globalScope.navigator = domWindow.navigator;
387
389
  }
@@ -389,7 +391,7 @@ ${instruction}`);
389
391
  globalScope.getComputedStyle = domWindow.getComputedStyle;
390
392
  }
391
393
  }
392
- const { runInteractiveApp } = await import("./ui-OEY6KRG2.js");
394
+ const { runInteractiveApp } = await import("./ui-4LVANHF6.js");
393
395
  await runInteractiveApp({
394
396
  initialPrompt,
395
397
  options,