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 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 = `[yamlock]
24
- Plaintext ends here.`;
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().trim());
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().trim());
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().trim());
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_')
@@ -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.`. Keep `yamlock version` machine-friendly and
58
- do not add the identity treatment to structured errors.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yamlock",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "author": "PAVEL TKACHEV (phoenixweiss) <mail@phoenixweiss.me>",
5
5
  "description": "Value-level encryption for YAML/JSON configuration files with CLI + Node.js APIs.",
6
6
  "license": "MIT",