zam-core 0.15.0 → 0.15.1

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/cli/app.js CHANGED
@@ -7358,7 +7358,7 @@ function unquote(raw) {
7358
7358
  return v;
7359
7359
  }
7360
7360
  function parseFrontmatter(markdown) {
7361
- const lines = markdown.split("\n");
7361
+ const lines = markdown.replace(/^/, "").split(/\r\n|\n/);
7362
7362
  if (lines[0]?.trim() !== "---") {
7363
7363
  throw new Error("frontmatter: file must start with a --- fence");
7364
7364
  }
@@ -7475,7 +7475,7 @@ ${rows}`;
7475
7475
  function appendLog(existing, date, line) {
7476
7476
  const header = `## ${date}`;
7477
7477
  const entry = `- ${line}`;
7478
- const trimmed = existing.trim();
7478
+ const trimmed = existing.replace(/^/, "").replace(/\r\n/g, "\n").trim();
7479
7479
  if (trimmed === "") {
7480
7480
  return `# Log
7481
7481
 
@@ -10741,7 +10741,7 @@ async function readWebLink(url) {
10741
10741
  redirect: "manual",
10742
10742
  signal: controller.signal,
10743
10743
  headers: {
10744
- "User-Agent": "ZAM-Content-Studio/0.15.0"
10744
+ "User-Agent": "ZAM-Content-Studio/0.15.1"
10745
10745
  }
10746
10746
  });
10747
10747
  if (res.status >= 300 && res.status < 400) {