zam-core 0.15.0 → 0.15.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.
@@ -9088,7 +9088,7 @@ function unquote(raw) {
9088
9088
  return v;
9089
9089
  }
9090
9090
  function parseFrontmatter(markdown) {
9091
- const lines = markdown.split("\n");
9091
+ const lines = markdown.replace(/^/, "").split(/\r\n|\n/);
9092
9092
  if (lines[0]?.trim() !== "---") {
9093
9093
  throw new Error("frontmatter: file must start with a --- fence");
9094
9094
  }
@@ -9205,7 +9205,7 @@ ${rows}`;
9205
9205
  function appendLog(existing, date, line) {
9206
9206
  const header = `## ${date}`;
9207
9207
  const entry = `- ${line}`;
9208
- const trimmed = existing.trim();
9208
+ const trimmed = existing.replace(/^/, "").replace(/\r\n/g, "\n").trim();
9209
9209
  if (trimmed === "") {
9210
9210
  return `# Log
9211
9211
 
@@ -12251,7 +12251,7 @@ async function readWebLink(url) {
12251
12251
  redirect: "manual",
12252
12252
  signal: controller.signal,
12253
12253
  headers: {
12254
- "User-Agent": "ZAM-Content-Studio/0.15.0"
12254
+ "User-Agent": "ZAM-Content-Studio/0.15.2"
12255
12255
  }
12256
12256
  });
12257
12257
  if (res.status >= 300 && res.status < 400) {