schnee effeckt und fehler Korektur

This commit is contained in:
2023-08-14 17:52:24 +02:00
parent 4a843d4936
commit 79af4e9907
6813 changed files with 343821 additions and 356128 deletions

35
node_modules/caw/index.js generated vendored
View File

@@ -1,37 +1,36 @@
'use strict';
var url = require('url');
var getProxy = require('get-proxy');
var objectAssign = require('object-assign');
var tunnelAgent = require('tunnel-agent');
var isObj = require('is-obj');
const url = require('url');
const getProxy = require('get-proxy');
const isurl = require('isurl');
const tunnelAgent = require('tunnel-agent');
const urlToOptions = require('url-to-options');
module.exports = function (proxy, opts) {
opts = objectAssign({}, opts);
module.exports = (proxy, opts) => {
proxy = proxy || getProxy();
opts = Object.assign({}, opts);
if (isObj(proxy)) {
if (typeof proxy === 'object') {
opts = proxy;
proxy = getProxy();
} else if (proxy === undefined) {
proxy = getProxy();
}
if (!proxy) {
return undefined;
return null;
}
proxy = url.parse(proxy);
proxy = isurl.lenient(proxy) ? urlToOptions(proxy) : url.parse(proxy);
var uriProtocol = opts.protocol === 'https' ? 'https' : 'http';
var proxyProtocol = proxy.protocol === 'https:' ? 'Https' : 'Http';
var port = proxy.port || (proxyProtocol === 'Https' ? 443 : 80);
var method = [uriProtocol, proxyProtocol].join('Over');
const uriProtocol = opts.protocol === 'https' ? 'https' : 'http';
const proxyProtocol = proxy.protocol === 'https:' ? 'Https' : 'Http';
const port = proxy.port || (proxyProtocol === 'Https' ? 443 : 80);
const method = `${uriProtocol}Over${proxyProtocol}`;
delete opts.protocol;
return tunnelAgent[method](objectAssign({
return tunnelAgent[method](Object.assign({
proxy: {
port,
host: proxy.hostname,
port: port,
proxyAuth: proxy.auth
}
}, opts));

20
node_modules/caw/license generated vendored
View File

@@ -1,21 +1,9 @@
The MIT License (MIT)
MIT License
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
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:
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 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.
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.

View File

@@ -1,39 +0,0 @@
'use strict';
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
function ToObject(val) {
if (val == null) {
throw new TypeError('Object.assign cannot be called with null or undefined');
}
return Object(val);
}
function ownEnumerableKeys(obj) {
var keys = Object.getOwnPropertyNames(obj);
if (Object.getOwnPropertySymbols) {
keys = keys.concat(Object.getOwnPropertySymbols(obj));
}
return keys.filter(function (key) {
return propIsEnumerable.call(obj, key);
});
}
module.exports = Object.assign || function (target, source) {
var from;
var keys;
var to = ToObject(target);
for (var s = 1; s < arguments.length; s++) {
from = arguments[s];
keys = ownEnumerableKeys(Object(from));
for (var i = 0; i < keys.length; i++) {
to[keys[i]] = from[keys[i]];
}
}
return to;
};

View File

@@ -1,21 +0,0 @@
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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.

View File

@@ -1,38 +0,0 @@
{
"name": "object-assign",
"version": "3.0.0",
"description": "ES6 Object.assign() ponyfill",
"license": "MIT",
"repository": "sindresorhus/object-assign",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js"
],
"keywords": [
"object",
"assign",
"extend",
"properties",
"es6",
"ecmascript",
"harmony",
"ponyfill",
"prollyfill",
"polyfill",
"shim",
"browser"
],
"devDependencies": {
"mocha": "*"
}
}

View File

@@ -1,51 +0,0 @@
# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign)
> ES6 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) ponyfill
> Ponyfill: A polyfill that doesn't overwrite the native method
## Install
```sh
$ npm install --save object-assign
```
## Usage
```js
var objectAssign = require('object-assign');
objectAssign({foo: 0}, {bar: 1});
//=> {foo: 0, bar: 1}
// multiple sources
objectAssign({foo: 0}, {bar: 1}, {baz: 2});
//=> {foo: 0, bar: 1, baz: 2}
// overwrites equal keys
objectAssign({foo: 0}, {foo: 1}, {foo: 2});
//=> {foo: 2}
// ignores null and undefined sources
objectAssign({foo: 0}, null, {bar: 1}, undefined);
//=> {foo: 0, bar: 1}
```
## API
### objectAssign(target, source, [source, ...])
Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.
## Resources
- [ES6 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign)
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)

84
node_modules/caw/package.json generated vendored
View File

@@ -1,39 +1,49 @@
{
"name": "caw",
"version": "1.2.0",
"description": "Construct HTTP/HTTPS agents for tunneling proxies",
"license": "MIT",
"repository": "kevva/caw",
"author": {
"email": "kevinmartensson@gmail.com",
"name": "Kevin Mårtensson",
"url": "github.com/kevva"
},
"scripts": {
"test": "xo && tap test/test.js -t2"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"keywords": [
"http",
"https",
"proxy",
"tunnel"
],
"dependencies": {
"get-proxy": "^1.0.1",
"is-obj": "^1.0.0",
"object-assign": "^3.0.0",
"tunnel-agent": "^0.4.0"
},
"devDependencies": {
"proxyquire": "^1.6.0",
"sinon": "^1.15.4",
"tap": "^1.3.1",
"xo": "*"
}
"name": "caw",
"version": "2.0.1",
"description": "Construct HTTP/HTTPS agents for tunneling proxies",
"license": "MIT",
"repository": "kevva/caw",
"author": {
"email": "kevinmartensson@gmail.com",
"name": "Kevin Mårtensson",
"url": "github.com/kevva"
},
"scripts": {
"test": "xo && ava"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"keywords": [
"http",
"https",
"proxy",
"tunnel"
],
"dependencies": {
"get-proxy": "^2.0.0",
"isurl": "^1.0.0-alpha5",
"tunnel-agent": "^0.6.0",
"url-to-options": "^1.0.1"
},
"devDependencies": {
"ava": "*",
"create-cert": "^1.0.4",
"get-port": "^3.1.0",
"got": "^7.0.0",
"pify": "^3.0.0",
"proxyquire": "^1.7.9",
"sinon": "^2.3.1",
"universal-url": "1.0.0-alpha",
"xo": "*"
},
"xo": {
"rules": {
"ava/no-skip-test": 0
}
}
}

20
node_modules/caw/readme.md generated vendored
View File

@@ -6,41 +6,41 @@
## Install
```
$ npm install --save caw
$ npm install caw
```
## Usage
```js
var caw = require('caw');
var got = require('got');
const caw = require('caw');
const got = require('got');
got('todomvc.com', {
agent: caw()
}, function () {});
}, () => {});
```
## API
### caw(proxy, options)
### caw([proxy], [options])
#### proxy
Type: `string`
Proxy URL.
Proxy URL. If not set, it'll try getting it using [`get-proxy`](https://github.com/kevva/get-proxy).
#### options
Type: `object`
Type: `Object`
Besides the options below, you can pass in options allowed in [tunnel-agent](https://github.com/koichik/node-tunnel).
Besides the options below, you can pass in options allowed in [tunnel-agent](https://github.com/request/tunnel-agent).
##### protocol
Type: `string`
Type: `string`<br>
Default: `http`
Endpoint protocol.
@@ -48,4 +48,4 @@ Endpoint protocol.
## License
MIT © [Kevin Mårtensson](http://github.com/kevva)
MIT © [Kevin Mårtensson](https://github.com/kevva)