secrez 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
@@ -371,6 +371,10 @@ Secrez is not intended to compete with password managers, so do not expect it to
371
371
 
372
372
  ## History
373
373
 
374
+ **1.1.5**
375
+
376
+ - fix touch's help showing wrong, temporary options, changed during the development :-(
377
+
374
378
  **1.1.4**
375
379
 
376
380
  - add clear screen after 180 seconds to avoid that the user forgot its terminal open and accidentally shares it while sharing the screen during meetings — it happened to me :-(
package/coverage.report CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- > secrez@1.1.4 test /Users/francescosullo/Projects/Secrez/secrez/packages/secrez
2
+ > secrez@1.1.5 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
 
@@ -32,7 +32,7 @@
32
32
  ✓ should show either one or all the versions of a file (1021ms)
33
33
  ✓ should throw if entry is not a file or file does not exist
34
34
  ✓ should throw if trying to cat a binary file
35
- ✓ should show the content of a Yaml file (1023ms)
35
+ ✓ should show the content of a Yaml file (1033ms)
36
36
 
37
37
  #Cd
38
38
  ✓ should return the help
@@ -41,7 +41,7 @@
41
41
 
42
42
  #Chat
43
43
  ✓ should return the help
44
- ✓ should run the chat if the courier is ready (164ms)
44
+ ✓ should run the chat if the courier is ready (168ms)
45
45
 
46
46
  #Contacts
47
47
  ✓ should return the help
@@ -55,17 +55,17 @@
55
55
 
56
56
  #Copy
57
57
  ✓ should return the help
58
- ✓ should copy a file to the clipboard (376ms)
58
+ ✓ should copy a file to the clipboard (391ms)
59
59
  ✓ should copy a string to the clipboard (246ms)
60
- ✓ should copy a card to the clipboard (855ms)
60
+ ✓ should copy a card to the clipboard (889ms)
61
61
  ✓ should return an error if the file does not exist or is a folder
62
62
  ✓ should throw if copying to clipboard a binary files
63
63
 
64
64
  #Courier
65
65
  ✓ should return the help
66
66
  ✓ should check if it is ready
67
- ✓ should set up the courier (140ms)
68
- ✓ should set up the courier and get the default message when is already set up (144ms)
67
+ ✓ should set up the courier (143ms)
68
+ ✓ should set up the courier and get the default message when is already set up (145ms)
69
69
 
70
70
  #Ds
71
71
  ✓ should return the help
@@ -79,13 +79,13 @@
79
79
  ✓ should export a file to the current local folder
80
80
  ✓ should export a binary file to the current local folder
81
81
  ✓ should export an encrypted file to the current local folder
82
- ✓ should export a file and delete it after 1 second (1205ms)
82
+ ✓ should export a file and delete it after 1 second (1206ms)
83
83
  ✓ should return an error if the file does not exist or is a folder
84
- ✓ should export a keystore json file if a private_key exists in the entry (726ms)
84
+ ✓ should export a keystore json file if a private_key exists in the entry (716ms)
85
85
 
86
86
  #Find
87
87
  ✓ should return the help
88
- ✓ should show find a string in the tree (1031ms)
88
+ ✓ should show find a string in the tree (1034ms)
89
89
  ✓ should find no result without parameters
90
90
  ✓ should skip binary files from search
91
91
 
@@ -150,7 +150,7 @@
150
150
 
151
151
  #Mv
152
152
  ✓ should return the help
153
- ✓ should rename a file (1009ms)
153
+ ✓ should rename a file (1012ms)
154
154
  ✓ should move a file to another folder
155
155
  ✓ should move many files to another folder
156
156
  ✓ should move a file to another subfolder
@@ -159,14 +159,14 @@
159
159
  ✓ should move file to another dataset using wildcards
160
160
  ✓ should move file managing duplicates
161
161
  ✓ should throw if parameters are missed or wrong
162
- ✓ should move files from and to other datasets (1027ms)
162
+ ✓ should move files from and to other datasets (1013ms)
163
163
  ✓ should move the results of a find
164
164
 
165
165
  #Paste
166
166
  ✓ should return the help
167
- ✓ should paste the clipboard content to a new file (51ms)
168
- ✓ should paste the clipboard content to an existent file (71ms)
169
- ✓ should paste a single field to a yml card (63ms)
167
+ ✓ should paste the clipboard content to a new file (82ms)
168
+ ✓ should paste the clipboard content to an existent file (89ms)
169
+ ✓ should paste a single field to a yml card (57ms)
170
170
 
171
171
  #Pwd
172
172
  ✓ should return the help
@@ -180,7 +180,7 @@
180
180
  ✓ should delete a file with one version
181
181
  ✓ should delete many files usign wildcards
182
182
  ✓ should return errors if wrong parameters
183
- ✓ should delete some versions of a file (1011ms)
183
+ ✓ should delete some versions of a file (1009ms)
184
184
 
185
185
  #Shell
186
186
  ✓ should return the help
@@ -196,13 +196,13 @@
196
196
 
197
197
  #Totp
198
198
  ✓ should return the help
199
- ✓ should totp a file to the clipboard (365ms)
200
- ✓ should read a totp secret from an image and add the totp field to the card (50ms)
199
+ ✓ should totp a file to the clipboard (359ms)
200
+ ✓ should read a totp secret from an image and add the totp field to the card (49ms)
201
201
  ✓ should read a totp secret from an image and return the secret
202
202
  ✓ should throw if bad image
203
203
  ✓ should throw if missing parameters
204
204
  ✓ should throw if the yaml is malformed
205
- ✓ should read a totp secret from the clipboard (87ms)
205
+ ✓ should read a totp secret from the clipboard (110ms)
206
206
 
207
207
  #Touch
208
208
  ✓ should return the help
@@ -244,15 +244,15 @@ New file "/folder2/file1" created.
244
244
 
245
245
  #Quit
246
246
  ✓ should return the help
247
- ✓ should quit the chat, even if inside a room (51ms)
247
+ ✓ should quit the chat, even if inside a room (49ms)
248
248
 
249
249
  #Send
250
250
  ✓ should return the help
251
- ✓ should send a message to user0 (87ms)
251
+ ✓ should send a message to user0 (99ms)
252
252
 
253
253
  #Show
254
254
  ✓ should return the help
255
- ✓ should show history messages (369ms)
255
+ ✓ should show history messages (367ms)
256
256
 
257
257
 
258
258
  166 passing (24s)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secrez",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "license": "MIT",
5
5
  "nyc": {
6
6
  "include": "src",
@@ -80,31 +80,31 @@ class Touch extends require("../Command") {
80
80
  'touch -p afile --content "Password: 1432874565"',
81
81
  'touch ether -c "Private Key: eweiu34y23h4y23ih4uy23hiu4y234i23y4iuh3"',
82
82
  [
83
- "touch sample.txt -e",
84
- "Prompt the user to type the content of the file. The text cannot contain newlines. It will cut at the first one, if so. If '-e' and '-c' are both present, '-c' will be ignored.",
83
+ "touch sample.txt -w",
84
+ "Prompt the user to type the content of the file. The text cannot contain newlines. It will cut at the first one, if so. If '-w' and '-c' are both present, '-c' will be ignored.",
85
85
  ],
86
86
  [
87
87
  "touch walletPassword -n",
88
- "Prompt the user to type the password without showing it. Notice that '-n' has priority on '-e' and '-c'",
88
+ "Prompt the user to type the password without showing it. Notice that '-n' has priority on '-w' and '-c'",
89
89
  ],
90
90
  [
91
91
  "touch gilbert -f name -c 'Albert Goose'",
92
92
  "If the file does not exists, it creates 'gilbert.yaml' with the field 'name'. If a yaml file exists, it adds the field 'name' to it if the the field does not exist.",
93
93
  ],
94
94
  [
95
- "touch new-wallet -w",
95
+ "touch new-wallet -g",
96
96
  "Creates a new wallet file containing 'private_key' and `address`. Wallet has priority on other creation options.",
97
97
  ],
98
98
  [
99
- "touch new-wallets.yaml -w -n 3",
99
+ "touch new-wallets.yaml -g --amount 3",
100
100
  "Creates 'new-wallets.yaml', containing 3 wallet, calling them 'private_key', `private_key2` and `private_key3`, and relative addresses.",
101
101
  ],
102
102
  [
103
- "touch new-wallet --wallet -x trust0",
103
+ "touch new-wallet --generate-wallet -x trust0",
104
104
  "In combination con '-x', it creates a new wallet file calling the fields 'trust0_private_key' and 'trust0_address'.",
105
105
  ],
106
106
  [
107
- "touch new-wallets.yaml -wi",
107
+ "touch new-wallets.yaml -gi",
108
108
  "Includes the mnemonic. In this case, it will also add the fields 'mnemonic' (mnemonic phrase) and 'derived_path' (path used to generate the keys). ",
109
109
  ],
110
110
  ],