mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-04-08 02:54:13 -05:00
chore: merge from master
This commit is contained in:
parent
6b6eaf6b67
commit
9561bd9e82
4 changed files with 1 additions and 7 deletions
|
@ -19,7 +19,6 @@ function createUplink(config) {
|
|||
|
||||
function setHeaders(config: unknown = {}, headers: unknown = {}) {
|
||||
const uplink = createUplink(config);
|
||||
// @ts-ignore
|
||||
return uplink._setHeaders({
|
||||
headers,
|
||||
});
|
||||
|
|
|
@ -47,7 +47,7 @@ const defineAPI = function (config: IConfig, storage: IStorageHandler): any {
|
|||
app.use(limiter);
|
||||
|
||||
// Router setup
|
||||
app.use(log(config));
|
||||
app.use(log);
|
||||
app.use(errorReportingMiddleware);
|
||||
app.use(function (req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer): void {
|
||||
res.setHeader('X-Powered-By', config.user_agent);
|
||||
|
|
|
@ -30,10 +30,6 @@ packages:
|
|||
access: $all
|
||||
publish: $all
|
||||
proxy: npmjs
|
||||
'timeout':
|
||||
access: $all
|
||||
publish: $all
|
||||
proxy: socketTimeout
|
||||
'@scope/*':
|
||||
access: test
|
||||
publish: dsadsa
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"readme": "this is a readme",
|
||||
"_id": "test-readme@0.0.0",
|
||||
"dist": {
|
||||
"shasum": "8ee7331cbc641581b1a8cecd9d38d744a8feb863",
|
||||
|
|
Loading…
Add table
Reference in a new issue