verdaccio-auth-memory 9.7.2 → 10.0.1
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/lib/{src/Memory.d.ts → Memory.d.ts} +12 -2
- package/lib/Memory.js +10 -9
- package/lib/Memory.js.map +1 -0
- package/lib/{src/index.d.ts → index.d.ts} +0 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -0
- package/package.json +13 -18
- package/CHANGELOG.md +0 -346
- package/lib/types/index.d.ts +0 -12
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { PluginOptions, Callback, PackageAccess, IPluginAuth, RemoteUser, Logger } from '@verdaccio/types';
|
|
2
|
-
|
|
1
|
+
import { Config, PluginOptions, Callback, PackageAccess, IPluginAuth, RemoteUser, Logger } from '@verdaccio/types';
|
|
2
|
+
export interface UserMemory {
|
|
3
|
+
name: string;
|
|
4
|
+
password: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Users {
|
|
7
|
+
[key: string]: UserMemory;
|
|
8
|
+
}
|
|
9
|
+
export interface VerdaccioMemoryConfig extends Config {
|
|
10
|
+
max_users?: number;
|
|
11
|
+
users: Users;
|
|
12
|
+
}
|
|
3
13
|
export default class Memory implements IPluginAuth<VerdaccioMemoryConfig> {
|
|
4
14
|
_logger: Logger;
|
|
5
15
|
_users: Users;
|
package/lib/Memory.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _commonsApi = require("@verdaccio/commons-api");
|
|
9
9
|
|
|
10
10
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
11
|
|
|
@@ -37,7 +37,7 @@ class Memory {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
if (password !== userCredentials.password) {
|
|
40
|
-
const err = (0,
|
|
40
|
+
const err = (0, _commonsApi.getUnauthorized)("i don't like your password");
|
|
41
41
|
|
|
42
42
|
this._logger.info({
|
|
43
43
|
user
|
|
@@ -66,7 +66,7 @@ class Memory {
|
|
|
66
66
|
|
|
67
67
|
if (this._app_config.max_users) {
|
|
68
68
|
if (Object.keys(this._users).length >= this._app_config.max_users) {
|
|
69
|
-
const err = (0,
|
|
69
|
+
const err = (0, _commonsApi.getConflict)('maximum amount of users reached');
|
|
70
70
|
return done(err);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -100,7 +100,7 @@ class Memory {
|
|
|
100
100
|
|
|
101
101
|
cb(null, user);
|
|
102
102
|
} else {
|
|
103
|
-
const err = (0,
|
|
103
|
+
const err = (0, _commonsApi.getNotFound)('user not found');
|
|
104
104
|
|
|
105
105
|
this._logger.debug({
|
|
106
106
|
user: username
|
|
@@ -120,7 +120,7 @@ class Memory {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
if (!user.name) {
|
|
123
|
-
const err = (0,
|
|
123
|
+
const err = (0, _commonsApi.getForbidden)('not allowed to access package');
|
|
124
124
|
|
|
125
125
|
this._logger.debug({
|
|
126
126
|
user: user.name
|
|
@@ -137,7 +137,7 @@ class Memory {
|
|
|
137
137
|
return cb(null, true);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
const err = (0,
|
|
140
|
+
const err = (0, _commonsApi.getForbidden)('not allowed to access package');
|
|
141
141
|
|
|
142
142
|
this._logger.debug({
|
|
143
143
|
user: user.name
|
|
@@ -156,7 +156,7 @@ class Memory {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
if (!user.name) {
|
|
159
|
-
const err = (0,
|
|
159
|
+
const err = (0, _commonsApi.getForbidden)('not allowed to publish package');
|
|
160
160
|
|
|
161
161
|
this._logger.debug({
|
|
162
162
|
user: user.name
|
|
@@ -169,7 +169,7 @@ class Memory {
|
|
|
169
169
|
return cb(null, true);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
const err = (0,
|
|
172
|
+
const err = (0, _commonsApi.getForbidden)('not allowed to publish package');
|
|
173
173
|
|
|
174
174
|
this._logger.debug({
|
|
175
175
|
user: user.name
|
|
@@ -180,4 +180,5 @@ class Memory {
|
|
|
180
180
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
exports.default = Memory;
|
|
183
|
+
exports.default = Memory;
|
|
184
|
+
//# sourceMappingURL=Memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Memory.ts"],"names":["Memory","constructor","config","appOptions","_users","users","_config","_logger","logger","_app_config","authenticate","user","password","done","userCredentials","debug","err","info","adduser","max_users","Object","keys","length","name","changePassword","username","newPassword","cb","allow_access","pkg","access","includes","allow_publish","publish"],"mappings":";;;;;;;AACA;;;;AAiBe,MAAMA,MAAN,CAA2D;AAMjEC,EAAAA,WAAW,CAACC,MAAD,EAAgCC,UAAhC,EAAkF;AAAA;;AAAA;;AAAA;;AAAA;;AAClG,SAAKC,MAAL,GAAcF,MAAM,CAACG,KAAP,IAAgB,EAA9B;AACA,SAAKC,OAAL,GAAeJ,MAAf;AACA,SAAKK,OAAL,GAAeJ,UAAU,CAACK,MAA1B;AACA,SAAKC,WAAL,GAAmBN,UAAU,CAACD,MAA9B;AACD;;AAEMQ,EAAAA,YAAY,CAACC,IAAD,EAAeC,QAAf,EAAiCC,IAAjC,EAAuD;AACxE,UAAMC,eAAe,GAAG,KAAKV,MAAL,CAAYO,IAAZ,CAAxB;;AAEA,QAAI,CAACG,eAAL,EAAsB;AACpB,WAAKP,OAAL,CAAaQ,KAAb,CAAmB;AAAEJ,QAAAA;AAAF,OAAnB,EAA6B,+CAA7B;;AACA,aAAOE,IAAI,CAAC,IAAD,EAAO,KAAP,CAAX;AACD;;AAED,QAAID,QAAQ,KAAKE,eAAe,CAACF,QAAjC,EAA2C;AACzC,YAAMI,GAAG,GAAG,iCAAgB,4BAAhB,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ACY;AAAb,OAAnB,EAAwC,8CAAxC;;AAEA,aAAOI,EAAE,CAACX,GAAD,CAAT;AACD;;AAED,QAAKa,GAAG,CAACI,OAAJ,IAAeJ,GAAG,CAACI,OAAJ,CAAYF,QAAZ,CAAqBpB,IAAI,CAACY,IAA1B,CAAhB,IAAqDM,GAAG,CAACI,OAAJ,IAAeJ,GAAG,CAACI,OAAJ,CAAYF,QAAZ,CAAqB,gBAArB,CAAxE,EAAiH;AAC/G,aAAOJ,EAAE,CAAC,IAAD,EAAO,IAAP,CAAT;AACD;;AAED,UAAMX,GAAG,GAAG,8BAAa,gCAAb,CAAZ;;AACA,SAAKT,OAAL,CAAaQ,KAAb,CAAmB;AAAEJ,MAAAA,IAAI,EAAEA,IAAI,CAACY;AAAb,KAAnB,EAAwC,gEAAxC;;AAEA,WAAOI,EAAE,CAACX,GAAD,CAAT;AACD;;AArHuE","sourcesContent":["import { Config, PluginOptions, Callback, PackageAccess, IPluginAuth, RemoteUser, Logger } from '@verdaccio/types';\nimport { getConflict, getForbidden, getNotFound, getUnauthorized } from '@verdaccio/commons-api';\n\nexport interface UserMemory {\n name: string;\n password: string;\n}\n\nexport interface Users {\n [key: string]: UserMemory;\n}\n\nexport interface VerdaccioMemoryConfig extends Config {\n max_users?: number;\n users: Users;\n}\n\n\nexport default class Memory implements IPluginAuth<VerdaccioMemoryConfig> {\n public _logger: Logger;\n public _users: Users;\n public _config: {};\n public _app_config: VerdaccioMemoryConfig;\n\n public constructor(config: VerdaccioMemoryConfig, appOptions: PluginOptions<VerdaccioMemoryConfig>) {\n this._users = config.users || {};\n this._config = config;\n this._logger = appOptions.logger;\n this._app_config = appOptions.config;\n }\n\n public authenticate(user: string, password: string, done: Callback): void {\n const userCredentials = this._users[user];\n\n if (!userCredentials) {\n this._logger.debug({ user }, '[VerdaccioMemory] user @{user} does not exist');\n return done(null, false);\n }\n\n if (password !== userCredentials.password) {\n const err = getUnauthorized(\"i don't like your password\");\n this._logger.info({ user }, '[VerdaccioMemory] password invalid for: @{user}');\n\n return done(err);\n }\n\n // authentication succeeded!\n // return all usergroups this user has access to;\n this._logger.info({ user }, '[VerdaccioMemory] authentication succeeded for @{user}');\n return done(null, [user]);\n }\n\n public adduser(user: string, password: string, done: Callback): void {\n if (this._users[user]) {\n this._logger.debug({ user }, '[VerdaccioMemory] user @{user} already exist');\n return done(null, true);\n }\n\n if (this._app_config.max_users) {\n if (Object.keys(this._users).length >= this._app_config.max_users) {\n const err = getConflict('maximum amount of users reached');\n\n return done(err);\n }\n }\n\n this._users[user] = { name: user, password: password };\n\n this._logger.info({ user }, '[VerdaccioMemory] user added succeeded for @{user}');\n done(null, user);\n }\n\n public changePassword(username: string, password: string, newPassword: string, cb: Callback): void {\n const user: UserMemory = this._users[username];\n this._logger.debug({ user: username }, 'user: @{user} init change password');\n\n if (user && user.password === password) {\n user.password = newPassword;\n this._users[username] = user;\n\n this._logger.info({ user }, '[VerdaccioMemory] user changed password succeeded for @{user}');\n cb(null, user);\n } else {\n const err = getNotFound('user not found');\n this._logger.debug({ user: username }, 'change password user @{user} not found');\n\n return cb(err);\n }\n }\n\n public allow_access(user: RemoteUser, pkg: PackageAccess, cb: Callback): void {\n if ((pkg.access && pkg.access.includes('$all')) || (pkg.access && pkg.access.includes('$anonymous'))) {\n this._logger.debug({ user: user.name }, '[VerdaccioMemory] user: @{user} has been granted access');\n\n return cb(null, true);\n }\n\n if (!user.name) {\n const err = getForbidden('not allowed to access package');\n this._logger.debug({ user: user.name }, 'user: @{user} not allowed to access package');\n return cb(err);\n }\n\n if ((pkg.access && pkg.access.includes(user.name)) || (pkg.access && pkg.access.includes('$authenticated'))) {\n this._logger.debug({ user: user.name }, '[VerdaccioMemory] user: @{user} has been granted access');\n return cb(null, true);\n }\n\n const err = getForbidden('not allowed to access package');\n\n this._logger.debug({ user: user.name }, '[VerdaccioMemory] user: @{user} not allowed to access package');\n return cb(err);\n }\n\n public allow_publish(user: RemoteUser, pkg: PackageAccess, cb: Callback): void {\n if ((pkg.publish && pkg.publish.includes('$all')) || (pkg.publish && pkg.publish.includes('$anonymous'))) {\n this._logger.debug({ user: user.name }, '[VerdaccioMemory] user: @{user} has been granted to publish');\n return cb(null, true);\n }\n\n if (!user.name) {\n const err = getForbidden('not allowed to publish package');\n this._logger.debug({ user: user.name }, 'user: @{user} not allowed to publish package');\n\n return cb(err);\n }\n\n if ((pkg.publish && pkg.publish.includes(user.name)) || (pkg.publish && pkg.publish.includes('$authenticated'))) {\n return cb(null, true);\n }\n\n const err = getForbidden('not allowed to publish package');\n this._logger.debug({ user: user.name }, '[VerdaccioMemory] user: @{user} not allowed to publish package');\n\n return cb(err);\n }\n}\n"],"file":"Memory.js"}
|
|
File without changes
|
package/lib/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var _Memory = _interopRequireDefault(require("./Memory"));
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
18
|
var _default = _Memory.default;
|
|
19
|
-
exports.default = _default;
|
|
19
|
+
exports.default = _default;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["Memory"],"mappings":";;;;;;;;;;;;;AAAA;;;;eAIeA,e","sourcesContent":["import Memory from './Memory';\n\nexport { Memory };\n\nexport default Memory;\n"],"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verdaccio-auth-memory",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Auth plugin for Verdaccio that keeps users in memory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"verdaccio",
|
|
@@ -28,27 +28,22 @@
|
|
|
28
28
|
"node": ">=8"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@verdaccio/commons-api": "
|
|
31
|
+
"@verdaccio/commons-api": "10.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@verdaccio/
|
|
35
|
-
"@verdaccio/eslint-config": "^9.3.2",
|
|
36
|
-
"@verdaccio/types": "^9.7.2"
|
|
37
|
-
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "npm run build:types && npm run build:js",
|
|
40
|
-
"build:js": "babel src/ --out-dir lib --extensions \".ts,.tsx\"",
|
|
41
|
-
"build:types": "tsc --emitDeclarationOnly",
|
|
42
|
-
"coverage:publish": "codecov --root=../../ -F plugins",
|
|
43
|
-
"lint": "eslint \"**/*.{js,ts}\"",
|
|
44
|
-
"lint:stage": "lint-staged",
|
|
45
|
-
"test": "jest",
|
|
46
|
-
"type-check": "tsc --noEmit",
|
|
47
|
-
"type-check:watch": "npm run type-check -- --watch"
|
|
34
|
+
"@verdaccio/types": "10.0.0"
|
|
48
35
|
},
|
|
49
36
|
"funding": {
|
|
50
37
|
"type": "opencollective",
|
|
51
38
|
"url": "https://opencollective.com/verdaccio"
|
|
52
39
|
},
|
|
53
|
-
"
|
|
54
|
-
|
|
40
|
+
"scripts": {
|
|
41
|
+
"clean": "rimraf ./build",
|
|
42
|
+
"test": "cross-env NODE_ENV=test BABEL_ENV=test jest",
|
|
43
|
+
"type-check": "tsc --noEmit -p tsconfig.build.json",
|
|
44
|
+
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
|
|
45
|
+
"build:js": "babel src/ --out-dir lib/ --copy-files --extensions \".ts,.tsx\" --source-maps",
|
|
46
|
+
"watch": "pnpm build:js -- --watch",
|
|
47
|
+
"build": "pnpm run build:js && pnpm run build:types"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [9.7.2](https://github.com/verdaccio/monorepo/compare/v9.7.1...v9.7.2) (2020-07-20)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [9.7.1](https://github.com/verdaccio/monorepo/compare/v9.7.0...v9.7.1) (2020-07-10)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [9.7.0](https://github.com/verdaccio/monorepo/compare/v9.6.1...v9.7.0) (2020-06-24)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [9.6.1](https://github.com/verdaccio/monorepo/compare/v9.6.0...v9.6.1) (2020-06-07)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [9.5.0](https://github.com/verdaccio/monorepo/compare/v9.4.1...v9.5.0) (2020-05-02)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# [9.4.0](https://github.com/verdaccio/monorepo/compare/v9.3.4...v9.4.0) (2020-03-21)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## [9.3.2](https://github.com/verdaccio/monorepo/compare/v9.3.1...v9.3.2) (2020-03-08)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
## [9.3.1](https://github.com/verdaccio/monorepo/compare/v9.3.0...v9.3.1) (2020-02-23)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
# [9.3.0](https://github.com/verdaccio/monorepo/compare/v9.2.0...v9.3.0) (2020-01-29)
|
|
71
|
-
|
|
72
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
# [9.0.0](https://github.com/verdaccio/monorepo/compare/v8.5.3...v9.0.0) (2020-01-07)
|
|
79
|
-
|
|
80
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## [8.5.2](https://github.com/verdaccio/monorepo/compare/v8.5.1...v8.5.2) (2019-12-25)
|
|
87
|
-
|
|
88
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
## [8.5.1](https://github.com/verdaccio/monorepo/compare/v8.5.0...v8.5.1) (2019-12-24)
|
|
95
|
-
|
|
96
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
# [8.5.0](https://github.com/verdaccio/monorepo/compare/v8.4.2...v8.5.0) (2019-12-22)
|
|
103
|
-
|
|
104
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
## [8.4.2](https://github.com/verdaccio/monorepo/compare/v8.4.1...v8.4.2) (2019-11-23)
|
|
111
|
-
|
|
112
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
## [8.4.1](https://github.com/verdaccio/monorepo/compare/v8.4.0...v8.4.1) (2019-11-22)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
# [8.4.0](https://github.com/verdaccio/monorepo/compare/v8.3.0...v8.4.0) (2019-11-22)
|
|
127
|
-
|
|
128
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
# [8.3.0](https://github.com/verdaccio/monorepo/compare/v8.2.0...v8.3.0) (2019-10-27)
|
|
135
|
-
|
|
136
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
# [8.2.0](https://github.com/verdaccio/monorepo/compare/v8.2.0-next.0...v8.2.0) (2019-10-23)
|
|
143
|
-
|
|
144
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
# [8.2.0-next.0](https://github.com/verdaccio/monorepo/compare/v8.1.4...v8.2.0-next.0) (2019-10-08)
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
### Bug Fixes
|
|
154
|
-
|
|
155
|
-
* fixed lint errors ([5e677f7](https://github.com/verdaccio/monorepo/commit/5e677f7))
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
## [8.1.2](https://github.com/verdaccio/monorepo/compare/v8.1.1...v8.1.2) (2019-09-29)
|
|
162
|
-
|
|
163
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
## [8.1.1](https://github.com/verdaccio/monorepo/compare/v8.1.0...v8.1.1) (2019-09-26)
|
|
170
|
-
|
|
171
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
# [8.1.0](https://github.com/verdaccio/monorepo/compare/v8.0.1-next.1...v8.1.0) (2019-09-07)
|
|
178
|
-
|
|
179
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
## [8.0.1-next.1](https://github.com/verdaccio/monorepo/compare/v8.0.1-next.0...v8.0.1-next.1) (2019-08-29)
|
|
186
|
-
|
|
187
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
## [8.0.1-next.0](https://github.com/verdaccio/monorepo/compare/v8.0.0...v8.0.1-next.0) (2019-08-29)
|
|
194
|
-
|
|
195
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
# [8.0.0](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.4...v8.0.0) (2019-08-22)
|
|
202
|
-
|
|
203
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
# [8.0.0-next.4](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.3...v8.0.0-next.4) (2019-08-18)
|
|
210
|
-
|
|
211
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
# [8.0.0-next.2](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.1...v8.0.0-next.2) (2019-08-03)
|
|
218
|
-
|
|
219
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
# [8.0.0-next.1](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.0...v8.0.0-next.1) (2019-08-01)
|
|
226
|
-
|
|
227
|
-
**Note:** Version bump only for package verdaccio-auth-memory
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
# [8.0.0-next.0](https://github.com/verdaccio/monorepo/compare/v2.0.0...v8.0.0-next.0) (2019-08-01)
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
### Bug Fixes
|
|
237
|
-
|
|
238
|
-
* main file is correct routed ([245b115](https://github.com/verdaccio/monorepo/commit/245b115))
|
|
239
|
-
* remove source maps ([6ca4895](https://github.com/verdaccio/monorepo/commit/6ca4895))
|
|
240
|
-
* restore error messages ([5d241b6](https://github.com/verdaccio/monorepo/commit/5d241b6))
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
### Features
|
|
244
|
-
|
|
245
|
-
* add logging output for each action ([66f183c](https://github.com/verdaccio/monorepo/commit/66f183c))
|
|
246
|
-
* change password ([de0a341](https://github.com/verdaccio/monorepo/commit/de0a341))
|
|
247
|
-
* migrate to typescript BREAKING CHANGE: new compiler might bring issues ([13ebde2](https://github.com/verdaccio/monorepo/commit/13ebde2))
|
|
248
|
-
* **config:** allow set users ([e5326fd](https://github.com/verdaccio/monorepo/commit/e5326fd))
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
# Changelog
|
|
255
|
-
|
|
256
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
257
|
-
|
|
258
|
-
### [1.1.5](https://github.com/verdaccio/verdaccio-auth-memory/compare/v1.1.4...v1.1.5) (2019-07-15)
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
### Bug Fixes
|
|
262
|
-
|
|
263
|
-
* restore error messages ([094da45](https://github.com/verdaccio/verdaccio-auth-memory/commit/094da45))
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
### [1.1.4](https://github.com/verdaccio/verdaccio-auth-memory/compare/v1.1.3...v1.1.4) (2019-07-15)
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
### Tests
|
|
271
|
-
|
|
272
|
-
* fix wrong string match ([d4d2e81](https://github.com/verdaccio/verdaccio-auth-memory/commit/d4d2e81))
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
### [1.1.3](https://github.com/verdaccio/verdaccio-auth-memory/compare/v1.1.2...v1.1.3) (2019-07-15)
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
### Build System
|
|
280
|
-
|
|
281
|
-
* update @verdaccio/commons-api@0.1.2 ([55f39a4](https://github.com/verdaccio/verdaccio-auth-memory/commit/55f39a4))
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
### [1.1.2](https://github.com/verdaccio/verdaccio-auth-memory/compare/v1.1.1...v1.1.2) (2019-07-15)
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
### Build System
|
|
289
|
-
|
|
290
|
-
* build step before publish ([468ddbc](https://github.com/verdaccio/verdaccio-auth-memory/commit/468ddbc))
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
### [1.1.1](https://github.com/verdaccio/verdaccio-auth-memory/compare/v1.1.0...v1.1.1) (2019-07-12)
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
### Build System
|
|
298
|
-
|
|
299
|
-
* fix unit test ([6d7b383](https://github.com/verdaccio/verdaccio-auth-memory/commit/6d7b383))
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
## [1.1.0](https://github.com/verdaccio/verdaccio-auth-memory/compare/v1.0.2...v1.1.0) (2019-07-12)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
### Features
|
|
307
|
-
|
|
308
|
-
* add logging output for each action ([099f9aa](https://github.com/verdaccio/verdaccio-auth-memory/commit/099f9aa))
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
### [1.0.2](https://github.com/verdaccio/verdaccio-auth-memory/compare/v1.0.1...v1.0.2) (2019-07-12)
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
### Bug Fixes
|
|
316
|
-
|
|
317
|
-
* main file is correct routed ([722a615](https://github.com/verdaccio/verdaccio-auth-memory/commit/722a615))
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
### [1.0.1](https://github.com/verdaccio/verdaccio-auth-memory/compare/v1.0.0...v1.0.1) (2019-07-12)
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
### Bug Fixes
|
|
325
|
-
|
|
326
|
-
* remove source maps ([6f29a06](https://github.com/verdaccio/verdaccio-auth-memory/commit/6f29a06))
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
## [1.0.0](https://github.com/verdaccio/verdaccio-auth-memory/compare/v0.0.4...v1.0.0) (2019-07-12)
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
### Build System
|
|
334
|
-
|
|
335
|
-
* add coverage build script ([4f25313](https://github.com/verdaccio/verdaccio-auth-memory/commit/4f25313))
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
### Features
|
|
339
|
-
|
|
340
|
-
* change password ([19d9838](https://github.com/verdaccio/verdaccio-auth-memory/commit/19d9838))
|
|
341
|
-
* migrate to typescript ([4c3b144](https://github.com/verdaccio/verdaccio-auth-memory/commit/4c3b144))
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
### BREAKING CHANGES
|
|
345
|
-
|
|
346
|
-
* new compiler might bring issues
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Config } from '@verdaccio/types';
|
|
2
|
-
export interface UserMemory {
|
|
3
|
-
name: string;
|
|
4
|
-
password: string;
|
|
5
|
-
}
|
|
6
|
-
export interface Users {
|
|
7
|
-
[key: string]: UserMemory;
|
|
8
|
-
}
|
|
9
|
-
export interface VerdaccioMemoryConfig extends Config {
|
|
10
|
-
max_users?: number;
|
|
11
|
-
users: Users;
|
|
12
|
-
}
|