@lokascript/compilation-service 2.7.0 → 2.7.2

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/http.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CompilationService
3
- } from "./chunk-7GECANUT.js";
3
+ } from "./chunk-3FAYOL25.js";
4
4
  import "./chunk-GBPMR66W.js";
5
5
 
6
6
  // src/http.ts
package/dist/index.cjs CHANGED
@@ -6973,6 +6973,13 @@ function isTextFieldElement(el) {
6973
6973
  function isFormElement(el) {
6974
6974
  return el.tagName === "FORM";
6975
6975
  }
6976
+ function ensureDomGlobals() {
6977
+ if (typeof globalThis.Element === "undefined") {
6978
+ globalThis.Element = class {
6979
+ };
6980
+ }
6981
+ return true;
6982
+ }
6976
6983
  function morph(from, to, options = {}) {
6977
6984
  if (typeof to === "string")
6978
6985
  to = parseFragment(to).childNodes;
@@ -39601,6 +39608,7 @@ var init_dist = __esm({
39601
39608
  return _classThis;
39602
39609
  })();
39603
39610
  createResetCommand = createFactory(ResetCommand);
39611
+ ensureDomGlobals();
39604
39612
  SUPPORTS_MOVE_BEFORE = "moveBefore" in Element.prototype;
39605
39613
  ELEMENT_NODE_TYPE = 1;
39606
39614
  TEXT_NODE_TYPE = 3;