okno 1.0.0-beta.21 → 1.0.0-beta.22

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.
@@ -3,10 +3,10 @@ import { readdir as x, readFile as _e, writeFile as $e } from "node:fs/promises"
3
3
  import { existsSync as _, readFileSync as b, readdirSync as D, statSync as ke, realpathSync as we, writeFileSync as T, mkdirSync as M, unlinkSync as L, renameSync as Se } from "node:fs";
4
4
  import { execSync as ee } from "node:child_process";
5
5
  import { fileURLToPath as be } from "node:url";
6
- import { p as J, b as q, a as ve, e as Oe } from "./encode-DoojdsVU.js";
7
- import { o as je } from "./order-bAkdncZC.js";
6
+ import { p as J } from "./parse-tlTHgSSs.js";
7
+ import { o as ve } from "./order-bAkdncZC.js";
8
8
  import { simpleGit as le } from "simple-git";
9
- import "./acorn-CZBJD705.js";
9
+ import { b as q, a as Oe, e as je } from "./encode-BfJY0Xy5.js";
10
10
  import { applyKeyChanges as ce, setStringsSchema as Te, saveFields as Ae, setLocales as xe, setName as Pe, setUrl as Re, renameSlug as Me, reorderKind as Ee, setLayout as Ne, setCollectionOrder as Ie, setDrafts as We, deleteSchemaEntry as Fe, scaffoldEntry as Le, fieldsToContent as ze, EngineError as Ce } from "./engine/index.js";
11
11
  const Ue = /* @__PURE__ */ new Set([".astro", ".svelte", ".ts", ".tsx", ".js", ".jsx", ".mjs", ".vue"]), Je = /* @__PURE__ */ new Set([
12
12
  "node_modules",
@@ -501,7 +501,7 @@ async function Tt(e, n = /* @__PURE__ */ new Set(), s = !1) {
501
501
  p && c.push(`import __schema from "${r}"`);
502
502
  const h = [];
503
503
  for (const d of u) {
504
- const y = g(a, d), $ = je(await se(y), V, t[d]), k = d.replace(/-/g, "_"), v = s && o.has(d), O = [];
504
+ const y = g(a, d), $ = ve(await se(y), V, t[d]), k = d.replace(/-/g, "_"), v = s && o.has(d), O = [];
505
505
  for (const w of $) {
506
506
  const S = `_${k}_${oe(w)}`, R = V(w), K = g(y, w);
507
507
  if (m.length === 0)
@@ -648,7 +648,7 @@ function j(e) {
648
648
  return { schema: a, header: s };
649
649
  }
650
650
  function at(e, n, s) {
651
- T(g(e, "schema.ts"), ve(n, s));
651
+ T(g(e, "schema.ts"), Oe(n, s));
652
652
  }
653
653
  function it(e, n, s, a, f) {
654
654
  const l = g(e, n), m = new Set(f), u = [];
@@ -719,7 +719,7 @@ async function Pt(e, n) {
719
719
  if (!t || !o) return i(400, { error: "Missing path or content" });
720
720
  const c = E(e, t);
721
721
  if (!c) return i(400, { error: "Invalid path" });
722
- const h = Oe(o, { now: (/* @__PURE__ */ new Date()).toISOString(), author: p || lt(e), created: r });
722
+ const h = je(o, { now: (/* @__PURE__ */ new Date()).toISOString(), author: p || lt(e), created: r });
723
723
  return M(P(c), { recursive: !0 }), N(c), T(c, h), l(t, c), i(200, { ok: !0, commit: { fileSha: "" } });
724
724
  }
725
725
  if (s === "POST" && a === "content/delete") {