@my-life-buddies/cli 0.8.0 → 0.10.0
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/README.md +14 -15
- package/dist/bin/buddy.js +8 -0
- package/dist/bin/buddy.js.map +2 -2
- package/dist/bin/core.js +558 -678
- package/dist/bin/core.js.map +4 -4
- package/dist/bin/preview.js +0 -5
- package/dist/bin/preview.js.map +2 -2
- package/dist/web/app.css +0 -8
- package/dist/web/index.html +0 -7
- package/package.json +3 -3
- package/resources/agent-template/package-lock.json +4 -4
- package/resources/agent-template/package.json +1 -1
- package/dist/web/widget-delivery.js +0 -28
package/dist/bin/preview.js
CHANGED
|
@@ -594,7 +594,6 @@ var PreviewController = class {
|
|
|
594
594
|
};
|
|
595
595
|
|
|
596
596
|
// apps/preview/src/server.ts
|
|
597
|
-
import { checkWidgetDelivery } from "./core.js";
|
|
598
597
|
import { randomBytes, timingSafeEqual } from "node:crypto";
|
|
599
598
|
import { readFileSync } from "node:fs";
|
|
600
599
|
import { createServer } from "node:http";
|
|
@@ -624,7 +623,6 @@ var WEB_ASSETS = Object.freeze(/* @__PURE__ */ new Map([
|
|
|
624
623
|
contentType: "text/css; charset=utf-8",
|
|
625
624
|
body: readFileSync(new URL("../web/brand.css", import.meta.url))
|
|
626
625
|
}],
|
|
627
|
-
["/assets/widget-delivery.js", { contentType: "text/javascript; charset=utf-8", body: readFileSync(new URL("../web/widget-delivery.js", import.meta.url)) }],
|
|
628
626
|
["/assets/widgets.js", { contentType: "text/javascript; charset=utf-8", body: readFileSync(new URL("../web/widgets.js", import.meta.url)) }],
|
|
629
627
|
["/assets/widgets.css", { contentType: "text/css; charset=utf-8", body: readFileSync(new URL("../web/widgets.css", import.meta.url)) }],
|
|
630
628
|
["/assets/app.js", {
|
|
@@ -814,9 +812,6 @@ data: ${JSON.stringify(value)}
|
|
|
814
812
|
const asset = WEB_ASSETS.get(url.pathname);
|
|
815
813
|
if (asset) return staticAsset(response, asset);
|
|
816
814
|
}
|
|
817
|
-
if (request.method === "GET" && url.pathname === "/api/widgets/delivery") {
|
|
818
|
-
return json(response, 200, await checkWidgetDelivery(options.controller.projectRoot));
|
|
819
|
-
}
|
|
820
815
|
if (request.method === "GET" && url.pathname === "/api/project") {
|
|
821
816
|
try {
|
|
822
817
|
return json(response, 200, { project: publicProject(await options.controller.project()) });
|