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

11
node_modules/expect-ct/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,11 @@
# Changelog
## Unreleased
### Added
- TypeScript type definitions. See [helmetjs/helmet#188](https://github.com/helmetjs/helmet/issues/188)
- Additional package metadata (bugs, homepage, etc)
### Changed
- Updated documentation
Changes in versions 0.1.1 and below can be found in [Helmet's changelog](https://github.com/helmetjs/helmet/blob/master/CHANGELOG.md).

21
node_modules/expect-ct/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2017-2019 Evan Hahn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

27
node_modules/expect-ct/README.md generated vendored Normal file
View File

@@ -0,0 +1,27 @@
Expect-CT
=========
[![Build Status](https://travis-ci.org/helmetjs/expect-ct.svg?branch=master)](https://travis-ci.org/helmetjs/expect-ct)
The `Expect-CT` HTTP header tells browsers to expect Certificate Transparency. For more, see [this blog post](https://scotthelme.co.uk/a-new-security-header-expect-ct/) and the [article on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT).
Usage:
```javascript
const expectCt = require('expect-ct')
// Sets Expect-CT: max-age=123
app.use(expectCt({ maxAge: 123 }))
// Sets Expect-CT: enforce, max-age=123
app.use(expectCt({
enforce: true,
maxAge: 123
}))
// Sets Expect-CT: enforce, max-age=30, report-uri="https://example.com/report"
app.use(expectCt({
enforce: true,
maxAge: 30,
reportUri: 'https://example.com/report'
}))
```

9
node_modules/expect-ct/dist/index.d.ts generated vendored Normal file
View File

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

29
node_modules/expect-ct/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
"use strict";
function parseMaxAge(option) {
if (option === undefined) {
return 0;
}
if (typeof option !== 'number' || option < 0) {
throw new Error(option + " is not a valid value for maxAge. Please choose a positive integer.");
}
return option;
}
function getHeaderValueFromOptions(options) {
options = options || {};
var directives = [];
if (options.enforce) {
directives.push('enforce');
}
directives.push("max-age=" + parseMaxAge(options.maxAge));
if (options.reportUri) {
directives.push("report-uri=\"" + options.reportUri + "\"");
}
return directives.join(', ');
}
module.exports = function expectCt(options) {
var headerValue = getHeaderValueFromOptions(options);
return function expectCt(_req, res, next) {
res.setHeader('Expect-CT', headerValue);
next();
};
};

87
node_modules/expect-ct/package.json generated vendored Normal file
View File

@@ -0,0 +1,87 @@
{
"_from": "expect-ct@0.2.0",
"_id": "expect-ct@0.2.0",
"_inBundle": false,
"_integrity": "sha512-6SK3MG/Bbhm8MsgyJAylg+ucIOU71/FzyFalcfu5nY19dH8y/z0tBJU0wrNBXD4B27EoQtqPF/9wqH0iYAd04g==",
"_location": "/expect-ct",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "expect-ct@0.2.0",
"name": "expect-ct",
"escapedName": "expect-ct",
"rawSpec": "0.2.0",
"saveSpec": null,
"fetchSpec": "0.2.0"
},
"_requiredBy": [
"/helmet"
],
"_resolved": "https://registry.npmjs.org/expect-ct/-/expect-ct-0.2.0.tgz",
"_shasum": "3a54741b6ed34cc7a93305c605f63cd268a54a62",
"_spec": "expect-ct@0.2.0",
"_where": "/home/runner/Socketio-Chat-Template/node_modules/helmet",
"author": {
"name": "Evan Hahn",
"email": "me@evanhahn.com",
"url": "https://evanhahn.com"
},
"bugs": {
"url": "https://github.com/helmetjs/expect-ct/issues",
"email": "me@evanhahn.com"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Middleware to set the Expect-CT header",
"devDependencies": {
"@types/connect": "^3.4.32",
"@types/jest": "^24.0.12",
"@types/supertest": "^2.0.7",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"connect": "^3.6.6",
"eslint": "^5.16.0",
"eslint-config-helmet": "^0.2.0",
"jest": "^24.7.1",
"supertest": "^4.0.2",
"ts-jest": "^24.0.2",
"typescript": "^3.4.5"
},
"engines": {
"node": ">=4.0.0"
},
"files": [
"CHANGELOG.md",
"LICENSE",
"README.md",
"dist/index.js",
"dist/index.d.ts"
],
"homepage": "https://helmetjs.github.io/docs/expect-ct/",
"keywords": [
"helmet",
"security",
"express",
"connect",
"expect-ct"
],
"license": "MIT",
"main": "./dist/index.js",
"name": "expect-ct",
"repository": {
"type": "git",
"url": "git://github.com/helmetjs/expect-ct.git"
},
"scripts": {
"build": "npm run clean && tsc",
"clean": "rm -rf dist",
"lint": "eslint --fix '**/*.ts'",
"prepublishOnly": "npm run build",
"pretest": "npm run lint",
"test": "jest --config test/jest-config.json"
},
"typings": "./dist/index.d.ts",
"version": "0.2.0"
}