secrez 2.1.10 → 2.1.11-beta.0

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
@@ -370,6 +370,10 @@ Secrez is not intended to compete with password managers, so do not expect it to
370
370
 
371
371
  ## History
372
372
 
373
+ **2.1.11-beta.0**
374
+
375
+ - fix warning "(node:70960) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities" caused by the Git checker
376
+
373
377
  **2.1.10**
374
378
 
375
379
  - add external git change detection to block operations when repository state changes outside of Secrez (e.g., `git pull` in another terminal)
@@ -882,8 +886,8 @@ Thank you for any contributions! 😉
882
886
  ## Test coverage
883
887
 
884
888
  ```
885
- 162 passing (2m)
886
- 2 pending
889
+ 162 passing (1m)
890
+ 1 pending
887
891
 
888
892
  --------------------|---------|----------|---------|---------|--------------------------------------
889
893
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
@@ -939,7 +943,7 @@ All files | 80.07 | 67.69 | 80.91 | 79.96 |
939
943
  Logger.js | 63.63 | 56.25 | 36.84 | 62.79 | ...25,37-49,57,65-69,74,84,88,93,105
940
944
  --------------------|---------|----------|---------|---------|--------------------------------------
941
945
 
942
- > secrez@2.1.10 posttest /Users/francescosullo/Projects/Secrez/secrez/packages/secrez
946
+ > secrez@2.1.11-beta.0 posttest /Users/francescosullo/Projects/Secrez/secrez/packages/secrez
943
947
  > nyc check-coverage --statements 65 --branches 50 --functions 65 --lines 65
944
948
 
945
949
 
package/coverage.report CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- > secrez@2.1.10 test /Users/francescosullo/Projects/Secrez/secrez/packages/secrez
2
+ > secrez@2.1.11-beta.0 test /Users/francescosullo/Projects/Secrez/secrez/packages/secrez
3
3
  > cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha test/*.test.js test/**/*.test.js test/**/**/*.js --exit
4
4
 
5
5
 
@@ -18,17 +18,16 @@
18
18
  #Alias
19
19
  ✓ should return the help
20
20
  ✓ create aliases and lists them
21
- - should chain two commands
22
21
  ✓ rename and delete aliases
23
22
  ✓ should throw if there are errors
24
23
 
25
24
  #Cat
26
25
  ✓ should return the help
27
26
  ✓ should show the content of a file
28
- ✓ should show either one or all the versions of a file (1028ms)
27
+ ✓ should show either one or all the versions of a file (1017ms)
29
28
  ✓ should throw if entry is not a file or file does not exist
30
29
  ✓ should throw if trying to cat a binary file
31
- ✓ should show the content of a Yaml file (1021ms)
30
+ ✓ should show the content of a Yaml file (1026ms)
32
31
 
33
32
  #Cd
34
33
  ✓ should return the help
@@ -47,10 +46,10 @@
47
46
 
48
47
  #Copy
49
48
  ✓ should return the help
50
- ✓ should copy a file to the clipboard (415ms)
51
- ✓ should copy a string to the clipboard (268ms)
52
- ✓ should copy a card to the clipboard (1021ms)
53
- ✓ should return an error if the file does not exist or is a folder (125ms)
49
+ ✓ should copy a file to the clipboard (385ms)
50
+ ✓ should copy a string to the clipboard (250ms)
51
+ ✓ should copy a card to the clipboard (909ms)
52
+ ✓ should return an error if the file does not exist or is a folder (39ms)
54
53
  ✓ should throw if copying to clipboard a binary files
55
54
 
56
55
  #Ds
@@ -66,9 +65,9 @@
66
65
  ✓ should export a file encrypted only for the user itself
67
66
  ✓ should export a binary file to the current local folder
68
67
  ✓ should export an encrypted file to the current local folder
69
- ✓ should export a file and delete it after 1 second (1203ms)
68
+ ✓ should export a file and delete it after 1 second (1204ms)
70
69
  ✓ should return an error if the file does not exist or is a folder
71
- ✓ should export a keystore json file if a private_key exists in the entry (763ms)
70
+ ✓ should export a keystore json file if a private_key exists in the entry (645ms)
72
71
  ✓ should export a cryptoenv file if a private_key exists in the entry
73
72
  ✓ should export a cryptoenv file with entire content when no private_key fields exist and user confirms
74
73
  ✓ should throw error when no private_key fields exist and user declines
@@ -77,19 +76,19 @@
77
76
 
78
77
  #Find
79
78
  ✓ should return the help
80
- ✓ should show find a string in the tree (1021ms)
79
+ ✓ should show find a string in the tree (1020ms)
81
80
  ✓ should find no result without parameters
82
81
  ✓ should skip binary files from search
83
82
 
84
83
  #Git
85
84
  ✓ should return the help
86
- ✓ should show git status when --status is used (3518ms)
87
- ✓ should show git status by default (3580ms)
88
- ✓ should handle conflict risk scenario (5428ms)
85
+ ✓ should show git status when --status is used (3120ms)
86
+ ✓ should show git status by default (3325ms)
87
+ ✓ should handle conflict risk scenario (5067ms)
89
88
  ✓ should handle non-git repository
90
89
  ✓ should allow normal operations in non-git repository
91
90
  Bye bye :o)
92
- ✓ should detect external git changes and block operations (16546ms)
91
+ ✓ should detect external git changes and block operations (14550ms)
93
92
 
94
93
  #Help
95
94
  ✓ should return the help
@@ -152,7 +151,7 @@ Bye bye :o)
152
151
 
153
152
  #Mv
154
153
  ✓ should return the help
155
- ✓ should rename a file (1014ms)
154
+ ✓ should rename a file (1010ms)
156
155
  ✓ should move a file to another folder
157
156
  ✓ should move many files to another folder
158
157
  ✓ should move a file to another subfolder
@@ -161,14 +160,14 @@ Bye bye :o)
161
160
  ✓ should move file to another dataset using wildcards
162
161
  ✓ should move file managing duplicates
163
162
  ✓ should throw if parameters are missed or wrong
164
- ✓ should move files from and to other datasets (1047ms)
163
+ ✓ should move files from and to other datasets (1029ms)
165
164
  ✓ should move the results of a find
166
165
 
167
166
  #Paste
168
167
  ✓ should return the help
169
- ✓ should paste the clipboard content to a new file (50ms)
170
- ✓ should paste the clipboard content to an existent file (94ms)
171
- ✓ should paste a single field to a yml card (71ms)
168
+ ✓ should paste the clipboard content to a new file (39ms)
169
+ ✓ should paste the clipboard content to an existent file (55ms)
170
+ ✓ should paste a single field to a yml card
172
171
 
173
172
  #Pwd
174
173
  ✓ should return the help
@@ -182,7 +181,7 @@ Bye bye :o)
182
181
  ✓ should delete a file with one version
183
182
  ✓ should delete many files usign wildcards
184
183
  ✓ should return errors if wrong parameters
185
- ✓ should delete some versions of a file (1007ms)
184
+ ✓ should delete some versions of a file (1011ms)
186
185
 
187
186
  #Shell
188
187
  ✓ should return the help
@@ -202,13 +201,13 @@ Bye bye :o)
202
201
 
203
202
  #Totp
204
203
  ✓ should return the help
205
- ✓ should totp a file to the clipboard (409ms)
206
- ✓ should read a totp secret from an image and add the totp field to the card (39ms)
204
+ ✓ should totp a file to the clipboard (380ms)
205
+ ✓ should read a totp secret from an image and add the totp field to the card
207
206
  ✓ should read a totp secret from an image and return the secret
208
207
  ✓ should throw if bad image
209
208
  ✓ should throw if missing parameters
210
209
  ✓ should throw if the yaml is malformed
211
- ✓ should read a totp secret from the clipboard (186ms)
210
+ ✓ should read a totp secret from the clipboard (73ms)
212
211
 
213
212
  #Touch
214
213
  ✓ should return the help
@@ -221,7 +220,7 @@ Bye bye :o)
221
220
  ✓ should throw if wrong parameters
222
221
  ✓ should create a file and generate a wallet
223
222
  New file "/folder2/file1" created.
224
- ✓ should generate 5 prefixed wallet (65ms)
223
+ ✓ should generate 5 prefixed wallet (56ms)
225
224
  New file "/folder2/file1" created.
226
225
  ✓ should generate a wallet with mnemonic and 2 keys
227
226
 
@@ -241,8 +240,8 @@ New file "/folder2/file1" created.
241
240
  - should verify that all the scripts exist
242
241
 
243
242
 
244
- 162 passing (2m)
245
- 2 pending
243
+ 162 passing (1m)
244
+ 1 pending
246
245
 
247
246
  --------------------|---------|----------|---------|---------|--------------------------------------
248
247
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
@@ -298,6 +297,6 @@ All files | 80.07 | 67.69 | 80.91 | 79.96 |
298
297
  Logger.js | 63.63 | 56.25 | 36.84 | 62.79 | ...25,37-49,57,65-69,74,84,88,93,105
299
298
  --------------------|---------|----------|---------|---------|--------------------------------------
300
299
 
301
- > secrez@2.1.10 posttest /Users/francescosullo/Projects/Secrez/secrez/packages/secrez
300
+ > secrez@2.1.11-beta.0 posttest /Users/francescosullo/Projects/Secrez/secrez/packages/secrez
302
301
  > nyc check-coverage --statements 65 --branches 50 --functions 65 --lines 65
303
302
 
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "secrez",
3
- "version": "2.1.10",
3
+ "version": "2.1.11-beta.0",
4
4
  "license": "MIT",
5
5
  "nyc": {
6
6
  "include": "src",
7
7
  "exclude": []
8
8
  },
9
9
  "dependencies": {
10
- "@secrez/core": "~1.0.5",
11
- "@secrez/crypto": "~1.0.4",
12
- "@secrez/eth": "~0.0.4",
13
- "@secrez/fs": "~1.0.7",
14
- "@secrez/utils": "~1.0.4",
10
+ "@secrez/core": "~1.0.6",
11
+ "@secrez/crypto": "~1.0.5",
12
+ "@secrez/eth": "~0.0.5",
13
+ "@secrez/fs": "~1.0.8",
14
+ "@secrez/utils": "~1.0.5",
15
15
  "case": "^1.6.3",
16
16
  "chalk": "^3.0.0",
17
17
  "clipboardy": "^2.3.0",