Security upgrades

This commit is contained in:
2020-07-15 19:54:48 +02:00
parent 59cc6c54cd
commit ad8ed283d2
3164 changed files with 408897 additions and 28 deletions

7
node_modules/hide-powered-by/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/// <reference types="node" />
import { IncomingMessage, ServerResponse } from 'http';
interface HidePoweredByOptions {
setTo?: string;
}
declare const _default: (options?: HidePoweredByOptions | undefined) => (_req: IncomingMessage, res: ServerResponse, next: () => void) => void;
export = _default;

16
node_modules/hide-powered-by/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
module.exports = function hidePoweredBy(options) {
var _a = (options || {}).setTo, setTo = _a === void 0 ? null : _a;
if (setTo) {
return function hidePoweredBy(_req, res, next) {
res.setHeader('X-Powered-By', setTo);
next();
};
}
else {
return function hidePoweredBy(_req, res, next) {
res.removeHeader('X-Powered-By');
next();
};
}
};