quilltap 4.15.0-dev.2 → 4.16.0-dev.7
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/README.md +26 -13
- package/bin/quilltap.js +88 -110
- package/lib/__tests__/docs-write-base64.test.js +155 -0
- package/lib/__tests__/file-verify-platform.test.js +31 -0
- package/lib/__tests__/find-mount-by-former-name.test.js +60 -0
- package/lib/__tests__/instances-default-json.test.js +18 -0
- package/lib/__tests__/logs-tail-flag.test.js +30 -0
- package/lib/__tests__/maintenance-orphan-sweep.test.js +84 -0
- package/lib/__tests__/migrations-source-ids.test.js +15 -1
- package/lib/db-commands.js +4 -4
- package/lib/db-helpers.js +31 -2
- package/lib/docs-commands.js +45 -11
- package/lib/file-verify-commands.js +20 -3
- package/lib/instances-commands.js +6 -2
- package/lib/instances.js +5 -0
- package/lib/lock-helpers.js +319 -120
- package/lib/logs-commands.js +14 -2
- package/lib/maintenance-commands.js +35 -6
- package/lib/migrations-commands.js +4 -83
- package/lib/migrations-source.js +109 -0
- package/lib/migrations.generated.js +1055 -0
- package/lib/sync-command.js +7 -0
- package/lib/theme-engine.generated.js +47 -47
- package/package.json +3 -3
package/lib/sync-command.js
CHANGED
|
@@ -34,6 +34,7 @@ const {
|
|
|
34
34
|
loadDbKey,
|
|
35
35
|
openMountIndexDb,
|
|
36
36
|
UUID_RE,
|
|
37
|
+
findMountByFormerName,
|
|
37
38
|
} = require('./db-helpers');
|
|
38
39
|
const { isQtapUri, parseQtapUri } = require('./qtap-uri');
|
|
39
40
|
const { formatActionLines, formatSummary, exitCodeFor } = require('./sync-report');
|
|
@@ -178,6 +179,12 @@ function requireMount(db, spec) {
|
|
|
178
179
|
`SELECT * FROM doc_mount_points WHERE LOWER(name) = LOWER(?) ORDER BY name COLLATE NOCASE`
|
|
179
180
|
).all(spec);
|
|
180
181
|
if (rows.length === 0) {
|
|
182
|
+
// No store holds the name now; one may have carried it before a rename.
|
|
183
|
+
const renamed = findMountByFormerName(db, spec);
|
|
184
|
+
if (renamed) {
|
|
185
|
+
console.error(`Note: "${spec}" is a former name of "${renamed.name}".`);
|
|
186
|
+
return renamed;
|
|
187
|
+
}
|
|
181
188
|
console.error(`No document store found with name "${spec}"`);
|
|
182
189
|
process.exit(1);
|
|
183
190
|
}
|