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 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 = `[yamlock]
24
- Plaintext ends here.`;
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().trim());
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().trim());
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().trim());
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_')
@@ -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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yamlock",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
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",