yamlite 0.45.0 → 0.45.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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { B as loopbackHosts, L as createHandler, V as check, a as query, c as exportSite, i as formatTable, n as formatCsv, o as generateConfig, r as formatJson, s as init, t as open, z as isLoopback } from "./src-EgLryo0T.mjs";
3
- import { n as guide, r as envKeys, t as createWorkspace } from "./workspace-Ba4Q66xr.mjs";
2
+ import { B as loopbackHosts, L as createHandler, V as check, a as query, c as exportSite, i as formatTable, n as formatCsv, o as generateConfig, r as formatJson, s as init, t as open, z as isLoopback } from "./src-CAiXSCwK.mjs";
3
+ import { n as guide, r as envKeys, t as createWorkspace } from "./workspace-BFppcWl_.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import { relative, resolve } from "node:path";
6
6
  import { homedir } from "node:os";
package/dist/core.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { E as worthShowing, G as readsFile, H as CONFIG_NAMES, J as MAX_PAGE_FILE_BYTES, Q as normalizeFilePath, R as HttpError, T as fieldChanges, V as check, W as parseConfig, Z as fileGranted, a as query, c as exportSite, g as templatePath, i as formatTable, n as formatCsv, o as generateConfig, p as ReviewRefused, q as DENIED_FILES, r as formatJson, s as init, t as open, w as describeChange } from "./src-EgLryo0T.mjs";
2
- import { t as createWorkspace } from "./workspace-Ba4Q66xr.mjs";
1
+ import { E as worthShowing, G as readsFile, H as CONFIG_NAMES, J as MAX_PAGE_FILE_BYTES, Q as normalizeFilePath, R as HttpError, T as fieldChanges, V as check, W as parseConfig, Z as fileGranted, a as query, c as exportSite, g as templatePath, i as formatTable, n as formatCsv, o as generateConfig, p as ReviewRefused, q as DENIED_FILES, r as formatJson, s as init, t as open, w as describeChange } from "./src-CAiXSCwK.mjs";
2
+ import { t as createWorkspace } from "./workspace-BFppcWl_.mjs";
3
3
  export { CONFIG_NAMES, DENIED_FILES, HttpError, MAX_PAGE_FILE_BYTES, ReviewRefused, check, createWorkspace, describeChange, exportSite, fieldChanges, fileGranted, formatCsv, formatJson, formatTable, generateConfig, init, normalizeFilePath, open, parseConfig, query, readsFile, templatePath, worthShowing };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { V as check, c as exportSite, n as formatCsv, r as formatJson, i as formatTable, o as generateConfig, s as init, t as open, a as query } from "./src-EgLryo0T.mjs";
1
+ export { V as check, c as exportSite, n as formatCsv, r as formatJson, i as formatTable, o as generateConfig, s as init, t as open, a as query } from "./src-CAiXSCwK.mjs";
@@ -1,7 +1,7 @@
1
1
  import { basename, delimiter, dirname, extname, isAbsolute, join, matchesGlob, normalize, posix, relative, resolve, sep } from "node:path";
2
2
  import { accessSync, chmodSync, constants, copyFileSync, cpSync, createReadStream, existsSync, linkSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, rmdirSync, statSync, unlinkSync, writeFileSync } from "node:fs";
3
3
  import { homedir, tmpdir } from "node:os";
4
- import { Document, Scalar, isMap, isNode, isScalar, isSeq, parse, parseDocument, stringify } from "yaml";
4
+ import { Document, Scalar, isMap, isNode, isScalar, isSeq, parse, parseAllDocuments, parseDocument, stringify } from "yaml";
5
5
  import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
6
6
  import { DatabaseSync, constants as constants$1 } from "node:sqlite";
7
7
  import { watch } from "chokidar";
@@ -1324,6 +1324,8 @@ function notAList(path) {
1324
1324
  } catch {
1325
1325
  return false;
1326
1326
  }
1327
+ const docs = parseAllDocuments(text);
1328
+ if (Array.isArray(docs) && docs.length > 1) return true;
1327
1329
  const doc = parseDocument(text);
1328
1330
  return doc.errors.length === 0 && doc.contents !== null && !isSeq(doc.contents);
1329
1331
  }
@@ -1,4 +1,4 @@
1
- import { $ as declaredViews, A as EventHub, C as which, D as PageSql, F as toWire, I as Router, K as resolveConfig, M as ProposalStore, N as readRecord, O as isRead, P as assertSynced, R as HttpError, S as gitStatus, U as configPath, V as check, X as entryCovers, Y as deniedFile, Z as fileGranted, _ as DIFF_LIMIT, b as gitDiff, d as validateNewTable, et as Store, f as ownerOf, h as STEP_KINDS, j as deniedFiles, k as statementCount, l as ROUTES, m as localDriver, t as open, tt as COLUMN_TYPES, u as createTable, v as ghReady, x as gitLog, y as gitBranches } from "./src-EgLryo0T.mjs";
1
+ import { $ as declaredViews, A as EventHub, C as which, D as PageSql, F as toWire, I as Router, K as resolveConfig, M as ProposalStore, N as readRecord, O as isRead, P as assertSynced, R as HttpError, S as gitStatus, U as configPath, V as check, X as entryCovers, Y as deniedFile, Z as fileGranted, _ as DIFF_LIMIT, b as gitDiff, d as validateNewTable, et as Store, f as ownerOf, h as STEP_KINDS, j as deniedFiles, k as statementCount, l as ROUTES, m as localDriver, t as open, tt as COLUMN_TYPES, u as createTable, v as ghReady, x as gitLog, y as gitBranches } from "./src-CAiXSCwK.mjs";
2
2
  import { dirname, relative, resolve, sep } from "node:path";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { randomBytes } from "node:crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yamlite",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "description": "Sync YAML files and SQLite in both directions",
5
5
  "keywords": [
6
6
  "cli",