@typinghare/trick 2.0.0 → 2.0.1
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/dist/app.js +3 -3
- package/dist/config.js +1 -1
- package/dist/encrypt.js +2 -2
- package/package.json +1 -1
- package/src/app.ts +3 -3
package/dist/app.js
CHANGED
|
@@ -6,12 +6,12 @@ import chalk from 'chalk';
|
|
|
6
6
|
import { getPassphrase } from './passphrase.js';
|
|
7
7
|
import { resolve_error } from './error.js';
|
|
8
8
|
const program = new Command();
|
|
9
|
-
program.version('2.0.
|
|
9
|
+
program.version('2.0.1');
|
|
10
10
|
program.description('Save credential files to remote safely and easily.');
|
|
11
11
|
program
|
|
12
12
|
.command('add')
|
|
13
13
|
.description('Add files to a target.')
|
|
14
|
-
.argument('<
|
|
14
|
+
.argument('<target>', 'The name of the target')
|
|
15
15
|
.argument('[files...]', 'Files that are encrypted')
|
|
16
16
|
.action(async (targetName, files) => {
|
|
17
17
|
await updateConfig((config) => {
|
|
@@ -29,7 +29,7 @@ program
|
|
|
29
29
|
program
|
|
30
30
|
.command('remove')
|
|
31
31
|
.description('Remove files from a target.')
|
|
32
|
-
.argument('<
|
|
32
|
+
.argument('<target>', 'The name of the target')
|
|
33
33
|
.argument('[files...]', 'Files to remove')
|
|
34
34
|
.option('-t, --target', 'Remove the target instead.')
|
|
35
35
|
.action(async (targetName, files, options) => {
|
package/dist/config.js
CHANGED
package/dist/encrypt.js
CHANGED
|
@@ -30,7 +30,7 @@ export async function encryptFile(srcFilePath, destFilePath, passphrase, iterati
|
|
|
30
30
|
'-salt',
|
|
31
31
|
'-pbkdf2',
|
|
32
32
|
'-iter',
|
|
33
|
-
iteration_count,
|
|
33
|
+
Number(iteration_count),
|
|
34
34
|
'-in',
|
|
35
35
|
srcFilePath,
|
|
36
36
|
'-out',
|
|
@@ -81,7 +81,7 @@ export async function decryptFile(srcFilePath, destFilePath, passphrase, iterati
|
|
|
81
81
|
'-salt',
|
|
82
82
|
'-pbkdf2',
|
|
83
83
|
'-iter',
|
|
84
|
-
iteration_count,
|
|
84
|
+
Number(iteration_count),
|
|
85
85
|
'-in',
|
|
86
86
|
destFilePath,
|
|
87
87
|
'-out',
|
package/package.json
CHANGED
package/src/app.ts
CHANGED
|
@@ -7,13 +7,13 @@ import { getPassphrase } from './passphrase.js'
|
|
|
7
7
|
import { resolve_error } from './error.js'
|
|
8
8
|
|
|
9
9
|
const program = new Command()
|
|
10
|
-
program.version('2.0.
|
|
10
|
+
program.version('2.0.1')
|
|
11
11
|
program.description('Save credential files to remote safely and easily.')
|
|
12
12
|
|
|
13
13
|
program
|
|
14
14
|
.command('add')
|
|
15
15
|
.description('Add files to a target.')
|
|
16
|
-
.argument('<
|
|
16
|
+
.argument('<target>', 'The name of the target')
|
|
17
17
|
.argument('[files...]', 'Files that are encrypted')
|
|
18
18
|
.action(async (targetName: string, files: string[]): Promise<void> => {
|
|
19
19
|
await updateConfig((config) => {
|
|
@@ -32,7 +32,7 @@ program
|
|
|
32
32
|
program
|
|
33
33
|
.command('remove')
|
|
34
34
|
.description('Remove files from a target.')
|
|
35
|
-
.argument('<
|
|
35
|
+
.argument('<target>', 'The name of the target')
|
|
36
36
|
.argument('[files...]', 'Files to remove')
|
|
37
37
|
.option('-t, --target', 'Remove the target instead.')
|
|
38
38
|
.action(
|