pnpm 6.32.18 → 6.32.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/.modules.yaml +1 -1
- package/dist/node_modules/.pnpm/lock.yaml +19 -19
- package/dist/node_modules/socks-proxy-agent/dist/index.js +3 -3
- package/dist/node_modules/socks-proxy-agent/dist/index.js.map +1 -1
- package/dist/node_modules/socks-proxy-agent/package.json +25 -21
- package/dist/pnpm.cjs +986 -784
- package/dist/pnpx.cjs +37 -25
- package/package.json +32 -32
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
lockfileVersion: 5.3
|
|
2
2
|
|
|
3
3
|
specifiers:
|
|
4
|
-
node-gyp: ^8.
|
|
4
|
+
node-gyp: ^8.4.1
|
|
5
5
|
|
|
6
6
|
optionalDependencies:
|
|
7
7
|
node-gyp: 8.4.1
|
|
@@ -154,7 +154,7 @@ packages:
|
|
|
154
154
|
optional: true
|
|
155
155
|
|
|
156
156
|
/console-control-strings/1.1.0:
|
|
157
|
-
resolution: {integrity:
|
|
157
|
+
resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}
|
|
158
158
|
dev: false
|
|
159
159
|
optional: true
|
|
160
160
|
|
|
@@ -172,12 +172,12 @@ packages:
|
|
|
172
172
|
optional: true
|
|
173
173
|
|
|
174
174
|
/delegates/1.0.0:
|
|
175
|
-
resolution: {integrity:
|
|
175
|
+
resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}
|
|
176
176
|
dev: false
|
|
177
177
|
optional: true
|
|
178
178
|
|
|
179
179
|
/depd/1.1.2:
|
|
180
|
-
resolution: {integrity:
|
|
180
|
+
resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==}
|
|
181
181
|
engines: {node: '>= 0.6'}
|
|
182
182
|
dev: false
|
|
183
183
|
optional: true
|
|
@@ -215,7 +215,7 @@ packages:
|
|
|
215
215
|
optional: true
|
|
216
216
|
|
|
217
217
|
/fs.realpath/1.0.0:
|
|
218
|
-
resolution: {integrity:
|
|
218
|
+
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
|
|
219
219
|
dev: false
|
|
220
220
|
optional: true
|
|
221
221
|
|
|
@@ -252,7 +252,7 @@ packages:
|
|
|
252
252
|
optional: true
|
|
253
253
|
|
|
254
254
|
/has-unicode/2.0.1:
|
|
255
|
-
resolution: {integrity:
|
|
255
|
+
resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==}
|
|
256
256
|
dev: false
|
|
257
257
|
optional: true
|
|
258
258
|
|
|
@@ -285,7 +285,7 @@ packages:
|
|
|
285
285
|
optional: true
|
|
286
286
|
|
|
287
287
|
/humanize-ms/1.2.1:
|
|
288
|
-
resolution: {integrity:
|
|
288
|
+
resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}
|
|
289
289
|
dependencies:
|
|
290
290
|
ms: 2.1.3
|
|
291
291
|
dev: false
|
|
@@ -300,7 +300,7 @@ packages:
|
|
|
300
300
|
optional: true
|
|
301
301
|
|
|
302
302
|
/imurmurhash/0.1.4:
|
|
303
|
-
resolution: {integrity:
|
|
303
|
+
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
|
|
304
304
|
engines: {node: '>=0.8.19'}
|
|
305
305
|
dev: false
|
|
306
306
|
optional: true
|
|
@@ -317,7 +317,7 @@ packages:
|
|
|
317
317
|
optional: true
|
|
318
318
|
|
|
319
319
|
/inflight/1.0.6:
|
|
320
|
-
resolution: {integrity:
|
|
320
|
+
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
|
|
321
321
|
dependencies:
|
|
322
322
|
once: 1.4.0
|
|
323
323
|
wrappy: 1.0.2
|
|
@@ -341,12 +341,12 @@ packages:
|
|
|
341
341
|
optional: true
|
|
342
342
|
|
|
343
343
|
/is-lambda/1.0.1:
|
|
344
|
-
resolution: {integrity:
|
|
344
|
+
resolution: {integrity: sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==}
|
|
345
345
|
dev: false
|
|
346
346
|
optional: true
|
|
347
347
|
|
|
348
348
|
/isexe/2.0.0:
|
|
349
|
-
resolution: {integrity:
|
|
349
|
+
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
|
350
350
|
dev: false
|
|
351
351
|
optional: true
|
|
352
352
|
|
|
@@ -376,7 +376,7 @@ packages:
|
|
|
376
376
|
minipass-pipeline: 1.2.4
|
|
377
377
|
negotiator: 0.6.3
|
|
378
378
|
promise-retry: 2.0.1
|
|
379
|
-
socks-proxy-agent: 6.2.
|
|
379
|
+
socks-proxy-agent: 6.2.1
|
|
380
380
|
ssri: 8.0.1
|
|
381
381
|
transitivePeerDependencies:
|
|
382
382
|
- supports-color
|
|
@@ -516,7 +516,7 @@ packages:
|
|
|
516
516
|
optional: true
|
|
517
517
|
|
|
518
518
|
/once/1.4.0:
|
|
519
|
-
resolution: {integrity:
|
|
519
|
+
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
|
|
520
520
|
dependencies:
|
|
521
521
|
wrappy: 1.0.2
|
|
522
522
|
dev: false
|
|
@@ -531,13 +531,13 @@ packages:
|
|
|
531
531
|
optional: true
|
|
532
532
|
|
|
533
533
|
/path-is-absolute/1.0.1:
|
|
534
|
-
resolution: {integrity:
|
|
534
|
+
resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
|
|
535
535
|
engines: {node: '>=0.10.0'}
|
|
536
536
|
dev: false
|
|
537
537
|
optional: true
|
|
538
538
|
|
|
539
539
|
/promise-inflight/1.0.1:
|
|
540
|
-
resolution: {integrity:
|
|
540
|
+
resolution: {integrity: sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==}
|
|
541
541
|
dev: false
|
|
542
542
|
optional: true
|
|
543
543
|
|
|
@@ -561,7 +561,7 @@ packages:
|
|
|
561
561
|
optional: true
|
|
562
562
|
|
|
563
563
|
/retry/0.12.0:
|
|
564
|
-
resolution: {integrity:
|
|
564
|
+
resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}
|
|
565
565
|
engines: {node: '>= 4'}
|
|
566
566
|
dev: false
|
|
567
567
|
optional: true
|
|
@@ -594,7 +594,7 @@ packages:
|
|
|
594
594
|
optional: true
|
|
595
595
|
|
|
596
596
|
/set-blocking/2.0.0:
|
|
597
|
-
resolution: {integrity:
|
|
597
|
+
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
|
|
598
598
|
dev: false
|
|
599
599
|
optional: true
|
|
600
600
|
|
|
@@ -609,8 +609,8 @@ packages:
|
|
|
609
609
|
dev: false
|
|
610
610
|
optional: true
|
|
611
611
|
|
|
612
|
-
/socks-proxy-agent/6.2.
|
|
613
|
-
resolution: {integrity: sha512-
|
|
612
|
+
/socks-proxy-agent/6.2.1:
|
|
613
|
+
resolution: {integrity: sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==}
|
|
614
614
|
engines: {node: '>= 10'}
|
|
615
615
|
dependencies:
|
|
616
616
|
agent-base: 6.0.2
|
|
@@ -24,9 +24,9 @@ function parseSocksProxy(opts) {
|
|
|
24
24
|
let port = 0;
|
|
25
25
|
let lookup = false;
|
|
26
26
|
let type = 5;
|
|
27
|
-
const host = opts.hostname;
|
|
27
|
+
const host = opts.hostname || opts.host;
|
|
28
28
|
if (host == null) {
|
|
29
|
-
throw new TypeError('No "
|
|
29
|
+
throw new TypeError('No "hostname"');
|
|
30
30
|
}
|
|
31
31
|
if (typeof opts.port === 'number') {
|
|
32
32
|
port = opts.port;
|
|
@@ -103,7 +103,7 @@ const normalizeProxyOptions = (input) => {
|
|
|
103
103
|
proxyOptions = input;
|
|
104
104
|
}
|
|
105
105
|
if (proxyOptions == null) {
|
|
106
|
-
throw new TypeError('a SOCKS proxy server `
|
|
106
|
+
throw new TypeError('a SOCKS proxy server `hostname` and `port` must be specified!');
|
|
107
107
|
}
|
|
108
108
|
return proxyOptions;
|
|
109
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts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",
|
|
4
4
|
"homepage": "https://github.com/TooTallNate/node-socks-proxy-agent#readme",
|
|
5
|
-
"version": "6.2.
|
|
5
|
+
"version": "6.2.1",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "nathan@tootallnate.net",
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
"name": "Matheus Fernandes",
|
|
39
39
|
"email": "matheus.frndes@gmail.com"
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"name": "Ricky Miller",
|
|
43
|
+
"email": "richardkazuomiller@gmail.com"
|
|
44
|
+
},
|
|
41
45
|
{
|
|
42
46
|
"name": "Shantanu Sharma",
|
|
43
47
|
"email": "shantanu34@outlook.com"
|
|
@@ -113,10 +117,10 @@
|
|
|
113
117
|
"@types/node": "latest",
|
|
114
118
|
"cacheable-lookup": "^6.0.4",
|
|
115
119
|
"conventional-github-releaser": "latest",
|
|
116
|
-
"dns2": "
|
|
120
|
+
"dns2": "latest",
|
|
117
121
|
"finepack": "latest",
|
|
118
122
|
"git-authors-cli": "latest",
|
|
119
|
-
"mocha": "
|
|
123
|
+
"mocha": "9",
|
|
120
124
|
"nano-staged": "latest",
|
|
121
125
|
"npm-check-updates": "latest",
|
|
122
126
|
"prettier-standard": "latest",
|
|
@@ -136,6 +140,22 @@
|
|
|
136
140
|
"files": [
|
|
137
141
|
"dist"
|
|
138
142
|
],
|
|
143
|
+
"scripts": {
|
|
144
|
+
"build": "tsc",
|
|
145
|
+
"clean": "rimraf node_modules",
|
|
146
|
+
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
147
|
+
"lint": "ts-standard",
|
|
148
|
+
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
149
|
+
"prebuild": "rimraf dist",
|
|
150
|
+
"prepublishOnly": "npm run build",
|
|
151
|
+
"prerelease": "npm run update:check && npm run contributors",
|
|
152
|
+
"release": "standard-version -a",
|
|
153
|
+
"release:github": "conventional-github-releaser -p angular",
|
|
154
|
+
"release:tags": "git push --follow-tags origin HEAD:master",
|
|
155
|
+
"test": "mocha --reporter spec",
|
|
156
|
+
"update": "ncu -u",
|
|
157
|
+
"update:check": "ncu -- --error-level 2"
|
|
158
|
+
},
|
|
139
159
|
"license": "MIT",
|
|
140
160
|
"commitlint": {
|
|
141
161
|
"extends": [
|
|
@@ -157,21 +177,5 @@
|
|
|
157
177
|
"commit-msg": "npx commitlint --edit",
|
|
158
178
|
"pre-commit": "npx nano-staged"
|
|
159
179
|
},
|
|
160
|
-
"typings": "dist/index.d.ts"
|
|
161
|
-
|
|
162
|
-
"build": "tsc",
|
|
163
|
-
"clean": "rimraf node_modules",
|
|
164
|
-
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
165
|
-
"lint": "ts-standard",
|
|
166
|
-
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
167
|
-
"prebuild": "rimraf dist",
|
|
168
|
-
"prerelease": "npm run update:check && npm run contributors",
|
|
169
|
-
"release": "standard-version -a",
|
|
170
|
-
"release:github": "conventional-github-releaser -p angular",
|
|
171
|
-
"release:tags": "git push --follow-tags origin HEAD:master",
|
|
172
|
-
"test": "mocha --reporter spec",
|
|
173
|
-
"update": "ncu -u",
|
|
174
|
-
"update:check": "ncu -- --error-level 2"
|
|
175
|
-
},
|
|
176
|
-
"readme": "socks-proxy-agent\n================\n### A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS\n[](https://github.com/TooTallNate/node-socks-proxy-agent/actions?workflow=Node+CI)\n\nThis module provides an `http.Agent` implementation that connects to a\nspecified SOCKS proxy server, and can be used with the built-in `http`\nand `https` modules.\n\nIt can also be used in conjunction with the `ws` module to establish a WebSocket\nconnection over a SOCKS proxy. See the \"Examples\" section below.\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\nnpm install socks-proxy-agent\n```\n\n\nExamples\n--------\n\n#### TypeScript example\n\n```ts\nimport https from 'https';\nimport { SocksProxyAgent } from 'socks-proxy-agent';\n\nconst info = {\n\thostname: 'br41.nordvpn.com',\n\tuserId: 'your-name@gmail.com',\n\tpassword: 'abcdef12345124'\n};\nconst agent = new SocksProxyAgent(info);\n\nhttps.get('https://ipinfo.io', { agent }, (res) => {\n\tconsole.log(res.headers);\n\tres.pipe(process.stdout);\n});\n```\n\n#### `http` module example\n\n```js\nvar url = require('url');\nvar http = require('http');\nvar { SocksProxyAgent } = require('socks-proxy-agent');\n\n// SOCKS proxy to connect to\nvar proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';\nconsole.log('using proxy server %j', proxy);\n\n// HTTP endpoint for the proxy to connect to\nvar endpoint = process.argv[2] || 'http://nodejs.org/api/';\nconsole.log('attempting to GET %j', endpoint);\nvar opts = url.parse(endpoint);\n\n// create an instance of the `SocksProxyAgent` class with the proxy server information\nvar agent = new SocksProxyAgent(proxy);\nopts.agent = agent;\n\nhttp.get(opts, function (res) {\n\tconsole.log('\"response\" event!', res.headers);\n\tres.pipe(process.stdout);\n});\n```\n\n#### `https` module example\n\n```js\nvar url = require('url');\nvar https = require('https');\nvar { SocksProxyAgent } = require('socks-proxy-agent');\n\n// SOCKS proxy to connect to\nvar proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';\nconsole.log('using proxy server %j', proxy);\n\n// HTTP endpoint for the proxy to connect to\nvar endpoint = process.argv[2] || 'https://encrypted.google.com/';\nconsole.log('attempting to GET %j', endpoint);\nvar opts = url.parse(endpoint);\n\n// create an instance of the `SocksProxyAgent` class with the proxy server information\nvar agent = new SocksProxyAgent(proxy);\nopts.agent = agent;\n\nhttps.get(opts, function (res) {\n\tconsole.log('\"response\" event!', res.headers);\n\tres.pipe(process.stdout);\n});\n```\n\n#### `ws` WebSocket connection example\n\n``` js\nvar WebSocket = require('ws');\nvar { SocksProxyAgent } = require('socks-proxy-agent');\n\n// SOCKS proxy to connect to\nvar proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';\nconsole.log('using proxy server %j', proxy);\n\n// WebSocket endpoint for the proxy to connect to\nvar endpoint = process.argv[2] || 'ws://echo.websocket.org';\nconsole.log('attempting to connect to WebSocket %j', endpoint);\n\n// create an instance of the `SocksProxyAgent` class with the proxy server information\nvar agent = new SocksProxyAgent(proxy);\n\n// initiate the WebSocket connection\nvar socket = new WebSocket(endpoint, { agent: agent });\n\nsocket.on('open', function () {\n\tconsole.log('\"open\" event!');\n\tsocket.send('hello world');\n});\n\nsocket.on('message', function (data, flags) {\n\tconsole.log('\"message\" event! %j %j', data, flags);\n\tsocket.close();\n});\n```\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>\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"
|
|
177
|
-
}
|
|
180
|
+
"typings": "dist/index.d.ts"
|
|
181
|
+
}
|