@nine-lab/nine-mu 0.1.83 → 0.1.84

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,7 +112,6 @@ class NineChat extends HTMLElement {
112
112
  this.attachShadow({ mode: "open" });
113
113
  }
114
114
  async connectedCallback() {
115
- var _a2;
116
115
  const connectorUrl = this.getAttribute("connector-url") || "http://localhost:3002";
117
116
  __privateSet(this, _service, new NineMuService(connectorUrl));
118
117
  __privateMethod(this, _NineChat_instances, render_fn).call(this);
@@ -123,8 +122,8 @@ class NineChat extends HTMLElement {
123
122
  trace.log(routeUrl);
124
123
  const res2 = await api.post("/nine-mu/source/readFile", { path: routeUrl });
125
124
  trace.log(res2);
126
- const asisSource = (_a2 = res2.contents) == null ? void 0 : _a2.json();
127
- trace.log(asisSource);
125
+ const jsonData = res2.contents ? JSON.parse(res2.contents) : {};
126
+ trace.log(jsonData);
128
127
  __privateSet(this, _routes, await __privateGet(this, _service).fetchRoutes(this.getAttribute("route-url")));
129
128
  }
130
129
  }
@@ -191,7 +190,7 @@ render_fn = function() {
191
190
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
192
191
  this.shadowRoot.innerHTML = `
193
192
  <style>
194
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.82"}/dist/css/nine-mu.css";
193
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.83"}/dist/css/nine-mu.css";
195
194
  ${customImport}
196
195
  </style>
197
196
  <div class="wrapper">
@@ -26407,7 +26406,7 @@ class NineDiff extends HTMLElement {
26407
26406
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26408
26407
  this.shadowRoot.innerHTML = `
26409
26408
  <style>
26410
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.82"}/dist/css/nine-mu.css";
26409
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.83"}/dist/css/nine-mu.css";
26411
26410
  ${customImport}
26412
26411
  </style>
26413
26412
 
@@ -26517,7 +26516,7 @@ render_fn2 = function() {
26517
26516
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26518
26517
  this.shadowRoot.innerHTML = `
26519
26518
  <style>
26520
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.82"}/dist/css/nine-mu.css";
26519
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.83"}/dist/css/nine-mu.css";
26521
26520
  ${customImport}
26522
26521
  </style>
26523
26522
 
@@ -26556,7 +26555,7 @@ handleCancel_fn = function() {
26556
26555
  };
26557
26556
  customElements.define("nine-diff-popup", NineDiffPopup);
26558
26557
  const NineMu = {
26559
- version: "0.1.82",
26558
+ version: "0.1.83",
26560
26559
  init: (config) => {
26561
26560
  trace.log("🛠️ Nine-Mu Engine initialized", config);
26562
26561
  }