@jpcasabiancai/cayenne 0.5.18 → 0.5.19

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.
Files changed (2) hide show
  1. package/dist/cli.js +15 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -8196,7 +8196,9 @@ function readFrontmatter(text5) {
8196
8196
  if (block === void 0) return { ok: false };
8197
8197
  const raw = {};
8198
8198
  let list3 = null;
8199
- for (const line of block.split(/\r?\n/)) {
8199
+ const lines = block.split(/\r?\n/);
8200
+ for (let i = 0; i < lines.length; i++) {
8201
+ const line = lines[i] ?? "";
8200
8202
  if (line.trim() === "" || line.trimStart().startsWith("#")) continue;
8201
8203
  const item = ITEM2.exec(line);
8202
8204
  if (item?.[1] !== void 0) {
@@ -8217,6 +8219,18 @@ function readFrontmatter(text5) {
8217
8219
  continue;
8218
8220
  }
8219
8221
  list3 = null;
8222
+ const style = /^([>|])[-+]?$/.exec(rest)?.[1];
8223
+ if (style !== void 0) {
8224
+ const body = [];
8225
+ while (i + 1 < lines.length && /^([ \t]|$)/.test(lines[i + 1] ?? "")) {
8226
+ i++;
8227
+ body.push((lines[i] ?? "").trim());
8228
+ }
8229
+ const value2 = (style === "|" ? body.join("\n") : body.map((l) => l === "" ? "\n" : l).join(" ").replace(/ ?\n ?/g, "\n")).trim();
8230
+ if (value2 === "") return { ok: false };
8231
+ raw[key] = value2;
8232
+ continue;
8233
+ }
8220
8234
  if (rest.startsWith("[")) {
8221
8235
  if (!rest.endsWith("]")) return { ok: false };
8222
8236
  const inner = rest.slice(1, -1).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jpcasabiancai/cayenne",
3
- "version": "0.5.18",
3
+ "version": "0.5.19",
4
4
  "files": [
5
5
  "dist/cli.js"
6
6
  ],