secrez 1.0.3 → 1.1.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/coverage.report DELETED
@@ -1,328 +0,0 @@
1
-
2
- > secrez@1.0.3 test /Users/sullof/Projects/Personal/secrez/packages/secrez
3
- > cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ./node_modules/.bin/_mocha test/*.test.js test/**/*.test.js test/**/**/*.js --exit
4
-
5
-
6
- 
7
-  #Command
8
-  #constructor
9
-  ✓ should instantiate a Command object
10
-  #getFileList
11
-  ✓ should get the current internal folder dir
12
-  ✓ should get the current external folder dir
13
-  #help & #setHelpAndCompletion
14
-  ✓ should do nothing
15
-  #validate
16
-  ✓ should validate the options
17
-
18
-  #Fido2Client
19
-  #configuration
20
-  ✓ should verify that all the scripts exist
21
-
22
-  #Alias
23
-  ✓ should return the help
24
-  ✓ create aliases and lists them
25
-  - should chain two commands
26
-  ✓ rename and delete aliases
27
-  ✓ should throw if there are errors
28
-
29
-  #Cat
30
-  ✓ should return the help
31
-  ✓ should show the content of a file
32
-  ✓ should show either one or all the versions of a file
33
-  ✓ should throw if entry is not a file or file does not exist
34
-  ✓ should throw if trying to cat a binary file
35
-  ✓ should show the content of a Yaml file
36
-
37
-  #Cd
38
-  ✓ should return the help
39
-  ✓ change to a folder
40
-  ✓ return en error if changing to a file
41
-
42
-  #Chat
43
-  ✓ should return the help
44
-  ✓ should run the chat if the courier is ready (277ms)
45
-
46
-  #Contacts
47
-  ✓ should return the help
48
-  ✓ create a contacts
49
-  ✓ create contacts and get their public keys
50
-  ✓ should list contacts
51
-  ✓ should update a contact
52
-  ✓ should rename a contacts
53
-  ✓ should remove a contacts
54
-  ✓ should throw if there are errors
55
-
56
-  #Copy
57
-  ✓ should return the help
58
-  ✓ should copy a file to the clipboard (429ms)
59
-  ✓ should copy a string to the clipboard (259ms)
60
-  ✓ should copy a card to the clipboard (995ms)
61
-  ✓ should return an error if the file does not exist or is a folder (53ms)
62
-  ✓ should throw if copying to clipboard a binary files
63
-
64
-  #Courier
65
-  ✓ should return the help
66
-  ✓ should check if it is ready
67
-  ✓ should set up the courier (171ms)
68
-  ✓ should set up the courier and get the default message when is already set up (163ms)
69
-
70
-  #Ds
71
-  ✓ should return the help
72
-  ✓ should list all datasets
73
-  ✓ should create a new dataset
74
-  ✓ should rename a dataset
75
-  ✓ should delete a dataset
76
-
77
-  #Export
78
-  ✓ should return the help
79
-  ✓ should export a file to the current local folder
80
-  ✓ should export a binary file to the current local folder
81
-  ✓ should export an encrypted file to the current local folder (52ms)
82
-  ✓ should export a file and delete it after 1 second (1208ms)
83
-  ✓ should return an error if the file does not exist or is a folder
84
-
85
-  #Find
86
-  ✓ should return the help
87
-  ✓ should show find a string in the tree (49ms)
88
-  ✓ should find no result without parameters
89
-  ✓ should skip binary files from search
90
-
91
-  #Help
92
-  ✓ should return the help
93
-  ✓ #execAsync and format
94
-  ✓ should throw if wrong command
95
-  ✓ -- to complete coverage
96
-
97
-  #Import
98
-  ✓ should return the help
99
-  ✓ should import a file in the current folder
100
-  ✓ should import an encrypted file
101
-  ✓ should import an encrypted file encrypted for myself
102
-  ✓ should import an encrypted binary file and export it again verifying it is fine
103
-  ✓ should import files recursively
104
-  ✓ should read a folder and import the only text file
105
-  ✓ should read a folder and import text and binary files
106
-  ✓ should simulate the import of two files
107
-  ✓ should move the imported file
108
-  ✓ should import a backup from another software spanning the data among folders and files
109
-  ✓ should import a backup from another software but saving the tags as tags
110
-  ✓ should import a backup from another software using tags to prefix the paths
111
-  ✓ should import using tags to prefix the paths, ignoring the tags
112
-  ✓ should import from a LastPass-like csv setting the path from "grouping" and "name"
113
-  ✓ should import from a json
114
-  ✓ should throw importing a malformed backup
115
-  ✓ should throw importing a CSV indicating wrong fields to generate the path
116
-
117
-  #Lcat
118
-  ✓ should return the help
119
-  ✓ cat a file
120
-  ✓ return en error if trying to cat a binary file
121
-
122
-  #Lcd
123
-  ✓ should return the help
124
-  ✓ change to a folder
125
-  ✓ return en error if changing to a file
126
-
127
-  #Lls
128
-  ✓ should return the help
129
-  ✓ should list a folder
130
-  ✓ return en error if lls-ing a not existing path
131
-  ✓ return a message if no files are found
132
-
133
-  #Lpwd
134
-  ✓ should return the help
135
-  ✓ change to a folder
136
-
137
-  #Ls
138
-  ✓ should return the help
139
-  ✓ should return all the datasets
140
-  ✓ should list folders and files
141
-  ✓ should list folders and files using wildcards
142
-
143
-  #Mkdir
144
-  ✓ should return the help
145
-  ✓ should create a folder
146
-  ✓ should create a nested folder
147
-  ✓ should throw if trying to create a child of a file
148
-  ✓ should throw if wrong parameters
149
-
150
-  #Mv
151
-  ✓ should return the help
152
-  ✓ should rename a file
153
-  ✓ should move a file to another folder
154
-  ✓ should move many files to another folder
155
-  ✓ should move a file to another subfolder
156
-  ✓ should move and rename file to another folder
157
-  ✓ should move file to another folder using wildcards
158
-  ✓ should move file to another dataset using wildcards
159
-  ✓ should move file managing duplicates
160
-  ✓ should throw if parameters are missed or wrong
161
-  ✓ should move files from and to other datasets
162
-  ✓ should move the results of a find
163
-
164
-  #Paste
165
-  ✓ should return the help
166
-  ✓ should paste the clipboard content to a new file (89ms)
167
-  ✓ should paste the clipboard content to an existent file (136ms)
168
-  ✓ should paste a single field to a yml card (74ms)
169
-
170
-  #Pwd
171
-  ✓ should return the help
172
-  ✓ should show the working folder
173
-
174
-  #Quit
175
-  ✓ should show the content of an external file via bash
176
-
177
-  #Rm
178
-  ✓ should return the help
179
-  ✓ should delete a file with one version
180
-  ✓ should delete many files usign wildcards
181
-  ✓ should return errors if wrong parameters
182
-  ✓ should delete some versions of a file
183
-
184
-  #Shell
185
-  ✓ should return the help
186
-  ✓ should show the content of an external file via shell
187
-
188
-  #Tag
189
-  ✓ should return the help
190
-  ✓ should tag a file
191
-  ✓ should remove a tag
192
-  ✓ should list all the tags
193
-  ✓ should show the file tagged as
194
-  ✓ should show very long file tagged as
195
-
196
-  #Totp
197
-  ✓ should return the help
198
-  ✓ should totp a file to the clipboard (395ms)
199
-  ✓ should read a totp secret from an image and add the totp field to the card (97ms)
200
-  ✓ should read a totp secret from an image and return the secret (45ms)
201
-  ✓ should throw if bad image
202
-  ✓ should throw if missing parameters
203
-  ✓ should throw if the yaml is malformed (53ms)
204
-  ✓ should read a totp secret from the clipboard (191ms)
205
-
206
-  #Touch
207
-  ✓ should return the help
208
-  ✓ should create a file
209
-  ✓ should create a file with content
210
-  ✓ should throw if trying to create a child of a file
211
-  ✓ should throw if wrong parameters
212
-
213
-  #Use
214
-  ✓ should return the help
215
-  ✓ should use a new dataset, creating it if does not exist
216
-
217
-  #Ver
218
-  ✓ should show the current version
219
-
220
-  #Whoami
221
-  ✓ should return the help
222
-  ✓ should see who am I (42ms)
223
-
224
-  #Help
225
-  ✓ should return the help
226
-
227
-  #Join
228
-  ✓ should return the help
229
-  ✓ should join a chat with user0x
230
-  ✓ should join a chat with user0x
231
-  ✓ should jump between chats
232
-  ✓ should return all the users
233
-  ✓ should throw if contact not found or multiple chat (58ms)
234
-
235
-  #Leave
236
-  ✓ should return the help
237
-  ✓ should leave the room
238
-
239
-  #Quit
240
-  ✓ should return the help (60ms)
241
-  ✓ should quit the chat, even if inside a room (100ms)
242
-
243
-  #Send
244
-  ✓ should return the help
245
-  ✓ should send a message to user0 (157ms)
246
-
247
-  #Show
248
-  ✓ should return the help
249
-  ✓ should show history messages (720ms)
250
-
251
-
252
-   162 passing (24s)
253
-   1 pending
254
-
255
- -----------------------|---------|----------|---------|---------|-----------------------------------
256
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
257
- -----------------------|---------|----------|---------|---------|-----------------------------------
258
- All files  |  69.9 |  56.05 |  71.76 |  69.84 |  
259
-  src  |  59.63 |  54.79 |  55 |  61.32 |  
260
-  Command.js  |  79.66 |  78.72 |  76.92 |  83.93 | 35,54-59,68,71,95 
261
-  PreCommand.js  |  21.95 |  11.54 |  14.29 |  21.95 | 9-95,108 
262
-  cliConfig.js  |  100 |  100 |  100 |  100 |  
263
-  src/commands  |  79.17 |  63.61 |  89.24 |  78.97 |  
264
-  Alias.js  |  90.54 |  77.36 |  100 |  90.41 | 85,96,118,145,149,154,164 
265
-  Bash.js  |  75 |  0 |  66.67 |  75 | 20-21 
266
-  Cat.js  |  98.9 |  88.89 |  100 |  98.9 | 144 
267
-  Cd.js  |  96.43 |  86.67 |  100 |  96.43 | 45 
268
-  Chat.js  |  19.51 |  0 |  16.67 |  19.51 | 24-130 
269
-  Conf.js  |  10.45 |  0 |  25 |  10.45 | 132-473 
270
-  Contacts.js  |  74.67 |  65.98 |  92.86 |  74.5 | ...75-197,221,226,238,294,307,317
271
-  Copy.js  |  94.87 |  74.51 |  100 |  94.81 | 96,141,158,183 
272
-  Courier.js  |  63.54 |  41.86 |  85.71 |  63.83 | ...24,139-156,168,180-183,195-201
273
-  Ds.js  |  92.54 |  82.05 |  100 |  92.42 | 94,103-108,120 
274
-  Edit.js  |  13.58 |  0 |  40 |  13.58 | 78-193 
275
-  Export.js  |  90.91 |  68 |  100 |  90.91 | 109,114-115,120,130,137,140 
276
-  Find.js  |  93.59 |  86.67 |  100 |  93.42 | 90,153,192-196,202 
277
-  Git.js  |  15.07 |  0 |  50 |  15.07 | 74-178 
278
-  Help.js  |  100 |  80 |  100 |  100 | 30 
279
-  Import.js  |  93.2 |  85.48 |  100 |  93.1 | ...06,308,321,327,369,384-390,417
280
-  Lcat.js  |  100 |  85.71 |  100 |  100 | 55 
281
-  Lcd.js  |  95.65 |  81.82 |  100 |  95.65 | 49 
282
-  Lls.js  |  95.45 |  72.73 |  100 |  95.45 | 91 
283
-  Lpwd.js  |  92.31 |  100 |  100 |  92.31 | 38 
284
-  Ls.js  |  91.3 |  75 |  100 |  90.77 | 99,110-112,126,169 
285
-  Mkdir.js  |  100 |  66.67 |  100 |  100 | 39-45 
286
-  Mv.js  |  91.01 |  77.36 |  100 |  90.8 | 114,137,148-154 
287
-  Paste.js  |  87.23 |  75 |  100 |  87.23 | 66,72,75,83,107,124 
288
-  Pwd.js  |  92.31 |  100 |  100 |  92.31 | 36 
289
-  Quit.js  |  90 |  50 |  100 |  90 | 29 
290
-  Rm.js  |  94 |  80.95 |  100 |  93.88 | 61,116,124 
291
-  Shell.js  |  88.24 |  60 |  100 |  88.24 | 39,54 
292
-  Ssh.js  |  25 |  0 |  40 |  25 | 64-104 
293
-  Tag.js  |  98.04 |  92.31 |  100 |  97.94 | 123,164 
294
-  Totp.js  |  97.53 |  76.74 |  100 |  97.53 | 150-151 
295
-  Touch.js  |  100 |  71.43 |  100 |  100 | 57,68 
296
-  Use.js  |  96.77 |  89.47 |  100 |  96.77 | 65 
297
-  Ver.js  |  90 |  66.67 |  100 |  90 | 27 
298
-  Whoami.js  |  93.1 |  63.64 |  80 |  93.1 | 32,65 
299
-  chat.js  |  85.37 |  53.85 |  100 |  85.37 | 94,103-116,122,128 
300
-  index.js  |  91.67 |  60 |  100 |  91.3 | 23,32 
301
-  src/commands/chat  |  79.44 |  63.29 |  92.31 |  79.33 |  
302
-  Contacts.js  |  80 |  42.86 |  80 |  80 | 56,65,69,82 
303
-  Help.js  |  86.67 |  60 |  100 |  86.67 | 38-39 
304
-  Join.js  |  95.65 |  82.61 |  100 |  95.56 | 41,104 
305
-  Leave.js  |  100 |  60 |  100 |  100 | 28,32 
306
-  Quit.js  |  100 |  75 |  100 |  100 | 27 
307
-  Send.js  |  67.65 |  46.67 |  100 |  67.65 | 40,44,47,74,83-92 
308
-  Show.js  |  68.75 |  70.59 |  100 |  68.75 | 63-67,76,91-97 
309
-  Whoami.js  |  42.86 |  0 |  60 |  42.86 | 24,32-41 
310
-  src/prompts  |  15.14 |  0 |  14.29 |  15.36 |  
311
-  ChatPrompt.js  |  6.17 |  0 |  0 |  6.17 | 9-155 
312
-  ChatPromptMock.js  |  100 |  100 |  66.67 |  100 |  
313
-  CommandPrompt.js  |  10.42 |  0 |  0 |  10.56 | 25-286 
314
-  Completion.js  |  4.41 |  0 |  0 |  4.62 | 7-107 
315
-  MainPromptMock.js  |  100 |  100 |  66.67 |  100 |  
316
-  MultiEditorPrompt.js |  25 |  0 |  0 |  25 | 8-35 
317
-  SigintManager.js  |  25 |  0 |  20 |  25 | 11-37 
318
-  src/utils  |  69.92 |  62.1 |  56.25 |  69.55 |  
319
-  AliasManager.js  |  100 |  91.67 |  100 |  100 | 48 
320
-  ContactManager.js  |  71.43 |  60 |  85.71 |  71.43 | 13,36-38 
321
-  Fido2Client.js  |  15.38 |  0 |  11.11 |  15.38 | 15-101 
322
-  HelpProto.js  |  91.6 |  83.08 |  100 |  91.45 | 44,137-138,155-160,179 
323
-  Logger.js  |  63.64 |  56.25 |  36.84 |  62.79 | ...38-50,58,66-70,75,85,89,94,107
324
- -----------------------|---------|----------|---------|---------|-----------------------------------
325
-
326
- > secrez@1.0.3 posttest /Users/sullof/Projects/Personal/secrez/packages/secrez
327
- > nyc check-coverage --statements 65 --branches 50 --functions 65 --lines 65
328
-