0
Fork 0
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:
Juan Picado 2021-03-06 22:54:42 +01:00
parent 6b6eaf6b67
commit 9561bd9e82
4 changed files with 1 additions and 7 deletions

View file

@ -19,7 +19,6 @@ function createUplink(config) {
function setHeaders(config: unknown = {}, headers: unknown = {}) {
const uplink = createUplink(config);
// @ts-ignore
return uplink._setHeaders({
headers,
});

View file

@ -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);

View file

@ -30,10 +30,6 @@ packages:
access: $all
publish: $all
proxy: npmjs
'timeout':
access: $all
publish: $all
proxy: socketTimeout
'@scope/*':
access: test
publish: dsadsa

View file

@ -21,7 +21,6 @@
},
"author": "",
"license": "ISC",
"readme": "this is a readme",
"_id": "test-readme@0.0.0",
"dist": {
"shasum": "8ee7331cbc641581b1a8cecd9d38d744a8feb863",