@verdaccio/auth 6.0.0-6-next.47 → 6.0.0-6-next.48
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/CHANGELOG.md +17 -0
- package/package.json +7 -7
- package/test/auth.spec.ts +13 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @verdaccio/auth
|
|
2
2
|
|
|
3
|
+
## 6.0.0-6-next.48
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c9d1af0e: feat: async bcrypt hash
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [c9d1af0e]
|
|
12
|
+
- @verdaccio/core@6.0.0-6-next.69
|
|
13
|
+
- verdaccio-htpasswd@11.0.0-6-next.39
|
|
14
|
+
- @verdaccio/config@6.0.0-6-next.69
|
|
15
|
+
- @verdaccio/loaders@6.0.0-6-next.38
|
|
16
|
+
- @verdaccio/utils@6.0.0-6-next.37
|
|
17
|
+
- @verdaccio/signature@6.0.0-6-next.2
|
|
18
|
+
- @verdaccio/logger@6.0.0-6-next.37
|
|
19
|
+
|
|
3
20
|
## 6.0.0-6-next.47
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/auth",
|
|
3
|
-
"version": "6.0.0-6-next.
|
|
3
|
+
"version": "6.0.0-6-next.48",
|
|
4
4
|
"description": "logger",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@verdaccio/core": "6.0.0-6-next.
|
|
34
|
-
"@verdaccio/config": "6.0.0-6-next.
|
|
35
|
-
"@verdaccio/loaders": "6.0.0-6-next.
|
|
36
|
-
"@verdaccio/logger": "6.0.0-6-next.
|
|
33
|
+
"@verdaccio/core": "6.0.0-6-next.69",
|
|
34
|
+
"@verdaccio/config": "6.0.0-6-next.69",
|
|
35
|
+
"@verdaccio/loaders": "6.0.0-6-next.38",
|
|
36
|
+
"@verdaccio/logger": "6.0.0-6-next.37",
|
|
37
37
|
"@verdaccio/signature": "6.0.0-6-next.2",
|
|
38
|
-
"@verdaccio/utils": "6.0.0-6-next.
|
|
38
|
+
"@verdaccio/utils": "6.0.0-6-next.37",
|
|
39
39
|
"debug": "4.3.4",
|
|
40
40
|
"express": "4.18.2",
|
|
41
41
|
"lodash": "4.17.21",
|
|
42
|
-
"verdaccio-htpasswd": "11.0.0-6-next.
|
|
42
|
+
"verdaccio-htpasswd": "11.0.0-6-next.39"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@verdaccio/types": "11.0.0-6-next.25"
|
package/test/auth.spec.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Config } from '@verdaccio/types';
|
|
|
8
8
|
import { Auth } from '../src';
|
|
9
9
|
import { authPluginFailureConf, authPluginPassThrougConf, authProfileConf } from './helper/plugin';
|
|
10
10
|
|
|
11
|
-
setup({});
|
|
11
|
+
setup({ level: 'debug', type: 'stdout' });
|
|
12
12
|
|
|
13
13
|
describe('AuthTest', () => {
|
|
14
14
|
test('should init correctly', async () => {
|
|
@@ -29,6 +29,18 @@ describe('AuthTest', () => {
|
|
|
29
29
|
expect(auth).toBeDefined();
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
+
test('should load custom algorithm', async () => {
|
|
33
|
+
const config: Config = new AppConfig({
|
|
34
|
+
...authProfileConf,
|
|
35
|
+
auth: { htpasswd: { algorithm: 'sha1', file: './foo' } },
|
|
36
|
+
});
|
|
37
|
+
config.checkSecretKey('12345');
|
|
38
|
+
|
|
39
|
+
const auth: Auth = new Auth(config);
|
|
40
|
+
await auth.init();
|
|
41
|
+
expect(auth).toBeDefined();
|
|
42
|
+
});
|
|
43
|
+
|
|
32
44
|
describe('test authenticate method', () => {
|
|
33
45
|
describe('test authenticate states', () => {
|
|
34
46
|
test('should be a success login', async () => {
|