yamlock 1.1.4 → 1.1.6
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 +8 -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,11 @@ 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
|
+
|
|
26
|
+
Plaintext ends here.
|
|
27
|
+
`;
|
|
25
28
|
|
|
26
29
|
const KEYGEN_MIN_LENGTH = 1;
|
|
27
30
|
const KEYGEN_MAX_LENGTH = 4096;
|
|
@@ -542,7 +545,7 @@ export async function runCli(argv = process.argv) {
|
|
|
542
545
|
const { command, file, options } = parsed;
|
|
543
546
|
|
|
544
547
|
if (!command || command === 'help') {
|
|
545
|
-
print(getHelpText().
|
|
548
|
+
print(getHelpText().trimEnd());
|
|
546
549
|
return exit(0);
|
|
547
550
|
}
|
|
548
551
|
|
|
@@ -592,7 +595,7 @@ export async function runCli(argv = process.argv) {
|
|
|
592
595
|
}
|
|
593
596
|
|
|
594
597
|
if (!file) {
|
|
595
|
-
print(getHelpText().
|
|
598
|
+
print(getHelpText().trimEnd());
|
|
596
599
|
return fail('ERR_FILE_REQUIRED', 'A file path is required for this command.');
|
|
597
600
|
}
|
|
598
601
|
|
|
@@ -688,7 +691,7 @@ export async function runCli(argv = process.argv) {
|
|
|
688
691
|
return exit(0);
|
|
689
692
|
}
|
|
690
693
|
|
|
691
|
-
print(getHelpText().
|
|
694
|
+
print(getHelpText().trimEnd());
|
|
692
695
|
return fail('ERR_UNKNOWN_COMMAND', `Unknown command: ${command}`);
|
|
693
696
|
} catch (error) {
|
|
694
697
|
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 the logo, between
|
|
58
|
+
the logo and anchor line, and after the identity block. Keep `yamlock version`
|
|
59
|
+
machine-friendly and do not add the identity treatment to structured errors.
|
|
59
60
|
|
|
60
61
|
### Symbol
|
|
61
62
|
|
package/package.json
CHANGED