{"_id":"@aalgogiver/https-proxy-agent","name":"@aalgogiver/https-proxy-agent","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aalgogiver/https-proxy-agent","version":"1.0.0","description":"Fork of https-proxy-agent with fixed timeout issue.","main":"./dist/index.js","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/aalgogiver/https-proxy-agent.git"},"license":"MIT","dependencies":{"agent-base":"^7.0.2","debug":"4"},"devDependencies":{"@types/async-retry":"^1.4.5","@types/debug":"4","@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.1.1","tsconfig":"0.0.0"},"engines":{"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"},"_id":"@aalgogiver/https-proxy-agent@1.0.0","gitHead":"4e24b1805ebbec42b43c422973daca4a57b8c636","bugs":{"url":"https://github.com/aalgogiver/https-proxy-agent/issues"},"homepage":"https://github.com/aalgogiver/https-proxy-agent#readme","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-uZkXV+BDhk9yRP1hLvrEf4NtG82c446/3EaRK3Ex5pEZJ8gpx+kAIizUUVrDiK86jsC4AN5DWemzcAk435g9SA==","shasum":"eab76538e81c824547dd9911f273b249971d2008","tarball":"https://registry.npmjs.org/@aalgogiver/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz","fileCount":10,"unpackedSize":27820,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHaIRG/K6qbyYlZDepHL89fQnoa9hDK67Dmr+YBr/KsxAiAB3iCI3YGsdXH/Ed6kjWbyqzLCiRYu4ULkfQHPPrmmfA=="}]},"_npmUser":{"name":"aalgogiver","email":"galileo.job@gmail.com"},"directories":{},"maintainers":[{"name":"aalgogiver","email":"galileo.job@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/https-proxy-agent_1.0.0_1698522011253_0.5322636686735125"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-28T19:40:11.195Z","1.0.0":"2023-10-28T19:40:11.551Z","modified":"2023-10-28T19:40:11.861Z"},"maintainers":[{"name":"aalgogiver","email":"galileo.job@gmail.com"}],"description":"Fork of https-proxy-agent with fixed timeout issue.","homepage":"https://github.com/aalgogiver/https-proxy-agent#readme","repository":{"type":"git","url":"git+https://github.com/aalgogiver/https-proxy-agent.git"},"bugs":{"url":"https://github.com/aalgogiver/https-proxy-agent/issues"},"license":"MIT","readme":"Fork of https-proxy-agent with fixed timeout issue.\n\nhttps-proxy-agent\n================\n### An HTTP(s) proxy `http.Agent` implementation for HTTPS\n\nThis module provides an `http.Agent` implementation that connects to a specified\nHTTP or HTTPS proxy server, and can be used with the built-in `https` module.\n\nSpecifically, this `Agent` implementation connects to an intermediary \"proxy\"\nserver and issues the [CONNECT HTTP method][CONNECT], which tells the proxy to\nopen a direct TCP connection to the destination server.\n\nSince this agent implements the CONNECT HTTP method, it also works with other\nprotocols that use this method when connecting over proxies (i.e. WebSockets).\nSee the \"Examples\" section below for more.\n\nExamples\n--------\n\n#### `https` module example\n\n```ts\nimport * as https from 'https';\nimport { HttpsProxyAgent } from 'https-proxy-agent';\n\nconst agent = new HttpsProxyAgent('http://168.63.76.32:3128');\n\nhttps.get('https://example.com', { agent }, (res) => {\n  console.log('\"response\" event!', res.headers);\n  res.pipe(process.stdout);\n});\n```\n\n#### `ws` WebSocket connection example\n\n```ts\nimport WebSocket from 'ws';\nimport { HttpsProxyAgent } from 'https-proxy-agent';\n\nconst agent = new HttpsProxyAgent('http://168.63.76.32:3128');\nconst socket = new WebSocket('ws://echo.websocket.org', { agent });\n\nsocket.on('open', function () {\n  console.log('\"open\" event!');\n  socket.send('hello world');\n});\n\nsocket.on('message', function (data, flags) {\n  console.log('\"message\" event! %j %j', data, flags);\n  socket.close();\n});\n```\n\nAPI\n---\n\n### new HttpsProxyAgent(proxy: string | URL, options?: HttpsProxyAgentOptions)\n\nThe `HttpsProxyAgent` class implements an `http.Agent` subclass that connects\nto the specified \"HTTP(s) proxy server\" in order to proxy HTTPS and/or WebSocket\nrequests. This is achieved by using the [HTTP `CONNECT` method][CONNECT].\n\nThe `proxy` argument is the URL for the proxy server.\n\nThe `options` argument accepts the usual `http.Agent` constructor options, and\nsome additional properties:\n\n * `headers` - Object containing additional headers to send to the proxy server\n   in the `CONNECT` request.\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[CONNECT]: http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling\n","readmeFilename":"README.md"}