Initial commit

This commit is contained in:
abrendan
2023-11-30 14:15:19 +00:00
commit e4599df811
5457 changed files with 500139 additions and 0 deletions

7
node_modules/dns-prefetch-control/dist/index.d.ts generated vendored Normal file
View File

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

16
node_modules/dns-prefetch-control/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
function getHeaderValueFromOptions(options) {
if (options && options.allow) {
return 'on';
}
else {
return 'off';
}
}
module.exports = function dnsPrefetchControl(options) {
var headerValue = getHeaderValueFromOptions(options);
return function dnsPrefetchControl(_req, res, next) {
res.setHeader('X-DNS-Prefetch-Control', headerValue);
next();
};
};