secrez 2.1.15 → 2.1.16
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 +5 -0
- package/package.json +4 -4
- package/src/Welcome.js +0 -3
- package/src/commands/Conf.js +0 -19
package/README.md
CHANGED
|
@@ -368,6 +368,11 @@ Secrez is not intended to compete with password managers, so do not expect it to
|
|
|
368
368
|
|
|
369
369
|
## History
|
|
370
370
|
|
|
371
|
+
**2.1.16**
|
|
372
|
+
|
|
373
|
+
- remove legacy second-factor handling from the CLI (`Welcome`, `Conf`)
|
|
374
|
+
- refactor `git` command tests to use a local bare repository instead of a private GitHub remote (no SSH keys or external setup required)
|
|
375
|
+
|
|
371
376
|
**2.1.15**
|
|
372
377
|
|
|
373
378
|
- add `find -R` to look for recent entries only. With `-l` to set a limit (default 10)
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "secrez",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"nyc": {
|
|
6
6
|
"include": "src",
|
|
7
7
|
"exclude": []
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@secrez/core": "~1.0.
|
|
11
|
-
"@secrez/crypto": "~1.0.
|
|
10
|
+
"@secrez/core": "~1.0.7",
|
|
11
|
+
"@secrez/crypto": "~1.0.6",
|
|
12
12
|
"@secrez/eth": "~0.0.5",
|
|
13
13
|
"@secrez/fs": "~1.0.8",
|
|
14
14
|
"@secrez/utils": "~1.0.5",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"tiny-cli-editor": "^0.1.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@secrez/test-helpers": "~2.0.
|
|
32
|
+
"@secrez/test-helpers": "~2.0.2",
|
|
33
33
|
"chai": "^4.5.0",
|
|
34
34
|
"chalk": "^3.0.0",
|
|
35
35
|
"cross-env": "^7.0.3",
|
package/src/Welcome.js
CHANGED
package/src/commands/Conf.js
CHANGED
|
@@ -43,16 +43,6 @@ class Conf extends require("../Command") {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
async getAllFactors() {
|
|
47
|
-
let allFactors = {};
|
|
48
|
-
const conf = this.secrez.getConf();
|
|
49
|
-
let keys = conf.data.keys || {};
|
|
50
|
-
for (let authenticator in keys) {
|
|
51
|
-
allFactors[authenticator] = keys[authenticator].type;
|
|
52
|
-
}
|
|
53
|
-
return allFactors;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
46
|
async showConf(options) {
|
|
57
47
|
const env = await ConfigUtils.getEnv(this.secrez.config);
|
|
58
48
|
this.Logger.reset(chalk.grey("Container: ") + this.secrez.config.container);
|
|
@@ -86,10 +76,6 @@ class Conf extends require("../Command") {
|
|
|
86
76
|
"Changing password and number of iterations in the same operation not allowed"
|
|
87
77
|
);
|
|
88
78
|
}
|
|
89
|
-
let haveSomeFactors = false;
|
|
90
|
-
if (Object.keys(await this.getAllFactors()).length) {
|
|
91
|
-
haveSomeFactors = true;
|
|
92
|
-
}
|
|
93
79
|
let message =
|
|
94
80
|
"Are you sure you want to upgrade your " +
|
|
95
81
|
(pw ? "password" : "number of iterations") +
|
|
@@ -140,11 +126,6 @@ class Conf extends require("../Command") {
|
|
|
140
126
|
this.Logger.reset(
|
|
141
127
|
'In case you have doubts about it, please, "cat" the file and take a look before exiting.'
|
|
142
128
|
);
|
|
143
|
-
if (haveSomeFactors) {
|
|
144
|
-
this.Logger.yellow(
|
|
145
|
-
"All the second factors have been unregistered."
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
129
|
return;
|
|
149
130
|
}
|
|
150
131
|
}
|