@secrez/core 1.0.4 → 1.0.6

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
@@ -28,18 +28,18 @@ API documentation
28
28
  ## Test coverage
29
29
 
30
30
  ```
31
- 60 passing (1s)
31
+ 60 passing (889ms)
32
32
 
33
33
  -----------------|---------|----------|---------|---------|-------------------
34
34
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
35
35
  -----------------|---------|----------|---------|---------|-------------------
36
36
  All files | 99.75 | 94.31 | 100 | 99.75 |
37
- src | 100 | 96.07 | 100 | 100 |
37
+ src | 100 | 96.06 | 100 | 100 |
38
38
  Entry.js | 100 | 95.65 | 100 | 100 | 39
39
- Secrez.js | 100 | 96.95 | 100 | 100 | 154,319,442
40
- _Secrez.js | 100 | 91.67 | 100 | 100 | 14,226
41
- src/config | 98.57 | 84.85 | 100 | 98.57 |
42
- ConfigUtils.js | 98.48 | 84.85 | 100 | 98.48 | 137
39
+ Secrez.js | 100 | 96.94 | 100 | 100 | 154,319,442
40
+ _Secrez.js | 100 | 91.66 | 100 | 100 | 14,226
41
+ src/config | 98.57 | 84.84 | 100 | 98.57 |
42
+ ConfigUtils.js | 98.48 | 84.84 | 100 | 98.48 | 137
43
43
  booleans.js | 100 | 100 | 100 | 100 |
44
44
  index.js | 100 | 100 | 100 | 100 |
45
45
  -----------------|---------|----------|---------|---------|-------------------
package/coverage.report CHANGED
@@ -1,9 +1,12 @@
1
1
 
2
- > @secrez/core@1.0.4 test /Users/francescosullo/Projects/Personal/secrez/packages/core
2
+ > @secrez/core@1.0.6 test /Users/francescosullo/Projects/Secrez/secrez/packages/core
3
3
  > cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha test/*.test.js test/**/*.test.js --exit
4
4
 
5
5
 
6
6
 
7
+ #config
8
+ ✓ all field should be correctly configured
9
+
7
10
  #Entry
8
11
  #constructor
9
12
  ✓ should instantiate the Entry
@@ -26,13 +29,13 @@
26
29
  derivePassword
27
30
  ✓ should derive a password and obtain a predeterminded hash
28
31
  signup and signin
29
- ✓ should signup the user and signin without saving the iterations (71ms)
30
- ✓ should signup in two instances without conflicts (41ms)
31
- ✓ should signup the user and signin saved the iterations (38ms)
32
- ✓ should signup with version one, and signin and upgrade to version two (68ms)
33
- ✓ should signup the user, change password and signin (56ms)
34
- ✓ should signup the user, change iterations and signin (49ms)
35
- ✓ should signup the user, change password and iterations and signin (67ms)
32
+ ✓ should signup the user and signin without saving the iterations (41ms)
33
+ ✓ should signup in two instances without conflicts
34
+ ✓ should signup the user and signin saved the iterations
35
+ ✓ should signup with version one, and signin and upgrade to version two
36
+ ✓ should signup the user, change password and signin
37
+ ✓ should signup the user, change iterations and signin
38
+ ✓ should signup the user, change password and iterations and signin (42ms)
36
39
  should throw an error
37
40
  ✓ trying to signup if Secrez has not been initiated
38
41
  ✓ trying to signin if Secrez has not been initiated
@@ -62,10 +65,10 @@
62
65
  ✓ should encrypt some data with the derivedPassword and decrypt it
63
66
  ✓ should throw trying to get the master key
64
67
  generateSharedSecrets && recoverSharedSecrets
65
- ✓ should set up a second factor (57ms)
68
+ ✓ should set up a second factor (43ms)
66
69
  ✓ should set up a second factor and then upgrade from derivationVersion 1 to 2
67
- ✓ should set up a second factor and a recovery code and remove them (58ms)
68
- ✓ should set up a second factor and a recovery code and remove the recovery code (58ms)
70
+ ✓ should set up a second factor and a recovery code and remove them (40ms)
71
+ ✓ should set up a second factor and a recovery code and remove the recovery code (43ms)
69
72
  ✓ should throw if wrong secret
70
73
  ✓ should throw if wrong authenticator
71
74
  #readConf
@@ -73,14 +76,11 @@
73
76
  ✓ should throw trying to get the master key
74
77
  ✓ should throw trying to get the master key
75
78
  #signMessage
76
- ✓ should sign a message and verify it (40ms)
79
+ ✓ should sign a message and verify it
77
80
  #getPublicKey
78
81
  ✓ should sign a message and verify it
79
82
  #encrypt and decrypt shared data
80
- ✓ should get a shared ket (50ms)
81
-
82
- #config
83
- ✓ all field should be correctly configured
83
+ ✓ should get a shared ket
84
84
 
85
85
  #ConfigUtils
86
86
  ✓ should check if a type is valid
@@ -91,18 +91,22 @@
91
91
  ✓ #getEnv should return the environment
92
92
 
93
93
 
94
- 60 passing (1s)
94
+ 60 passing (889ms)
95
95
 
96
96
  -----------------|---------|----------|---------|---------|-------------------
97
97
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
98
98
  -----------------|---------|----------|---------|---------|-------------------
99
99
  All files | 99.75 | 94.31 | 100 | 99.75 |
100
- src | 100 | 96.07 | 100 | 100 |
100
+ src | 100 | 96.06 | 100 | 100 |
101
101
  Entry.js | 100 | 95.65 | 100 | 100 | 39
102
- Secrez.js | 100 | 96.95 | 100 | 100 | 154,319,442
103
- _Secrez.js | 100 | 91.67 | 100 | 100 | 14,226
104
- src/config | 98.57 | 84.85 | 100 | 98.57 |
105
- ConfigUtils.js | 98.48 | 84.85 | 100 | 98.48 | 137
102
+ Secrez.js | 100 | 96.94 | 100 | 100 | 154,319,442
103
+ _Secrez.js | 100 | 91.66 | 100 | 100 | 14,226
104
+ src/config | 98.57 | 84.84 | 100 | 98.57 |
105
+ ConfigUtils.js | 98.48 | 84.84 | 100 | 98.48 | 137
106
106
  booleans.js | 100 | 100 | 100 | 100 |
107
107
  index.js | 100 | 100 | 100 | 100 |
108
108
  -----------------|---------|----------|---------|---------|-------------------
109
+
110
+ > @secrez/core@1.0.6 posttest /Users/francescosullo/Projects/Secrez/secrez/packages/core
111
+ > nyc check-coverage --statements 99 --branches 94 --functions 99 --lines 99
112
+
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@secrez/core",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
- "@secrez/crypto": "~1.0.3",
10
- "@secrez/utils": "~1.0.3",
9
+ "@secrez/crypto": "~1.0.5",
10
+ "@secrez/utils": "~1.0.5",
11
11
  "fs-extra": "^9.1.0",
12
12
  "homedir": "^0.6.0",
13
- "lodash": "^4.17.15"
13
+ "lodash": "^4.17.21"
14
14
  },
15
15
  "devDependencies": {
16
- "@secrez/test-helpers": "~2.0.0",
17
- "chai": "^4.2.0",
18
- "cross-env": "^7.0.2",
19
- "mocha": "^7.1.2",
16
+ "@secrez/test-helpers": "~2.0.1",
17
+ "chai": "^4.5.0",
18
+ "cross-env": "^7.0.3",
19
+ "mocha": "^7.2.0",
20
20
  "nyc": "^15.1.0"
21
21
  },
22
22
  "description": "The Secrez core library.",