mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 05:52:02 +02:00
Initial commit
This commit is contained in:
12
node_modules/ienoopen/CHANGELOG.md
generated
vendored
Normal file
12
node_modules/ienoopen/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 1.1.0 - 2019-03-10
|
||||
### Added
|
||||
- Added TypeScript type definitions. See [#1](https://github.com/helmetjs/ienoopen/pull/1) and [helmetjs/helmet#188](https://github.com/helmetjs/helmet/issues/188)
|
||||
- Created a changelog
|
||||
|
||||
### Changed
|
||||
- Updated documentation
|
||||
- Excluded some files from npm package
|
||||
|
||||
Changes in versions 1.0.0 and below can be found in [Helmet's changelog](https://github.com/helmetjs/helmet/blob/master/CHANGELOG.md).
|
21
node_modules/ienoopen/LICENSE
generated
vendored
Normal file
21
node_modules/ienoopen/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2019 Evan Hahn, Adam Baldwin
|
||||
|
||||
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.
|
14
node_modules/ienoopen/README.md
generated
vendored
Normal file
14
node_modules/ienoopen/README.md
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
Internet Explorer, restrict untrusted HTML
|
||||
==========================================
|
||||
[](https://travis-ci.org/helmetjs/ienoopen)
|
||||
|
||||
This middleware sets the `X-Download-Options` header to `noopen` to prevent Internet Explorer users from executing downloads in your site's context.
|
||||
|
||||
```javascript
|
||||
const ienoopen = require('ienoopen')
|
||||
app.use(ienoopen())
|
||||
```
|
||||
|
||||
Some web applications will serve untrusted HTML for download. By default, some versions of IE will allow you to open those HTML files *in the context of your site*, which means that an untrusted HTML page could start doing bad things in the context of your pages. For more, see [this MSDN blog post](http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx).
|
||||
|
||||
This is pretty obscure, fixing a small bug on IE only. No real drawbacks other than performance/bandwidth of setting the headers, though.
|
4
node_modules/ienoopen/dist/index.d.ts
generated
vendored
Normal file
4
node_modules/ienoopen/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/// <reference types="node" />
|
||||
import { IncomingMessage, ServerResponse } from 'http';
|
||||
declare const _default: () => (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
||||
export = _default;
|
7
node_modules/ienoopen/dist/index.js
generated
vendored
Normal file
7
node_modules/ienoopen/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
module.exports = function ienoopen() {
|
||||
return function ienoopen(req, res, next) {
|
||||
res.setHeader('X-Download-Options', 'noopen');
|
||||
next();
|
||||
};
|
||||
};
|
85
node_modules/ienoopen/package.json
generated
vendored
Normal file
85
node_modules/ienoopen/package.json
generated
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"_from": "ienoopen@1.1.0",
|
||||
"_id": "ienoopen@1.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-MFs36e/ca6ohEKtinTJ5VvAJ6oDRAYFdYXweUnGY9L9vcoqFOU4n2ZhmJ0C4z/cwGZ3YIQRSB3XZ1+ghZkY5NQ==",
|
||||
"_location": "/ienoopen",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "ienoopen@1.1.0",
|
||||
"name": "ienoopen",
|
||||
"escapedName": "ienoopen",
|
||||
"rawSpec": "1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/helmet"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/ienoopen/-/ienoopen-1.1.0.tgz",
|
||||
"_shasum": "411e5d530c982287dbdc3bb31e7a9c9e32630974",
|
||||
"_spec": "ienoopen@1.1.0",
|
||||
"_where": "/home/runner/Socketio-Chat-Template/node_modules/helmet",
|
||||
"author": {
|
||||
"name": "Adam Baldwin",
|
||||
"email": "adam@npmjs.com",
|
||||
"url": "https://evilpacket.net"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/helmetjs/ienoopen/issues",
|
||||
"email": "me@evanhahn.com"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Evan Hahn",
|
||||
"email": "me@evanhahn.com",
|
||||
"url": "https://evanhahn.com"
|
||||
}
|
||||
],
|
||||
"deprecated": false,
|
||||
"description": "Middleware for IE security. Set X-Download-Options to noopen.",
|
||||
"devDependencies": {
|
||||
"@types/connect": "^3.4.32",
|
||||
"@types/jest": "^24.0.9",
|
||||
"@types/supertest": "^2.0.7",
|
||||
"connect": "^3.6.6",
|
||||
"jest": "^24.3.1",
|
||||
"supertest": "^3.3.0",
|
||||
"ts-jest": "^24.0.0",
|
||||
"tslint": "^5.13.1",
|
||||
"tslint-config-standard": "^8.0.1",
|
||||
"typescript": "^3.3.3333"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.0.0"
|
||||
},
|
||||
"homepage": "https://helmetjs.github.io/docs/ienoopen/",
|
||||
"keywords": [
|
||||
"helmet",
|
||||
"security",
|
||||
"express",
|
||||
"connect",
|
||||
"noopen",
|
||||
"x-download-options"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./dist/index.js",
|
||||
"name": "ienoopen",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/helmetjs/ienoopen.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run clean && tsc",
|
||||
"clean": "rm -rf dist",
|
||||
"lint": "tslint --project . --fix",
|
||||
"prepublishOnly": "npm run build",
|
||||
"pretest": "npm run lint",
|
||||
"test": "jest --config test/jest-config.json"
|
||||
},
|
||||
"typings": "./dist/index.d.ts",
|
||||
"version": "1.1.0"
|
||||
}
|
Reference in New Issue
Block a user