yamlock 1.1.4 → 1.1.5
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 +0 -3
- package/dist/cli/cli.js +7 -5
- package/docs/brand/identity.md +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -440,9 +440,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for development workflow, available scrip
|
|
|
440
440
|
|
|
441
441
|
## Future work
|
|
442
442
|
|
|
443
|
-
- Safe subtree and wildcard selectors are specified in the
|
|
444
|
-
[path pattern design proposal](docs/design/path-patterns.md). Existing
|
|
445
|
-
`paths` remain exact; the proposed feature is not implemented yet.
|
|
446
443
|
- An async encryption API with bounded scrypt concurrency for large configs.
|
|
447
444
|
- Stricter file-format validation and preservation rules for advanced YAML features.
|
|
448
445
|
|
package/dist/cli/cli.js
CHANGED
|
@@ -20,8 +20,10 @@ import { listSupportedAlgorithms, TESTED_ALGORITHMS } from '../crypto/utils.js';
|
|
|
20
20
|
const require = createRequire(import.meta.url);
|
|
21
21
|
const packageJson = require('../../package.json');
|
|
22
22
|
|
|
23
|
-
const BANNER = `
|
|
24
|
-
|
|
23
|
+
const BANNER = `
|
|
24
|
+
[yamlock]
|
|
25
|
+
Plaintext ends here.
|
|
26
|
+
`;
|
|
25
27
|
|
|
26
28
|
const KEYGEN_MIN_LENGTH = 1;
|
|
27
29
|
const KEYGEN_MAX_LENGTH = 4096;
|
|
@@ -542,7 +544,7 @@ export async function runCli(argv = process.argv) {
|
|
|
542
544
|
const { command, file, options } = parsed;
|
|
543
545
|
|
|
544
546
|
if (!command || command === 'help') {
|
|
545
|
-
print(getHelpText().
|
|
547
|
+
print(getHelpText().trimEnd());
|
|
546
548
|
return exit(0);
|
|
547
549
|
}
|
|
548
550
|
|
|
@@ -592,7 +594,7 @@ export async function runCli(argv = process.argv) {
|
|
|
592
594
|
}
|
|
593
595
|
|
|
594
596
|
if (!file) {
|
|
595
|
-
print(getHelpText().
|
|
597
|
+
print(getHelpText().trimEnd());
|
|
596
598
|
return fail('ERR_FILE_REQUIRED', 'A file path is required for this command.');
|
|
597
599
|
}
|
|
598
600
|
|
|
@@ -688,7 +690,7 @@ export async function runCli(argv = process.argv) {
|
|
|
688
690
|
return exit(0);
|
|
689
691
|
}
|
|
690
692
|
|
|
691
|
-
print(getHelpText().
|
|
693
|
+
print(getHelpText().trimEnd());
|
|
692
694
|
return fail('ERR_UNKNOWN_COMMAND', `Unknown command: ${command}`);
|
|
693
695
|
} catch (error) {
|
|
694
696
|
const structuredCode = typeof error.code === 'string' && error.code.startsWith('ERR_')
|
package/docs/brand/identity.md
CHANGED
|
@@ -54,8 +54,9 @@ outlined wordmark on its own dark surface so it remains legible in light and
|
|
|
54
54
|
dark GitHub/npm themes.
|
|
55
55
|
|
|
56
56
|
Terminal help uses the compact printable treatment `[yamlock]` followed by the
|
|
57
|
-
anchor line `Plaintext ends here
|
|
58
|
-
|
|
57
|
+
anchor line `Plaintext ends here.`, with a blank line before and after the
|
|
58
|
+
identity block. Keep `yamlock version` machine-friendly and do not add the
|
|
59
|
+
identity treatment to structured errors.
|
|
59
60
|
|
|
60
61
|
### Symbol
|
|
61
62
|
|
package/package.json
CHANGED