@nine-lab/nine-mu 0.1.80 → 0.1.82

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/nine-mu.js CHANGED
@@ -112,6 +112,7 @@ class NineChat extends HTMLElement {
112
112
  this.attachShadow({ mode: "open" });
113
113
  }
114
114
  async connectedCallback() {
115
+ var _a2;
115
116
  const connectorUrl = this.getAttribute("connector-url") || "http://localhost:3002";
116
117
  __privateSet(this, _service, new NineMuService(connectorUrl));
117
118
  __privateMethod(this, _NineChat_instances, render_fn).call(this);
@@ -122,11 +123,7 @@ class NineChat extends HTMLElement {
122
123
  trace.log(routeUrl);
123
124
  const res2 = await api.post("/nine-mu/source/readFile", { path: routeUrl });
124
125
  trace.log(res2);
125
- const r = await fetch(routeUrl);
126
- if (!r.ok) {
127
- throw new Error(`HTTP error! status: ${r.status}`);
128
- }
129
- const asisSource = await r.json();
126
+ const asisSource = (_a2 = res2.contents) == null ? void 0 : _a2.json();
130
127
  trace.log(asisSource);
131
128
  __privateSet(this, _routes, await __privateGet(this, _service).fetchRoutes(this.getAttribute("route-url")));
132
129
  }
@@ -194,7 +191,7 @@ render_fn = function() {
194
191
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
195
192
  this.shadowRoot.innerHTML = `
196
193
  <style>
197
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.79"}/dist/css/nine-mu.css";
194
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.81"}/dist/css/nine-mu.css";
198
195
  ${customImport}
199
196
  </style>
200
197
  <div class="wrapper">
@@ -26410,7 +26407,7 @@ class NineDiff extends HTMLElement {
26410
26407
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26411
26408
  this.shadowRoot.innerHTML = `
26412
26409
  <style>
26413
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.79"}/dist/css/nine-mu.css";
26410
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.81"}/dist/css/nine-mu.css";
26414
26411
  ${customImport}
26415
26412
  </style>
26416
26413
 
@@ -26520,7 +26517,7 @@ render_fn2 = function() {
26520
26517
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26521
26518
  this.shadowRoot.innerHTML = `
26522
26519
  <style>
26523
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.79"}/dist/css/nine-mu.css";
26520
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.81"}/dist/css/nine-mu.css";
26524
26521
  ${customImport}
26525
26522
  </style>
26526
26523
 
@@ -26559,7 +26556,7 @@ handleCancel_fn = function() {
26559
26556
  };
26560
26557
  customElements.define("nine-diff-popup", NineDiffPopup);
26561
26558
  const NineMu = {
26562
- version: "0.1.79",
26559
+ version: "0.1.81",
26563
26560
  init: (config) => {
26564
26561
  trace.log("🛠️ Nine-Mu Engine initialized", config);
26565
26562
  }