forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
152
electron/node_modules/socks-proxy-agent/README.md
generated
vendored
Normal file
152
electron/node_modules/socks-proxy-agent/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
socks-proxy-agent
|
||||
================
|
||||
### A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
|
||||
[](https://github.com/TooTallNate/node-socks-proxy-agent/actions?workflow=Node+CI)
|
||||
|
||||
This module provides an `http.Agent` implementation that connects to a
|
||||
specified SOCKS proxy server, and can be used with the built-in `http`
|
||||
and `https` modules.
|
||||
|
||||
It can also be used in conjunction with the `ws` module to establish a WebSocket
|
||||
connection over a SOCKS proxy. See the "Examples" section below.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Install with `npm`:
|
||||
|
||||
``` bash
|
||||
npm install socks-proxy-agent
|
||||
```
|
||||
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
#### TypeScript example
|
||||
|
||||
```ts
|
||||
import https from 'https';
|
||||
import { SocksProxyAgent } from 'socks-proxy-agent';
|
||||
|
||||
const info = {
|
||||
hostname: 'br41.nordvpn.com',
|
||||
userId: 'your-name@gmail.com',
|
||||
password: 'abcdef12345124'
|
||||
};
|
||||
const agent = new SocksProxyAgent(info);
|
||||
|
||||
https.get('https://ipinfo.io', { agent }, (res) => {
|
||||
console.log(res.headers);
|
||||
res.pipe(process.stdout);
|
||||
});
|
||||
```
|
||||
|
||||
#### `http` module example
|
||||
|
||||
```js
|
||||
var url = require('url');
|
||||
var http = require('http');
|
||||
var { SocksProxyAgent } = require('socks-proxy-agent');
|
||||
|
||||
// SOCKS proxy to connect to
|
||||
var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
|
||||
console.log('using proxy server %j', proxy);
|
||||
|
||||
// HTTP endpoint for the proxy to connect to
|
||||
var endpoint = process.argv[2] || 'http://nodejs.org/api/';
|
||||
console.log('attempting to GET %j', endpoint);
|
||||
var opts = url.parse(endpoint);
|
||||
|
||||
// create an instance of the `SocksProxyAgent` class with the proxy server information
|
||||
var agent = new SocksProxyAgent(proxy);
|
||||
opts.agent = agent;
|
||||
|
||||
http.get(opts, function (res) {
|
||||
console.log('"response" event!', res.headers);
|
||||
res.pipe(process.stdout);
|
||||
});
|
||||
```
|
||||
|
||||
#### `https` module example
|
||||
|
||||
```js
|
||||
var url = require('url');
|
||||
var https = require('https');
|
||||
var { SocksProxyAgent } = require('socks-proxy-agent');
|
||||
|
||||
// SOCKS proxy to connect to
|
||||
var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
|
||||
console.log('using proxy server %j', proxy);
|
||||
|
||||
// HTTP endpoint for the proxy to connect to
|
||||
var endpoint = process.argv[2] || 'https://encrypted.google.com/';
|
||||
console.log('attempting to GET %j', endpoint);
|
||||
var opts = url.parse(endpoint);
|
||||
|
||||
// create an instance of the `SocksProxyAgent` class with the proxy server information
|
||||
var agent = new SocksProxyAgent(proxy);
|
||||
opts.agent = agent;
|
||||
|
||||
https.get(opts, function (res) {
|
||||
console.log('"response" event!', res.headers);
|
||||
res.pipe(process.stdout);
|
||||
});
|
||||
```
|
||||
|
||||
#### `ws` WebSocket connection example
|
||||
|
||||
``` js
|
||||
var WebSocket = require('ws');
|
||||
var { SocksProxyAgent } = require('socks-proxy-agent');
|
||||
|
||||
// SOCKS proxy to connect to
|
||||
var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
|
||||
console.log('using proxy server %j', proxy);
|
||||
|
||||
// WebSocket endpoint for the proxy to connect to
|
||||
var endpoint = process.argv[2] || 'ws://echo.websocket.org';
|
||||
console.log('attempting to connect to WebSocket %j', endpoint);
|
||||
|
||||
// create an instance of the `SocksProxyAgent` class with the proxy server information
|
||||
var agent = new SocksProxyAgent(proxy);
|
||||
|
||||
// initiate the WebSocket connection
|
||||
var socket = new WebSocket(endpoint, { agent: agent });
|
||||
|
||||
socket.on('open', function () {
|
||||
console.log('"open" event!');
|
||||
socket.send('hello world');
|
||||
});
|
||||
|
||||
socket.on('message', function (data, flags) {
|
||||
console.log('"message" event! %j %j', data, flags);
|
||||
socket.close();
|
||||
});
|
||||
```
|
||||
|
||||
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.
|
||||
181
electron/node_modules/socks-proxy-agent/package.json
generated
vendored
Normal file
181
electron/node_modules/socks-proxy-agent/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,181 @@
|
|||
{
|
||||
"name": "socks-proxy-agent",
|
||||
"description": "A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS",
|
||||
"homepage": "https://github.com/TooTallNate/node-socks-proxy-agent#readme",
|
||||
"version": "7.0.0",
|
||||
"main": "dist/index.js",
|
||||
"author": {
|
||||
"email": "nathan@tootallnate.net",
|
||||
"name": "Nathan Rajlich",
|
||||
"url": "http://n8.io/"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Kiko Beats",
|
||||
"email": "josefrancisco.verdu@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Josh Glazebrook",
|
||||
"email": "josh@joshglazebrook.com"
|
||||
},
|
||||
{
|
||||
"name": "talmobi",
|
||||
"email": "talmobi@users.noreply.github.com"
|
||||
},
|
||||
{
|
||||
"name": "Indospace.io",
|
||||
"email": "justin@indospace.io"
|
||||
},
|
||||
{
|
||||
"name": "Kilian von Pflugk",
|
||||
"email": "github@jumoog.io"
|
||||
},
|
||||
{
|
||||
"name": "Kyle",
|
||||
"email": "admin@hk1229.cn"
|
||||
},
|
||||
{
|
||||
"name": "Matheus Fernandes",
|
||||
"email": "matheus.frndes@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Ricky Miller",
|
||||
"email": "richardkazuomiller@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Shantanu Sharma",
|
||||
"email": "shantanu34@outlook.com"
|
||||
},
|
||||
{
|
||||
"name": "Tim Perry",
|
||||
"email": "pimterry@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Vadim Baryshev",
|
||||
"email": "vadimbaryshev@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "jigu",
|
||||
"email": "luo1257857309@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Alba Mendez",
|
||||
"email": "me@jmendeth.com"
|
||||
},
|
||||
{
|
||||
"name": "Дмитрий Гуденков",
|
||||
"email": "Dimangud@rambler.ru"
|
||||
},
|
||||
{
|
||||
"name": "Andrei Bitca",
|
||||
"email": "63638922+andrei-bitca-dc@users.noreply.github.com"
|
||||
},
|
||||
{
|
||||
"name": "Andrew Casey",
|
||||
"email": "amcasey@users.noreply.github.com"
|
||||
},
|
||||
{
|
||||
"name": "Brandon Ros",
|
||||
"email": "brandonros1@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Dang Duy Thanh",
|
||||
"email": "thanhdd.it@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Dimitar Nestorov",
|
||||
"email": "8790386+dimitarnestorov@users.noreply.github.com"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/TooTallNate/node-socks-proxy-agent.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/TooTallNate/node-socks-proxy-agent/issues"
|
||||
},
|
||||
"keywords": [
|
||||
"agent",
|
||||
"http",
|
||||
"https",
|
||||
"proxy",
|
||||
"socks",
|
||||
"socks4",
|
||||
"socks4a",
|
||||
"socks5",
|
||||
"socks5h"
|
||||
],
|
||||
"dependencies": {
|
||||
"agent-base": "^6.0.2",
|
||||
"debug": "^4.3.3",
|
||||
"socks": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "latest",
|
||||
"@commitlint/config-conventional": "latest",
|
||||
"@types/debug": "latest",
|
||||
"@types/node": "latest",
|
||||
"cacheable-lookup": "latest",
|
||||
"conventional-github-releaser": "latest",
|
||||
"dns2": "latest",
|
||||
"finepack": "latest",
|
||||
"git-authors-cli": "latest",
|
||||
"mocha": "9",
|
||||
"nano-staged": "latest",
|
||||
"npm-check-updates": "latest",
|
||||
"prettier-standard": "latest",
|
||||
"raw-body": "latest",
|
||||
"rimraf": "latest",
|
||||
"simple-git-hooks": "latest",
|
||||
"socksv5": "github:TooTallNate/socksv5#fix/dstSock-close-event",
|
||||
"standard": "latest",
|
||||
"standard-markdown": "latest",
|
||||
"standard-version": "latest",
|
||||
"ts-standard": "latest",
|
||||
"typescript": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 10"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"clean": "rimraf node_modules",
|
||||
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
||||
"lint": "ts-standard",
|
||||
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
||||
"prebuild": "rimraf dist",
|
||||
"prepublishOnly": "npm run build",
|
||||
"prerelease": "npm run update:check && npm run contributors",
|
||||
"release": "standard-version -a",
|
||||
"release:github": "conventional-github-releaser -p angular",
|
||||
"release:tags": "git push --follow-tags origin HEAD:master",
|
||||
"test": "mocha --reporter spec",
|
||||
"update": "ncu -u",
|
||||
"update:check": "ncu -- --error-level 2"
|
||||
},
|
||||
"license": "MIT",
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
]
|
||||
},
|
||||
"nano-staged": {
|
||||
"*.js": [
|
||||
"prettier-standard"
|
||||
],
|
||||
"*.md": [
|
||||
"standard-markdown"
|
||||
],
|
||||
"package.json": [
|
||||
"finepack"
|
||||
]
|
||||
},
|
||||
"simple-git-hooks": {
|
||||
"commit-msg": "npx commitlint --edit",
|
||||
"pre-commit": "npx nano-staged"
|
||||
},
|
||||
"typings": "dist/index.d.ts"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue