update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
22
electron/node_modules/https-proxy-agent/LICENSE
generated
vendored
Normal file
22
electron/node_modules/https-proxy-agent/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
(The MIT License)
|
||||
|
||||
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
||||
|
||||
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.
|
||||
99
electron/node_modules/https-proxy-agent/README.md
generated
vendored
99
electron/node_modules/https-proxy-agent/README.md
generated
vendored
|
|
@ -1,7 +1,6 @@
|
|||
https-proxy-agent
|
||||
================
|
||||
### An HTTP(s) proxy `http.Agent` implementation for HTTPS
|
||||
[](https://github.com/TooTallNate/node-https-proxy-agent/actions?workflow=Node+CI)
|
||||
|
||||
This module provides an `http.Agent` implementation that connects to a specified
|
||||
HTTP or HTTPS proxy server, and can be used with the built-in `https` module.
|
||||
|
|
@ -14,41 +13,18 @@ Since this agent implements the CONNECT HTTP method, it also works with other
|
|||
protocols that use this method when connecting over proxies (i.e. WebSockets).
|
||||
See the "Examples" section below for more.
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Install with `npm`:
|
||||
|
||||
``` bash
|
||||
$ npm install https-proxy-agent
|
||||
```
|
||||
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
#### `https` module example
|
||||
|
||||
``` js
|
||||
var url = require('url');
|
||||
var https = require('https');
|
||||
var HttpsProxyAgent = require('https-proxy-agent');
|
||||
```ts
|
||||
import * as https from 'https';
|
||||
import { HttpsProxyAgent } from 'https-proxy-agent';
|
||||
|
||||
// HTTP/HTTPS proxy to connect to
|
||||
var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
|
||||
console.log('using proxy server %j', proxy);
|
||||
const agent = new HttpsProxyAgent('http://168.63.76.32:3128');
|
||||
|
||||
// HTTPS endpoint for the proxy to connect to
|
||||
var endpoint = process.argv[2] || 'https://graph.facebook.com/tootallnate';
|
||||
console.log('attempting to GET %j', endpoint);
|
||||
var options = url.parse(endpoint);
|
||||
|
||||
// create an instance of the `HttpsProxyAgent` class with the proxy server information
|
||||
var agent = new HttpsProxyAgent(proxy);
|
||||
options.agent = agent;
|
||||
|
||||
https.get(options, function (res) {
|
||||
https.get('https://example.com', { agent }, (res) => {
|
||||
console.log('"response" event!', res.headers);
|
||||
res.pipe(process.stdout);
|
||||
});
|
||||
|
|
@ -56,27 +32,12 @@ https.get(options, function (res) {
|
|||
|
||||
#### `ws` WebSocket connection example
|
||||
|
||||
``` js
|
||||
var url = require('url');
|
||||
var WebSocket = require('ws');
|
||||
var HttpsProxyAgent = require('https-proxy-agent');
|
||||
```ts
|
||||
import WebSocket from 'ws';
|
||||
import { HttpsProxyAgent } from 'https-proxy-agent';
|
||||
|
||||
// HTTP/HTTPS proxy to connect to
|
||||
var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
|
||||
console.log('using proxy server %j', proxy);
|
||||
|
||||
// WebSocket endpoint for the proxy to connect to
|
||||
var endpoint = process.argv[2] || 'ws://echo.websocket.org';
|
||||
var parsed = url.parse(endpoint);
|
||||
console.log('attempting to connect to WebSocket %j', endpoint);
|
||||
|
||||
// create an instance of the `HttpsProxyAgent` class with the proxy server information
|
||||
var options = url.parse(proxy);
|
||||
|
||||
var agent = new HttpsProxyAgent(options);
|
||||
|
||||
// finally, initiate the WebSocket connection
|
||||
var socket = new WebSocket(endpoint, { agent: agent });
|
||||
const agent = new HttpsProxyAgent('http://168.63.76.32:3128');
|
||||
const socket = new WebSocket('ws://echo.websocket.org', { agent });
|
||||
|
||||
socket.on('open', function () {
|
||||
console.log('"open" event!');
|
||||
|
|
@ -92,46 +53,18 @@ socket.on('message', function (data, flags) {
|
|||
API
|
||||
---
|
||||
|
||||
### new HttpsProxyAgent(Object options)
|
||||
### new HttpsProxyAgent(proxy: string | URL, options?: HttpsProxyAgentOptions)
|
||||
|
||||
The `HttpsProxyAgent` class implements an `http.Agent` subclass that connects
|
||||
to the specified "HTTP(s) proxy server" in order to proxy HTTPS and/or WebSocket
|
||||
requests. This is achieved by using the [HTTP `CONNECT` method][CONNECT].
|
||||
|
||||
The `options` argument may either be a string URI of the proxy server to use, or an
|
||||
"options" object with more specific properties:
|
||||
The `proxy` argument is the URL for the proxy server.
|
||||
|
||||
* `host` - String - Proxy host to connect to (may use `hostname` as well). Required.
|
||||
* `port` - Number - Proxy port to connect to. Required.
|
||||
* `protocol` - String - If `https:`, then use TLS to connect to the proxy.
|
||||
* `headers` - Object - Additional HTTP headers to be sent on the HTTP CONNECT method.
|
||||
* Any other options given are passed to the `net.connect()`/`tls.connect()` functions.
|
||||
The `options` argument accepts the usual `http.Agent` constructor options, and
|
||||
some additional properties:
|
||||
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
||||
|
||||
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.
|
||||
* `headers` - Object containing additional headers to send to the proxy server
|
||||
in the `CONNECT` request.
|
||||
|
||||
[CONNECT]: http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling
|
||||
|
|
|
|||
30
electron/node_modules/https-proxy-agent/dist/agent.d.ts
generated
vendored
30
electron/node_modules/https-proxy-agent/dist/agent.d.ts
generated
vendored
|
|
@ -1,30 +0,0 @@
|
|||
/// <reference types="node" />
|
||||
import net from 'net';
|
||||
import { Agent, ClientRequest, RequestOptions } from 'agent-base';
|
||||
import { HttpsProxyAgentOptions } from '.';
|
||||
/**
|
||||
* The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
|
||||
* the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
|
||||
*
|
||||
* Outgoing HTTP requests are first tunneled through the proxy server using the
|
||||
* `CONNECT` HTTP request method to establish a connection to the proxy server,
|
||||
* and then the proxy server connects to the destination target and issues the
|
||||
* HTTP request from the proxy server.
|
||||
*
|
||||
* `https:` requests have their socket connection upgraded to TLS once
|
||||
* the connection to the proxy server has been established.
|
||||
*
|
||||
* @api public
|
||||
*/
|
||||
export default class HttpsProxyAgent extends Agent {
|
||||
private secureProxy;
|
||||
private proxy;
|
||||
constructor(_opts: string | HttpsProxyAgentOptions);
|
||||
/**
|
||||
* Called when the node-core HTTP client library is creating a
|
||||
* new HTTP request.
|
||||
*
|
||||
* @api protected
|
||||
*/
|
||||
callback(req: ClientRequest, opts: RequestOptions): Promise<net.Socket>;
|
||||
}
|
||||
177
electron/node_modules/https-proxy-agent/dist/agent.js
generated
vendored
177
electron/node_modules/https-proxy-agent/dist/agent.js
generated
vendored
|
|
@ -1,177 +0,0 @@
|
|||
"use strict";
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const net_1 = __importDefault(require("net"));
|
||||
const tls_1 = __importDefault(require("tls"));
|
||||
const url_1 = __importDefault(require("url"));
|
||||
const assert_1 = __importDefault(require("assert"));
|
||||
const debug_1 = __importDefault(require("debug"));
|
||||
const agent_base_1 = require("agent-base");
|
||||
const parse_proxy_response_1 = __importDefault(require("./parse-proxy-response"));
|
||||
const debug = debug_1.default('https-proxy-agent:agent');
|
||||
/**
|
||||
* The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
|
||||
* the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
|
||||
*
|
||||
* Outgoing HTTP requests are first tunneled through the proxy server using the
|
||||
* `CONNECT` HTTP request method to establish a connection to the proxy server,
|
||||
* and then the proxy server connects to the destination target and issues the
|
||||
* HTTP request from the proxy server.
|
||||
*
|
||||
* `https:` requests have their socket connection upgraded to TLS once
|
||||
* the connection to the proxy server has been established.
|
||||
*
|
||||
* @api public
|
||||
*/
|
||||
class HttpsProxyAgent extends agent_base_1.Agent {
|
||||
constructor(_opts) {
|
||||
let opts;
|
||||
if (typeof _opts === 'string') {
|
||||
opts = url_1.default.parse(_opts);
|
||||
}
|
||||
else {
|
||||
opts = _opts;
|
||||
}
|
||||
if (!opts) {
|
||||
throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!');
|
||||
}
|
||||
debug('creating new HttpsProxyAgent instance: %o', opts);
|
||||
super(opts);
|
||||
const proxy = Object.assign({}, opts);
|
||||
// If `true`, then connect to the proxy server over TLS.
|
||||
// Defaults to `false`.
|
||||
this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
|
||||
// Prefer `hostname` over `host`, and set the `port` if needed.
|
||||
proxy.host = proxy.hostname || proxy.host;
|
||||
if (typeof proxy.port === 'string') {
|
||||
proxy.port = parseInt(proxy.port, 10);
|
||||
}
|
||||
if (!proxy.port && proxy.host) {
|
||||
proxy.port = this.secureProxy ? 443 : 80;
|
||||
}
|
||||
// ALPN is supported by Node.js >= v5.
|
||||
// attempt to negotiate http/1.1 for proxy servers that support http/2
|
||||
if (this.secureProxy && !('ALPNProtocols' in proxy)) {
|
||||
proxy.ALPNProtocols = ['http 1.1'];
|
||||
}
|
||||
if (proxy.host && proxy.path) {
|
||||
// If both a `host` and `path` are specified then it's most likely
|
||||
// the result of a `url.parse()` call... we need to remove the
|
||||
// `path` portion so that `net.connect()` doesn't attempt to open
|
||||
// that as a Unix socket file.
|
||||
delete proxy.path;
|
||||
delete proxy.pathname;
|
||||
}
|
||||
this.proxy = proxy;
|
||||
}
|
||||
/**
|
||||
* Called when the node-core HTTP client library is creating a
|
||||
* new HTTP request.
|
||||
*
|
||||
* @api protected
|
||||
*/
|
||||
callback(req, opts) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const { proxy, secureProxy } = this;
|
||||
// Create a socket connection to the proxy server.
|
||||
let socket;
|
||||
if (secureProxy) {
|
||||
debug('Creating `tls.Socket`: %o', proxy);
|
||||
socket = tls_1.default.connect(proxy);
|
||||
}
|
||||
else {
|
||||
debug('Creating `net.Socket`: %o', proxy);
|
||||
socket = net_1.default.connect(proxy);
|
||||
}
|
||||
const headers = Object.assign({}, proxy.headers);
|
||||
const hostname = `${opts.host}:${opts.port}`;
|
||||
let payload = `CONNECT ${hostname} HTTP/1.1\r\n`;
|
||||
// Inject the `Proxy-Authorization` header if necessary.
|
||||
if (proxy.auth) {
|
||||
headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`;
|
||||
}
|
||||
// The `Host` header should only include the port
|
||||
// number when it is not the default port.
|
||||
let { host, port, secureEndpoint } = opts;
|
||||
if (!isDefaultPort(port, secureEndpoint)) {
|
||||
host += `:${port}`;
|
||||
}
|
||||
headers.Host = host;
|
||||
headers.Connection = 'close';
|
||||
for (const name of Object.keys(headers)) {
|
||||
payload += `${name}: ${headers[name]}\r\n`;
|
||||
}
|
||||
const proxyResponsePromise = parse_proxy_response_1.default(socket);
|
||||
socket.write(`${payload}\r\n`);
|
||||
const { statusCode, buffered } = yield proxyResponsePromise;
|
||||
if (statusCode === 200) {
|
||||
req.once('socket', resume);
|
||||
if (opts.secureEndpoint) {
|
||||
// The proxy is connecting to a TLS server, so upgrade
|
||||
// this socket connection to a TLS connection.
|
||||
debug('Upgrading socket connection to TLS');
|
||||
const servername = opts.servername || opts.host;
|
||||
return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket,
|
||||
servername }));
|
||||
}
|
||||
return socket;
|
||||
}
|
||||
// Some other status code that's not 200... need to re-play the HTTP
|
||||
// header "data" events onto the socket once the HTTP machinery is
|
||||
// attached so that the node core `http` can parse and handle the
|
||||
// error status code.
|
||||
// Close the original socket, and a new "fake" socket is returned
|
||||
// instead, so that the proxy doesn't get the HTTP request
|
||||
// written to it (which may contain `Authorization` headers or other
|
||||
// sensitive data).
|
||||
//
|
||||
// See: https://hackerone.com/reports/541502
|
||||
socket.destroy();
|
||||
const fakeSocket = new net_1.default.Socket({ writable: false });
|
||||
fakeSocket.readable = true;
|
||||
// Need to wait for the "socket" event to re-play the "data" events.
|
||||
req.once('socket', (s) => {
|
||||
debug('replaying proxy buffer for failed request');
|
||||
assert_1.default(s.listenerCount('data') > 0);
|
||||
// Replay the "buffered" Buffer onto the fake `socket`, since at
|
||||
// this point the HTTP module machinery has been hooked up for
|
||||
// the user.
|
||||
s.push(buffered);
|
||||
s.push(null);
|
||||
});
|
||||
return fakeSocket;
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.default = HttpsProxyAgent;
|
||||
function resume(socket) {
|
||||
socket.resume();
|
||||
}
|
||||
function isDefaultPort(port, secure) {
|
||||
return Boolean((!secure && port === 80) || (secure && port === 443));
|
||||
}
|
||||
function isHTTPS(protocol) {
|
||||
return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false;
|
||||
}
|
||||
function omit(obj, ...keys) {
|
||||
const ret = {};
|
||||
let key;
|
||||
for (key in obj) {
|
||||
if (!keys.includes(key)) {
|
||||
ret[key] = obj[key];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
//# sourceMappingURL=agent.js.map
|
||||
1
electron/node_modules/https-proxy-agent/dist/agent.js.map
generated
vendored
1
electron/node_modules/https-proxy-agent/dist/agent.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"agent.js","sourceRoot":"","sources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AG,CAAC,EAAE;YACxB,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;SACpB;KACD;IACD,OAAO,GAAG,CAAC;AACZ,CAAC"}
|
||||
66
electron/node_modules/https-proxy-agent/dist/index.d.ts
generated
vendored
66
electron/node_modules/https-proxy-agent/dist/index.d.ts
generated
vendored
|
|
@ -1,23 +1,47 @@
|
|||
/// <reference types="node" />
|
||||
import net from 'net';
|
||||
import tls from 'tls';
|
||||
import { Url } from 'url';
|
||||
import { AgentOptions } from 'agent-base';
|
||||
import { OutgoingHttpHeaders } from 'http';
|
||||
import _HttpsProxyAgent from './agent';
|
||||
declare function createHttpsProxyAgent(opts: string | createHttpsProxyAgent.HttpsProxyAgentOptions): _HttpsProxyAgent;
|
||||
declare namespace createHttpsProxyAgent {
|
||||
interface BaseHttpsProxyAgentOptions {
|
||||
headers?: OutgoingHttpHeaders;
|
||||
secureProxy?: boolean;
|
||||
host?: string | null;
|
||||
path?: string | null;
|
||||
port?: string | number | null;
|
||||
}
|
||||
export interface HttpsProxyAgentOptions extends AgentOptions, BaseHttpsProxyAgentOptions, Partial<Omit<Url & net.NetConnectOpts & tls.ConnectionOptions, keyof BaseHttpsProxyAgentOptions>> {
|
||||
}
|
||||
export type HttpsProxyAgent = _HttpsProxyAgent;
|
||||
export const HttpsProxyAgent: typeof _HttpsProxyAgent;
|
||||
export {};
|
||||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
import * as net from 'net';
|
||||
import * as tls from 'tls';
|
||||
import * as http from 'http';
|
||||
import { Agent, AgentConnectOpts } from 'agent-base';
|
||||
import { URL } from 'url';
|
||||
import type { OutgoingHttpHeaders } from 'http';
|
||||
type Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;
|
||||
type ConnectOptsMap = {
|
||||
http: Omit<net.TcpNetConnectOpts, 'host' | 'port'>;
|
||||
https: Omit<tls.ConnectionOptions, 'host' | 'port'>;
|
||||
};
|
||||
type ConnectOpts<T> = {
|
||||
[P in keyof ConnectOptsMap]: Protocol<T> extends P ? ConnectOptsMap[P] : never;
|
||||
}[keyof ConnectOptsMap];
|
||||
export type HttpsProxyAgentOptions<T> = ConnectOpts<T> & http.AgentOptions & {
|
||||
headers?: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
|
||||
};
|
||||
/**
|
||||
* The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
|
||||
* the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
|
||||
*
|
||||
* Outgoing HTTP requests are first tunneled through the proxy server using the
|
||||
* `CONNECT` HTTP request method to establish a connection to the proxy server,
|
||||
* and then the proxy server connects to the destination target and issues the
|
||||
* HTTP request from the proxy server.
|
||||
*
|
||||
* `https:` requests have their socket connection upgraded to TLS once
|
||||
* the connection to the proxy server has been established.
|
||||
*/
|
||||
export declare class HttpsProxyAgent<Uri extends string> extends Agent {
|
||||
static protocols: readonly ["http", "https"];
|
||||
readonly proxy: URL;
|
||||
proxyHeaders: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
|
||||
connectOpts: net.TcpNetConnectOpts & tls.ConnectionOptions;
|
||||
constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions<Uri>);
|
||||
/**
|
||||
* Called when the node-core HTTP client library is creating a
|
||||
* new HTTP request.
|
||||
*/
|
||||
connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<net.Socket>;
|
||||
}
|
||||
export = createHttpsProxyAgent;
|
||||
export {};
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
electron/node_modules/https-proxy-agent/dist/index.d.ts.map
generated
vendored
Normal file
1
electron/node_modules/https-proxy-agent/dist/index.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,GAA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B,CAAC;gBAE/C,KAAK,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,sBAAsB,CAAC,GAAG,CAAC;IA0BhE;;;OAGG;IACG,OAAO,CACZ,GAAG,EAAE,IAAI,CAAC,aAAa,EACvB,IAAI,EAAE,gBAAgB,GACpB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;CAwGtB"}
|
||||
182
electron/node_modules/https-proxy-agent/dist/index.js
generated
vendored
182
electron/node_modules/https-proxy-agent/dist/index.js
generated
vendored
|
|
@ -1,14 +1,180 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
const agent_1 = __importDefault(require("./agent"));
|
||||
function createHttpsProxyAgent(opts) {
|
||||
return new agent_1.default(opts);
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.HttpsProxyAgent = void 0;
|
||||
const net = __importStar(require("net"));
|
||||
const tls = __importStar(require("tls"));
|
||||
const assert_1 = __importDefault(require("assert"));
|
||||
const debug_1 = __importDefault(require("debug"));
|
||||
const agent_base_1 = require("agent-base");
|
||||
const url_1 = require("url");
|
||||
const parse_proxy_response_1 = require("./parse-proxy-response");
|
||||
const debug = (0, debug_1.default)('https-proxy-agent');
|
||||
const setServernameFromNonIpHost = (options) => {
|
||||
if (options.servername === undefined &&
|
||||
options.host &&
|
||||
!net.isIP(options.host)) {
|
||||
return {
|
||||
...options,
|
||||
servername: options.host,
|
||||
};
|
||||
}
|
||||
return options;
|
||||
};
|
||||
/**
|
||||
* The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
|
||||
* the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
|
||||
*
|
||||
* Outgoing HTTP requests are first tunneled through the proxy server using the
|
||||
* `CONNECT` HTTP request method to establish a connection to the proxy server,
|
||||
* and then the proxy server connects to the destination target and issues the
|
||||
* HTTP request from the proxy server.
|
||||
*
|
||||
* `https:` requests have their socket connection upgraded to TLS once
|
||||
* the connection to the proxy server has been established.
|
||||
*/
|
||||
class HttpsProxyAgent extends agent_base_1.Agent {
|
||||
constructor(proxy, opts) {
|
||||
super(opts);
|
||||
this.options = { path: undefined };
|
||||
this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy;
|
||||
this.proxyHeaders = opts?.headers ?? {};
|
||||
debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);
|
||||
// Trim off the brackets from IPv6 addresses
|
||||
const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, '');
|
||||
const port = this.proxy.port
|
||||
? parseInt(this.proxy.port, 10)
|
||||
: this.proxy.protocol === 'https:'
|
||||
? 443
|
||||
: 80;
|
||||
this.connectOpts = {
|
||||
// Attempt to negotiate http/1.1 for proxy servers that support http/2
|
||||
ALPNProtocols: ['http/1.1'],
|
||||
...(opts ? omit(opts, 'headers') : null),
|
||||
host,
|
||||
port,
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Called when the node-core HTTP client library is creating a
|
||||
* new HTTP request.
|
||||
*/
|
||||
async connect(req, opts) {
|
||||
const { proxy } = this;
|
||||
if (!opts.host) {
|
||||
throw new TypeError('No "host" provided');
|
||||
}
|
||||
// Create a socket connection to the proxy server.
|
||||
let socket;
|
||||
if (proxy.protocol === 'https:') {
|
||||
debug('Creating `tls.Socket`: %o', this.connectOpts);
|
||||
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
|
||||
}
|
||||
else {
|
||||
debug('Creating `net.Socket`: %o', this.connectOpts);
|
||||
socket = net.connect(this.connectOpts);
|
||||
}
|
||||
const headers = typeof this.proxyHeaders === 'function'
|
||||
? this.proxyHeaders()
|
||||
: { ...this.proxyHeaders };
|
||||
const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
|
||||
let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r\n`;
|
||||
// Inject the `Proxy-Authorization` header if necessary.
|
||||
if (proxy.username || proxy.password) {
|
||||
const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
|
||||
headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;
|
||||
}
|
||||
headers.Host = `${host}:${opts.port}`;
|
||||
if (!headers['Proxy-Connection']) {
|
||||
headers['Proxy-Connection'] = this.keepAlive
|
||||
? 'Keep-Alive'
|
||||
: 'close';
|
||||
}
|
||||
for (const name of Object.keys(headers)) {
|
||||
payload += `${name}: ${headers[name]}\r\n`;
|
||||
}
|
||||
const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket);
|
||||
socket.write(`${payload}\r\n`);
|
||||
const { connect, buffered } = await proxyResponsePromise;
|
||||
req.emit('proxyConnect', connect);
|
||||
this.emit('proxyConnect', connect, req);
|
||||
if (connect.statusCode === 200) {
|
||||
req.once('socket', resume);
|
||||
if (opts.secureEndpoint) {
|
||||
// The proxy is connecting to a TLS server, so upgrade
|
||||
// this socket connection to a TLS connection.
|
||||
debug('Upgrading socket connection to TLS');
|
||||
return tls.connect({
|
||||
...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'),
|
||||
socket,
|
||||
});
|
||||
}
|
||||
return socket;
|
||||
}
|
||||
// Some other status code that's not 200... need to re-play the HTTP
|
||||
// header "data" events onto the socket once the HTTP machinery is
|
||||
// attached so that the node core `http` can parse and handle the
|
||||
// error status code.
|
||||
// Close the original socket, and a new "fake" socket is returned
|
||||
// instead, so that the proxy doesn't get the HTTP request
|
||||
// written to it (which may contain `Authorization` headers or other
|
||||
// sensitive data).
|
||||
//
|
||||
// See: https://hackerone.com/reports/541502
|
||||
socket.destroy();
|
||||
const fakeSocket = new net.Socket({ writable: false });
|
||||
fakeSocket.readable = true;
|
||||
// Need to wait for the "socket" event to re-play the "data" events.
|
||||
req.once('socket', (s) => {
|
||||
debug('Replaying proxy buffer for failed request');
|
||||
(0, assert_1.default)(s.listenerCount('data') > 0);
|
||||
// Replay the "buffered" Buffer onto the fake `socket`, since at
|
||||
// this point the HTTP module machinery has been hooked up for
|
||||
// the user.
|
||||
s.push(buffered);
|
||||
s.push(null);
|
||||
});
|
||||
return fakeSocket;
|
||||
}
|
||||
}
|
||||
HttpsProxyAgent.protocols = ['http', 'https'];
|
||||
exports.HttpsProxyAgent = HttpsProxyAgent;
|
||||
function resume(socket) {
|
||||
socket.resume();
|
||||
}
|
||||
function omit(obj, ...keys) {
|
||||
const ret = {};
|
||||
let key;
|
||||
for (key in obj) {
|
||||
if (!keys.includes(key)) {
|
||||
ret[key] = obj[key];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
(function (createHttpsProxyAgent) {
|
||||
createHttpsProxyAgent.HttpsProxyAgent = agent_1.default;
|
||||
createHttpsProxyAgent.prototype = agent_1.default.prototype;
|
||||
})(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
|
||||
module.exports = createHttpsProxyAgent;
|
||||
//# sourceMappingURL=index.js.map
|
||||
2
electron/node_modules/https-proxy-agent/dist/index.js.map
generated
vendored
2
electron/node_modules/https-proxy-agent/dist/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAKA,oDAAuC;AAEvC,SAAS,qBAAqB,CAC7B,IAA2D;IAE3D,OAAO,IAAI,eAAgB,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC;AAED,WAAU,qBAAqB;IAoBjB,qCAAe,GAAG,eAAgB,CAAC;IAEhD,qBAAqB,CAAC,SAAS,GAAG,eAAgB,CAAC,SAAS,CAAC;AAC9D,CAAC,EAvBS,qBAAqB,KAArB,qBAAqB,QAuB9B;AAED,iBAAS,qBAAqB,CAAC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yCAA2B;AAE3B,oDAA4B;AAC5B,kDAAgC;AAChC,2CAAqD;AACrD,6BAA0B;AAC1B,iEAA4D;AAG5D,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,mBAAmB,CAAC,CAAC;AAE/C,MAAM,0BAA0B,GAAG,CAGlC,OAAU,EACT,EAAE;IACH,IACC,OAAO,CAAC,UAAU,KAAK,SAAS;QAChC,OAAO,CAAC,IAAI;QACZ,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EACtB;QACD,OAAO;YACN,GAAG,OAAO;YACV,UAAU,EAAE,OAAO,CAAC,IAAI;SACxB,CAAC;KACF;IACD,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC;AAqBF;;;;;;;;;;;GAWG;AACH,MAAa,eAAoC,SAAQ,kBAAK;IAO7D,YAAY,KAAgB,EAAE,IAAkC;QAC/D,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,EAAE,IA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E,CAAC,CAAC;QACvD,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;QAE3B,oEAAoE;QACpE,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAa,EAAE,EAAE;YACpC,KAAK,CAAC,2CAA2C,CAAC,CAAC;YACnD,IAAA,gBAAM,EAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;YAEpC,gEAAgE;YAChE,8DAA8D;YAC9D,YAAY;YACZ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACjB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACnB,CAAC;;AA9IM,yBAAS,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AADlC,0CAAe;AAkJ5B,SAAS,MAAM,CAAC,MAAkC;IACjD,MAAM,CAAC,MAAM,EAAE,CAAC;AACjB,CAAC;AAED,SAAS,IAAI,CACZ,GAAM,EACN,GAAG,IAAO;IAIV,MAAM,GAAG,GAAG,EAEX,CAAC;IACF,IAAI,GAAqB,CAAC;IAC1B,KAAK,GAAG,IAAI,GAAG,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACxB,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;SACpB;KACD;IACD,OAAO,GAAG,CAAC;AACZ,CAAC"}
|
||||
14
electron/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts
generated
vendored
14
electron/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts
generated
vendored
|
|
@ -1,7 +1,15 @@
|
|||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
import { IncomingHttpHeaders } from 'http';
|
||||
import { Readable } from 'stream';
|
||||
export interface ProxyResponse {
|
||||
export interface ConnectResponse {
|
||||
statusCode: number;
|
||||
buffered: Buffer;
|
||||
statusText: string;
|
||||
headers: IncomingHttpHeaders;
|
||||
}
|
||||
export default function parseProxyResponse(socket: Readable): Promise<ProxyResponse>;
|
||||
export declare function parseProxyResponse(socket: Readable): Promise<{
|
||||
connect: ConnectResponse;
|
||||
buffered: Buffer;
|
||||
}>;
|
||||
//# sourceMappingURL=parse-proxy-response.d.ts.map
|
||||
1
electron/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map
generated
vendored
Normal file
1
electron/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"parse-proxy-response.d.ts","sourceRoot":"","sources":["../src/parse-proxy-response.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIlC,MAAM,WAAW,eAAe;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;CAC7B;AAED,wBAAgB,kBAAkB,CACjC,MAAM,EAAE,QAAQ,GACd,OAAO,CAAC;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAyGzD"}
|
||||
59
electron/node_modules/https-proxy-agent/dist/parse-proxy-response.js
generated
vendored
59
electron/node_modules/https-proxy-agent/dist/parse-proxy-response.js
generated
vendored
|
|
@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseProxyResponse = void 0;
|
||||
const debug_1 = __importDefault(require("debug"));
|
||||
const debug = debug_1.default('https-proxy-agent:parse-proxy-response');
|
||||
const debug = (0, debug_1.default)('https-proxy-agent:parse-proxy-response');
|
||||
function parseProxyResponse(socket) {
|
||||
return new Promise((resolve, reject) => {
|
||||
// we need to buffer any HTTP traffic that happens with the proxy before we get
|
||||
|
|
@ -23,14 +24,12 @@ function parseProxyResponse(socket) {
|
|||
function cleanup() {
|
||||
socket.removeListener('end', onend);
|
||||
socket.removeListener('error', onerror);
|
||||
socket.removeListener('close', onclose);
|
||||
socket.removeListener('readable', read);
|
||||
}
|
||||
function onclose(err) {
|
||||
debug('onclose had error %o', err);
|
||||
}
|
||||
function onend() {
|
||||
cleanup();
|
||||
debug('onend');
|
||||
reject(new Error('Proxy connection ended before receiving CONNECT response'));
|
||||
}
|
||||
function onerror(err) {
|
||||
cleanup();
|
||||
|
|
@ -48,19 +47,55 @@ function parseProxyResponse(socket) {
|
|||
read();
|
||||
return;
|
||||
}
|
||||
const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n'));
|
||||
const statusCode = +firstLine.split(' ')[1];
|
||||
debug('got proxy server response: %o', firstLine);
|
||||
const headerParts = buffered
|
||||
.slice(0, endOfHeaders)
|
||||
.toString('ascii')
|
||||
.split('\r\n');
|
||||
const firstLine = headerParts.shift();
|
||||
if (!firstLine) {
|
||||
socket.destroy();
|
||||
return reject(new Error('No header received from proxy CONNECT response'));
|
||||
}
|
||||
const firstLineParts = firstLine.split(' ');
|
||||
const statusCode = +firstLineParts[1];
|
||||
const statusText = firstLineParts.slice(2).join(' ');
|
||||
const headers = {};
|
||||
for (const header of headerParts) {
|
||||
if (!header)
|
||||
continue;
|
||||
const firstColon = header.indexOf(':');
|
||||
if (firstColon === -1) {
|
||||
socket.destroy();
|
||||
return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`));
|
||||
}
|
||||
const key = header.slice(0, firstColon).toLowerCase();
|
||||
const value = header.slice(firstColon + 1).trimStart();
|
||||
const current = headers[key];
|
||||
if (typeof current === 'string') {
|
||||
headers[key] = [current, value];
|
||||
}
|
||||
else if (Array.isArray(current)) {
|
||||
current.push(value);
|
||||
}
|
||||
else {
|
||||
headers[key] = value;
|
||||
}
|
||||
}
|
||||
debug('got proxy server response: %o %o', firstLine, headers);
|
||||
cleanup();
|
||||
resolve({
|
||||
statusCode,
|
||||
buffered
|
||||
connect: {
|
||||
statusCode,
|
||||
statusText,
|
||||
headers,
|
||||
},
|
||||
buffered,
|
||||
});
|
||||
}
|
||||
socket.on('error', onerror);
|
||||
socket.on('close', onclose);
|
||||
socket.on('end', onend);
|
||||
read();
|
||||
});
|
||||
}
|
||||
exports.default = parseProxyResponse;
|
||||
exports.parseProxyResponse = parseProxyResponse;
|
||||
//# sourceMappingURL=parse-proxy-response.js.map
|
||||
2
electron/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map
generated
vendored
2
electron/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"parse-proxy-response.js","sourceRoot":"","sources":["../src/parse-proxy-response.ts"],"names":[],"mappings":";;;;;AAAA,kDAAgC;AAGhC,MAAM,KAAK,GAAG,eAAW,CAAC,wCAAwC,CAAC,CAAC;AAOpE,SAAwB,kBAAkB,CACzC,MAAgB;IAEhB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,+EAA+E;QAC/E,gFAAgF;QAChF,8EAA8E;QAC9E,8BAA8B;QAC9B,IAAI,aAAa,GAAG,CAAC,CAAC;QACtB,MAAM,OAAO,GAAa,EAAE,CAAC;QAE7B,SAAS,IAAI;YACZ,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC;gBAAE,MAAM,CAAC,CAAC,CAAC,CAAC;;gBACZ,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACpC,CAAC;QAED,SAAS,OAAO;YACf,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACpC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAA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CAAC;gBACvC,IAAI,UAAU,KAAK,CAAC,CAAC,EAAE;oBACtB,MAAM,CAAC,OAAO,EAAE,CAAC;oBACjB,OAAO,MAAM,CACZ,IAAI,KAAK,CACR,gDAAgD,MAAM,GAAG,CACzD,CACD,CAAC;iBACF;gBACD,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;gBACtD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;gBACvD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;oBAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;iBAChC;qBAAM,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;oBAClC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACpB;qBAAM;oBACN,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;iBACrB;aACD;YACD,KAAK,CAAC,kCAAkC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;YAC9D,OAAO,EAAE,CAAC;YACV,OAAO,CAAC;gBACP,OAAO,EAAE;oBACR,UAAU;oBACV,UAAU;oBACV,OAAO;iBACP;gBACD,QAAQ;aACR,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAExB,IAAI,EAAE,CAAC;IACR,CAAC,CAAC,CAAC;AACJ,CAAC;AA3GD,gDA2GC"}
|
||||
56
electron/node_modules/https-proxy-agent/package.json
generated
vendored
56
electron/node_modules/https-proxy-agent/package.json
generated
vendored
|
|
@ -1,22 +1,16 @@
|
|||
{
|
||||
"name": "https-proxy-agent",
|
||||
"version": "5.0.1",
|
||||
"version": "7.0.6",
|
||||
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",
|
||||
"main": "dist/index",
|
||||
"types": "dist/index",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "tsc",
|
||||
"test": "mocha --reporter spec",
|
||||
"test-lint": "eslint src --ext .js,.ts",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/TooTallNate/node-https-proxy-agent.git"
|
||||
"url": "https://github.com/TooTallNate/proxy-agents.git",
|
||||
"directory": "packages/https-proxy-agent"
|
||||
},
|
||||
"keywords": [
|
||||
"https",
|
||||
|
|
@ -26,31 +20,31 @@
|
|||
],
|
||||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/TooTallNate/node-https-proxy-agent/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"agent-base": "6",
|
||||
"agent-base": "^7.1.2",
|
||||
"debug": "4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/async-retry": "^1.4.5",
|
||||
"@types/debug": "4",
|
||||
"@types/node": "^12.12.11",
|
||||
"@typescript-eslint/eslint-plugin": "1.6.0",
|
||||
"@typescript-eslint/parser": "1.1.0",
|
||||
"eslint": "5.16.0",
|
||||
"eslint-config-airbnb": "17.1.0",
|
||||
"eslint-config-prettier": "4.1.0",
|
||||
"eslint-import-resolver-typescript": "1.1.1",
|
||||
"eslint-plugin-import": "2.16.0",
|
||||
"eslint-plugin-jsx-a11y": "6.2.1",
|
||||
"eslint-plugin-react": "7.12.4",
|
||||
"mocha": "^6.2.2",
|
||||
"proxy": "1",
|
||||
"rimraf": "^3.0.0",
|
||||
"typescript": "^3.5.3"
|
||||
"@types/jest": "^29.5.1",
|
||||
"@types/node": "^14.18.45",
|
||||
"async-listen": "^3.0.0",
|
||||
"async-retry": "^1.3.3",
|
||||
"jest": "^29.5.0",
|
||||
"ts-jest": "^29.1.0",
|
||||
"typescript": "^5.0.4",
|
||||
"proxy": "2.2.0",
|
||||
"tsconfig": "0.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
"node": ">= 14"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"test": "jest --env node --verbose --bail test/test.ts",
|
||||
"test-e2e": "jest --env node --verbose --bail test/e2e.test.ts",
|
||||
"lint": "eslint --ext .ts",
|
||||
"pack": "node ../../scripts/pack.mjs"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue