@limrun/playwright-core 1.56.1-lim.1

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.
Files changed (338) hide show
  1. package/README.md +3 -0
  2. package/ThirdPartyNotices.txt +1502 -0
  3. package/bin/install_media_pack.ps1 +5 -0
  4. package/bin/install_webkit_wsl.ps1 +35 -0
  5. package/bin/reinstall_chrome_beta_linux.sh +42 -0
  6. package/bin/reinstall_chrome_beta_mac.sh +13 -0
  7. package/bin/reinstall_chrome_beta_win.ps1 +24 -0
  8. package/bin/reinstall_chrome_stable_linux.sh +42 -0
  9. package/bin/reinstall_chrome_stable_mac.sh +12 -0
  10. package/bin/reinstall_chrome_stable_win.ps1 +24 -0
  11. package/bin/reinstall_msedge_beta_linux.sh +48 -0
  12. package/bin/reinstall_msedge_beta_mac.sh +11 -0
  13. package/bin/reinstall_msedge_beta_win.ps1 +23 -0
  14. package/bin/reinstall_msedge_dev_linux.sh +48 -0
  15. package/bin/reinstall_msedge_dev_mac.sh +11 -0
  16. package/bin/reinstall_msedge_dev_win.ps1 +23 -0
  17. package/bin/reinstall_msedge_stable_linux.sh +48 -0
  18. package/bin/reinstall_msedge_stable_mac.sh +11 -0
  19. package/bin/reinstall_msedge_stable_win.ps1 +24 -0
  20. package/browsers.json +80 -0
  21. package/cli.js +18 -0
  22. package/index.d.ts +17 -0
  23. package/index.js +32 -0
  24. package/index.mjs +28 -0
  25. package/lib/androidServerImpl.js +65 -0
  26. package/lib/browserServerImpl.js +120 -0
  27. package/lib/cli/driver.js +97 -0
  28. package/lib/cli/program.js +633 -0
  29. package/lib/cli/programWithTestStub.js +74 -0
  30. package/lib/client/accessibility.js +49 -0
  31. package/lib/client/android.js +361 -0
  32. package/lib/client/api.js +137 -0
  33. package/lib/client/artifact.js +79 -0
  34. package/lib/client/browser.js +163 -0
  35. package/lib/client/browserContext.js +529 -0
  36. package/lib/client/browserType.js +184 -0
  37. package/lib/client/cdpSession.js +51 -0
  38. package/lib/client/channelOwner.js +194 -0
  39. package/lib/client/clientHelper.js +64 -0
  40. package/lib/client/clientInstrumentation.js +55 -0
  41. package/lib/client/clientStackTrace.js +69 -0
  42. package/lib/client/clock.js +68 -0
  43. package/lib/client/connection.js +314 -0
  44. package/lib/client/consoleMessage.js +54 -0
  45. package/lib/client/coverage.js +44 -0
  46. package/lib/client/dialog.js +56 -0
  47. package/lib/client/download.js +62 -0
  48. package/lib/client/electron.js +138 -0
  49. package/lib/client/elementHandle.js +281 -0
  50. package/lib/client/errors.js +77 -0
  51. package/lib/client/eventEmitter.js +314 -0
  52. package/lib/client/events.js +99 -0
  53. package/lib/client/fetch.js +369 -0
  54. package/lib/client/fileChooser.js +46 -0
  55. package/lib/client/fileUtils.js +34 -0
  56. package/lib/client/frame.js +408 -0
  57. package/lib/client/harRouter.js +87 -0
  58. package/lib/client/input.js +84 -0
  59. package/lib/client/jsHandle.js +109 -0
  60. package/lib/client/jsonPipe.js +39 -0
  61. package/lib/client/localUtils.js +60 -0
  62. package/lib/client/locator.js +366 -0
  63. package/lib/client/network.js +747 -0
  64. package/lib/client/page.js +721 -0
  65. package/lib/client/platform.js +74 -0
  66. package/lib/client/playwright.js +75 -0
  67. package/lib/client/selectors.js +55 -0
  68. package/lib/client/stream.js +39 -0
  69. package/lib/client/timeoutSettings.js +79 -0
  70. package/lib/client/tracing.js +117 -0
  71. package/lib/client/types.js +28 -0
  72. package/lib/client/video.js +59 -0
  73. package/lib/client/waiter.js +142 -0
  74. package/lib/client/webError.js +39 -0
  75. package/lib/client/webSocket.js +93 -0
  76. package/lib/client/worker.js +63 -0
  77. package/lib/client/writableStream.js +39 -0
  78. package/lib/generated/bindingsControllerSource.js +28 -0
  79. package/lib/generated/clockSource.js +28 -0
  80. package/lib/generated/injectedScriptSource.js +28 -0
  81. package/lib/generated/pollingRecorderSource.js +28 -0
  82. package/lib/generated/storageScriptSource.js +28 -0
  83. package/lib/generated/utilityScriptSource.js +28 -0
  84. package/lib/generated/webSocketMockSource.js +336 -0
  85. package/lib/inProcessFactory.js +62 -0
  86. package/lib/inprocess.js +3 -0
  87. package/lib/outofprocess.js +76 -0
  88. package/lib/protocol/serializers.js +192 -0
  89. package/lib/protocol/validator.js +2912 -0
  90. package/lib/protocol/validatorPrimitives.js +193 -0
  91. package/lib/remote/playwrightConnection.js +129 -0
  92. package/lib/remote/playwrightServer.js +335 -0
  93. package/lib/server/accessibility.js +69 -0
  94. package/lib/server/android/android.js +465 -0
  95. package/lib/server/android/backendAdb.js +177 -0
  96. package/lib/server/artifact.js +127 -0
  97. package/lib/server/bidi/bidiBrowser.js +490 -0
  98. package/lib/server/bidi/bidiChromium.js +153 -0
  99. package/lib/server/bidi/bidiConnection.js +212 -0
  100. package/lib/server/bidi/bidiExecutionContext.js +221 -0
  101. package/lib/server/bidi/bidiFirefox.js +130 -0
  102. package/lib/server/bidi/bidiInput.js +146 -0
  103. package/lib/server/bidi/bidiNetworkManager.js +383 -0
  104. package/lib/server/bidi/bidiOverCdp.js +102 -0
  105. package/lib/server/bidi/bidiPage.js +552 -0
  106. package/lib/server/bidi/bidiPdf.js +106 -0
  107. package/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
  108. package/lib/server/bidi/third_party/bidiDeserializer.js +98 -0
  109. package/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
  110. package/lib/server/bidi/third_party/bidiProtocol.js +24 -0
  111. package/lib/server/bidi/third_party/bidiProtocolCore.js +179 -0
  112. package/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
  113. package/lib/server/bidi/third_party/bidiSerializer.js +148 -0
  114. package/lib/server/bidi/third_party/firefoxPrefs.js +259 -0
  115. package/lib/server/browser.js +149 -0
  116. package/lib/server/browserContext.js +696 -0
  117. package/lib/server/browserType.js +328 -0
  118. package/lib/server/callLog.js +82 -0
  119. package/lib/server/chromium/appIcon.png +0 -0
  120. package/lib/server/chromium/chromium.js +391 -0
  121. package/lib/server/chromium/chromiumSwitches.js +95 -0
  122. package/lib/server/chromium/crAccessibility.js +263 -0
  123. package/lib/server/chromium/crBrowser.js +502 -0
  124. package/lib/server/chromium/crConnection.js +202 -0
  125. package/lib/server/chromium/crCoverage.js +235 -0
  126. package/lib/server/chromium/crDevTools.js +113 -0
  127. package/lib/server/chromium/crDragDrop.js +131 -0
  128. package/lib/server/chromium/crExecutionContext.js +146 -0
  129. package/lib/server/chromium/crInput.js +187 -0
  130. package/lib/server/chromium/crNetworkManager.js +666 -0
  131. package/lib/server/chromium/crPage.js +1069 -0
  132. package/lib/server/chromium/crPdf.js +121 -0
  133. package/lib/server/chromium/crProtocolHelper.js +145 -0
  134. package/lib/server/chromium/crServiceWorker.js +123 -0
  135. package/lib/server/chromium/defaultFontFamilies.js +162 -0
  136. package/lib/server/chromium/protocol.d.js +16 -0
  137. package/lib/server/chromium/videoRecorder.js +113 -0
  138. package/lib/server/clock.js +149 -0
  139. package/lib/server/codegen/csharp.js +327 -0
  140. package/lib/server/codegen/java.js +274 -0
  141. package/lib/server/codegen/javascript.js +270 -0
  142. package/lib/server/codegen/jsonl.js +52 -0
  143. package/lib/server/codegen/language.js +132 -0
  144. package/lib/server/codegen/languages.js +68 -0
  145. package/lib/server/codegen/python.js +279 -0
  146. package/lib/server/codegen/types.js +16 -0
  147. package/lib/server/console.js +53 -0
  148. package/lib/server/cookieStore.js +206 -0
  149. package/lib/server/debugController.js +191 -0
  150. package/lib/server/debugger.js +119 -0
  151. package/lib/server/deviceDescriptors.js +39 -0
  152. package/lib/server/deviceDescriptorsSource.json +1779 -0
  153. package/lib/server/dialog.js +116 -0
  154. package/lib/server/dispatchers/androidDispatcher.js +325 -0
  155. package/lib/server/dispatchers/artifactDispatcher.js +118 -0
  156. package/lib/server/dispatchers/browserContextDispatcher.js +364 -0
  157. package/lib/server/dispatchers/browserDispatcher.js +118 -0
  158. package/lib/server/dispatchers/browserTypeDispatcher.js +64 -0
  159. package/lib/server/dispatchers/cdpSessionDispatcher.js +44 -0
  160. package/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
  161. package/lib/server/dispatchers/dialogDispatcher.js +47 -0
  162. package/lib/server/dispatchers/dispatcher.js +371 -0
  163. package/lib/server/dispatchers/electronDispatcher.js +89 -0
  164. package/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
  165. package/lib/server/dispatchers/frameDispatcher.js +227 -0
  166. package/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
  167. package/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
  168. package/lib/server/dispatchers/localUtilsDispatcher.js +149 -0
  169. package/lib/server/dispatchers/networkDispatchers.js +213 -0
  170. package/lib/server/dispatchers/pageDispatcher.js +401 -0
  171. package/lib/server/dispatchers/playwrightDispatcher.js +112 -0
  172. package/lib/server/dispatchers/streamDispatcher.js +67 -0
  173. package/lib/server/dispatchers/tracingDispatcher.js +68 -0
  174. package/lib/server/dispatchers/webSocketRouteDispatcher.js +165 -0
  175. package/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
  176. package/lib/server/dom.js +806 -0
  177. package/lib/server/download.js +70 -0
  178. package/lib/server/electron/electron.js +270 -0
  179. package/lib/server/electron/loader.js +29 -0
  180. package/lib/server/errors.js +69 -0
  181. package/lib/server/fetch.js +621 -0
  182. package/lib/server/fileChooser.js +43 -0
  183. package/lib/server/fileUploadUtils.js +84 -0
  184. package/lib/server/firefox/ffAccessibility.js +238 -0
  185. package/lib/server/firefox/ffBrowser.js +428 -0
  186. package/lib/server/firefox/ffConnection.js +147 -0
  187. package/lib/server/firefox/ffExecutionContext.js +150 -0
  188. package/lib/server/firefox/ffInput.js +159 -0
  189. package/lib/server/firefox/ffNetworkManager.js +256 -0
  190. package/lib/server/firefox/ffPage.js +503 -0
  191. package/lib/server/firefox/firefox.js +105 -0
  192. package/lib/server/firefox/protocol.d.js +16 -0
  193. package/lib/server/formData.js +147 -0
  194. package/lib/server/frameSelectors.js +156 -0
  195. package/lib/server/frames.js +1448 -0
  196. package/lib/server/har/harRecorder.js +147 -0
  197. package/lib/server/har/harTracer.js +607 -0
  198. package/lib/server/harBackend.js +157 -0
  199. package/lib/server/helper.js +96 -0
  200. package/lib/server/index.js +58 -0
  201. package/lib/server/input.js +273 -0
  202. package/lib/server/instrumentation.js +69 -0
  203. package/lib/server/javascript.js +291 -0
  204. package/lib/server/launchApp.js +128 -0
  205. package/lib/server/localUtils.js +218 -0
  206. package/lib/server/macEditingCommands.js +143 -0
  207. package/lib/server/network.js +629 -0
  208. package/lib/server/page.js +870 -0
  209. package/lib/server/pipeTransport.js +89 -0
  210. package/lib/server/playwright.js +71 -0
  211. package/lib/server/progress.js +112 -0
  212. package/lib/server/protocolError.js +52 -0
  213. package/lib/server/recorder/chat.js +161 -0
  214. package/lib/server/recorder/recorderApp.js +387 -0
  215. package/lib/server/recorder/recorderRunner.js +138 -0
  216. package/lib/server/recorder/recorderSignalProcessor.js +83 -0
  217. package/lib/server/recorder/recorderUtils.js +157 -0
  218. package/lib/server/recorder/throttledFile.js +57 -0
  219. package/lib/server/recorder.js +498 -0
  220. package/lib/server/registry/browserFetcher.js +175 -0
  221. package/lib/server/registry/dependencies.js +371 -0
  222. package/lib/server/registry/index.js +1333 -0
  223. package/lib/server/registry/nativeDeps.js +1280 -0
  224. package/lib/server/registry/oopDownloadBrowserMain.js +120 -0
  225. package/lib/server/screenshotter.js +333 -0
  226. package/lib/server/selectors.js +112 -0
  227. package/lib/server/socksClientCertificatesInterceptor.js +383 -0
  228. package/lib/server/socksInterceptor.js +95 -0
  229. package/lib/server/trace/recorder/snapshotter.js +147 -0
  230. package/lib/server/trace/recorder/snapshotterInjected.js +541 -0
  231. package/lib/server/trace/recorder/tracing.js +602 -0
  232. package/lib/server/trace/test/inMemorySnapshotter.js +87 -0
  233. package/lib/server/trace/viewer/traceViewer.js +240 -0
  234. package/lib/server/transport.js +181 -0
  235. package/lib/server/types.js +28 -0
  236. package/lib/server/usKeyboardLayout.js +145 -0
  237. package/lib/server/utils/ascii.js +44 -0
  238. package/lib/server/utils/comparators.js +161 -0
  239. package/lib/server/utils/crypto.js +216 -0
  240. package/lib/server/utils/debug.js +42 -0
  241. package/lib/server/utils/debugLogger.js +122 -0
  242. package/lib/server/utils/env.js +73 -0
  243. package/lib/server/utils/eventsHelper.js +39 -0
  244. package/lib/server/utils/expectUtils.js +38 -0
  245. package/lib/server/utils/fileUtils.js +191 -0
  246. package/lib/server/utils/happyEyeballs.js +207 -0
  247. package/lib/server/utils/hostPlatform.js +111 -0
  248. package/lib/server/utils/httpServer.js +218 -0
  249. package/lib/server/utils/image_tools/colorUtils.js +89 -0
  250. package/lib/server/utils/image_tools/compare.js +109 -0
  251. package/lib/server/utils/image_tools/imageChannel.js +78 -0
  252. package/lib/server/utils/image_tools/stats.js +102 -0
  253. package/lib/server/utils/linuxUtils.js +71 -0
  254. package/lib/server/utils/network.js +227 -0
  255. package/lib/server/utils/nodePlatform.js +148 -0
  256. package/lib/server/utils/pipeTransport.js +84 -0
  257. package/lib/server/utils/processLauncher.js +241 -0
  258. package/lib/server/utils/profiler.js +65 -0
  259. package/lib/server/utils/socksProxy.js +511 -0
  260. package/lib/server/utils/spawnAsync.js +41 -0
  261. package/lib/server/utils/task.js +51 -0
  262. package/lib/server/utils/userAgent.js +98 -0
  263. package/lib/server/utils/wsServer.js +121 -0
  264. package/lib/server/utils/zipFile.js +74 -0
  265. package/lib/server/utils/zones.js +57 -0
  266. package/lib/server/webkit/protocol.d.js +16 -0
  267. package/lib/server/webkit/webkit.js +119 -0
  268. package/lib/server/webkit/wkAccessibility.js +237 -0
  269. package/lib/server/webkit/wkBrowser.js +339 -0
  270. package/lib/server/webkit/wkConnection.js +149 -0
  271. package/lib/server/webkit/wkExecutionContext.js +154 -0
  272. package/lib/server/webkit/wkInput.js +181 -0
  273. package/lib/server/webkit/wkInterceptableRequest.js +169 -0
  274. package/lib/server/webkit/wkPage.js +1134 -0
  275. package/lib/server/webkit/wkProvisionalPage.js +83 -0
  276. package/lib/server/webkit/wkWorkers.js +104 -0
  277. package/lib/server/webkit/wsl/webkit-wsl-transport-client.js +74 -0
  278. package/lib/server/webkit/wsl/webkit-wsl-transport-server.js +113 -0
  279. package/lib/third_party/pixelmatch.js +255 -0
  280. package/lib/utils/isomorphic/ariaSnapshot.js +392 -0
  281. package/lib/utils/isomorphic/assert.js +31 -0
  282. package/lib/utils/isomorphic/colors.js +72 -0
  283. package/lib/utils/isomorphic/cssParser.js +245 -0
  284. package/lib/utils/isomorphic/cssTokenizer.js +1051 -0
  285. package/lib/utils/isomorphic/headers.js +53 -0
  286. package/lib/utils/isomorphic/locatorGenerators.js +673 -0
  287. package/lib/utils/isomorphic/locatorParser.js +176 -0
  288. package/lib/utils/isomorphic/locatorUtils.js +81 -0
  289. package/lib/utils/isomorphic/manualPromise.js +114 -0
  290. package/lib/utils/isomorphic/mimeType.js +459 -0
  291. package/lib/utils/isomorphic/multimap.js +80 -0
  292. package/lib/utils/isomorphic/protocolFormatter.js +78 -0
  293. package/lib/utils/isomorphic/protocolMetainfo.js +321 -0
  294. package/lib/utils/isomorphic/rtti.js +43 -0
  295. package/lib/utils/isomorphic/selectorParser.js +386 -0
  296. package/lib/utils/isomorphic/semaphore.js +54 -0
  297. package/lib/utils/isomorphic/stackTrace.js +158 -0
  298. package/lib/utils/isomorphic/stringUtils.js +155 -0
  299. package/lib/utils/isomorphic/time.js +49 -0
  300. package/lib/utils/isomorphic/timeoutRunner.js +66 -0
  301. package/lib/utils/isomorphic/traceUtils.js +58 -0
  302. package/lib/utils/isomorphic/types.js +16 -0
  303. package/lib/utils/isomorphic/urlMatch.js +176 -0
  304. package/lib/utils/isomorphic/utilityScriptSerializers.js +251 -0
  305. package/lib/utils.js +107 -0
  306. package/lib/utilsBundle.js +109 -0
  307. package/lib/utilsBundleImpl/index.js +218 -0
  308. package/lib/utilsBundleImpl/xdg-open +1066 -0
  309. package/lib/vite/htmlReport/index.html +84 -0
  310. package/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +1 -0
  311. package/lib/vite/recorder/assets/codeMirrorModule-RJCXzfmE.js +24 -0
  312. package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  313. package/lib/vite/recorder/assets/index-Ri0uHF7I.css +1 -0
  314. package/lib/vite/recorder/assets/index-Y-X2TGJv.js +193 -0
  315. package/lib/vite/recorder/index.html +29 -0
  316. package/lib/vite/recorder/playwright-logo.svg +9 -0
  317. package/lib/vite/traceViewer/assets/codeMirrorModule-eyVcHN77.js +24 -0
  318. package/lib/vite/traceViewer/assets/defaultSettingsView-w0zYjHsW.js +265 -0
  319. package/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
  320. package/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +1 -0
  321. package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  322. package/lib/vite/traceViewer/defaultSettingsView.TQ8_7ybu.css +1 -0
  323. package/lib/vite/traceViewer/index.Bx16ehp1.js +2 -0
  324. package/lib/vite/traceViewer/index.I8N9v4jT.css +1 -0
  325. package/lib/vite/traceViewer/index.html +43 -0
  326. package/lib/vite/traceViewer/playwright-logo.svg +9 -0
  327. package/lib/vite/traceViewer/snapshot.html +21 -0
  328. package/lib/vite/traceViewer/sw.bundle.js +3 -0
  329. package/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
  330. package/lib/vite/traceViewer/uiMode.DRQ310U5.js +5 -0
  331. package/lib/vite/traceViewer/uiMode.html +17 -0
  332. package/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
  333. package/lib/zipBundle.js +34 -0
  334. package/lib/zipBundleImpl.js +5 -0
  335. package/package.json +42 -0
  336. package/types/protocol.d.ts +23130 -0
  337. package/types/structs.d.ts +45 -0
  338. package/types/types.d.ts +22853 -0
@@ -0,0 +1,1502 @@
1
+ microsoft/playwright-core
2
+
3
+ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
4
+
5
+ This project incorporates components from the projects listed below. The original copyright notices and the licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
6
+
7
+ - agent-base@6.0.2 (https://github.com/TooTallNate/node-agent-base)
8
+ - balanced-match@1.0.2 (https://github.com/juliangruber/balanced-match)
9
+ - brace-expansion@1.1.12 (https://github.com/juliangruber/brace-expansion)
10
+ - buffer-crc32@0.2.13 (https://github.com/brianloveswords/buffer-crc32)
11
+ - codemirror@5.65.18 (https://github.com/codemirror/CodeMirror)
12
+ - colors@1.4.0 (https://github.com/Marak/colors.js)
13
+ - commander@13.1.0 (https://github.com/tj/commander.js)
14
+ - concat-map@0.0.1 (https://github.com/substack/node-concat-map)
15
+ - debug@4.3.4 (https://github.com/debug-js/debug)
16
+ - debug@4.4.0 (https://github.com/debug-js/debug)
17
+ - define-lazy-prop@2.0.0 (https://github.com/sindresorhus/define-lazy-prop)
18
+ - diff@7.0.0 (https://github.com/kpdecker/jsdiff)
19
+ - dotenv@16.4.5 (https://github.com/motdotla/dotenv)
20
+ - end-of-stream@1.4.4 (https://github.com/mafintosh/end-of-stream)
21
+ - get-stream@5.2.0 (https://github.com/sindresorhus/get-stream)
22
+ - graceful-fs@4.2.10 (https://github.com/isaacs/node-graceful-fs)
23
+ - https-proxy-agent@5.0.1 (https://github.com/TooTallNate/node-https-proxy-agent)
24
+ - ip-address@9.0.5 (https://github.com/beaugunderson/ip-address)
25
+ - is-docker@2.2.1 (https://github.com/sindresorhus/is-docker)
26
+ - is-wsl@2.2.0 (https://github.com/sindresorhus/is-wsl)
27
+ - jpeg-js@0.4.4 (https://github.com/eugeneware/jpeg-js)
28
+ - jsbn@1.1.0 (https://github.com/andyperlitch/jsbn)
29
+ - mime@3.0.0 (https://github.com/broofa/mime)
30
+ - minimatch@3.1.2 (https://github.com/isaacs/minimatch)
31
+ - ms@2.1.2 (https://github.com/zeit/ms)
32
+ - ms@2.1.3 (https://github.com/vercel/ms)
33
+ - once@1.4.0 (https://github.com/isaacs/once)
34
+ - open@8.4.0 (https://github.com/sindresorhus/open)
35
+ - pend@1.2.0 (https://github.com/andrewrk/node-pend)
36
+ - pngjs@6.0.0 (https://github.com/lukeapage/pngjs)
37
+ - progress@2.0.3 (https://github.com/visionmedia/node-progress)
38
+ - proxy-from-env@1.1.0 (https://github.com/Rob--W/proxy-from-env)
39
+ - pump@3.0.2 (https://github.com/mafintosh/pump)
40
+ - retry@0.12.0 (https://github.com/tim-kos/node-retry)
41
+ - signal-exit@3.0.7 (https://github.com/tapjs/signal-exit)
42
+ - smart-buffer@4.2.0 (https://github.com/JoshGlazebrook/smart-buffer)
43
+ - socks-proxy-agent@6.1.1 (https://github.com/TooTallNate/node-socks-proxy-agent)
44
+ - socks@2.8.3 (https://github.com/JoshGlazebrook/socks)
45
+ - sprintf-js@1.1.3 (https://github.com/alexei/sprintf.js)
46
+ - wrappy@1.0.2 (https://github.com/npm/wrappy)
47
+ - ws@8.17.1 (https://github.com/websockets/ws)
48
+ - yaml@2.6.0 (https://github.com/eemeli/yaml)
49
+ - yauzl@3.2.0 (https://github.com/thejoshwolfe/yauzl)
50
+ - yazl@2.5.1 (https://github.com/thejoshwolfe/yazl)
51
+
52
+ %% agent-base@6.0.2 NOTICES AND INFORMATION BEGIN HERE
53
+ =========================================
54
+ agent-base
55
+ ==========
56
+ ### Turn a function into an [`http.Agent`][http.Agent] instance
57
+ [![Build Status](https://github.com/TooTallNate/node-agent-base/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-agent-base/actions?workflow=Node+CI)
58
+
59
+ This module provides an `http.Agent` generator. That is, you pass it an async
60
+ callback function, and it returns a new `http.Agent` instance that will invoke the
61
+ given callback function when sending outbound HTTP requests.
62
+
63
+ #### Some subclasses:
64
+
65
+ Here's some more interesting uses of `agent-base`.
66
+ Send a pull request to list yours!
67
+
68
+ * [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP endpoints
69
+ * [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS endpoints
70
+ * [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS
71
+ * [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
72
+
73
+
74
+ Installation
75
+ ------------
76
+
77
+ Install with `npm`:
78
+
79
+ ``` bash
80
+ $ npm install agent-base
81
+ ```
82
+
83
+
84
+ Example
85
+ -------
86
+
87
+ Here's a minimal example that creates a new `net.Socket` connection to the server
88
+ for every HTTP request (i.e. the equivalent of `agent: false` option):
89
+
90
+ ```js
91
+ var net = require('net');
92
+ var tls = require('tls');
93
+ var url = require('url');
94
+ var http = require('http');
95
+ var agent = require('agent-base');
96
+
97
+ var endpoint = 'http://nodejs.org/api/';
98
+ var parsed = url.parse(endpoint);
99
+
100
+ // This is the important part!
101
+ parsed.agent = agent(function (req, opts) {
102
+ var socket;
103
+ // `secureEndpoint` is true when using the https module
104
+ if (opts.secureEndpoint) {
105
+ socket = tls.connect(opts);
106
+ } else {
107
+ socket = net.connect(opts);
108
+ }
109
+ return socket;
110
+ });
111
+
112
+ // Everything else works just like normal...
113
+ http.get(parsed, function (res) {
114
+ console.log('"response" event!', res.headers);
115
+ res.pipe(process.stdout);
116
+ });
117
+ ```
118
+
119
+ Returning a Promise or using an `async` function is also supported:
120
+
121
+ ```js
122
+ agent(async function (req, opts) {
123
+ await sleep(1000);
124
+ // etc…
125
+ });
126
+ ```
127
+
128
+ Return another `http.Agent` instance to "pass through" the responsibility
129
+ for that HTTP request to that agent:
130
+
131
+ ```js
132
+ agent(function (req, opts) {
133
+ return opts.secureEndpoint ? https.globalAgent : http.globalAgent;
134
+ });
135
+ ```
136
+
137
+
138
+ API
139
+ ---
140
+
141
+ ## Agent(Function callback[, Object options]) → [http.Agent][]
142
+
143
+ Creates a base `http.Agent` that will execute the callback function `callback`
144
+ for every HTTP request that it is used as the `agent` for. The callback function
145
+ is responsible for creating a `stream.Duplex` instance of some kind that will be
146
+ used as the underlying socket in the HTTP request.
147
+
148
+ The `options` object accepts the following properties:
149
+
150
+ * `timeout` - Number - Timeout for the `callback()` function in milliseconds. Defaults to Infinity (optional).
151
+
152
+ The callback function should have the following signature:
153
+
154
+ ### callback(http.ClientRequest req, Object options, Function cb) → undefined
155
+
156
+ The ClientRequest `req` can be accessed to read request headers and
157
+ and the path, etc. The `options` object contains the options passed
158
+ to the `http.request()`/`https.request()` function call, and is formatted
159
+ to be directly passed to `net.connect()`/`tls.connect()`, or however
160
+ else you want a Socket to be created. Pass the created socket to
161
+ the callback function `cb` once created, and the HTTP request will
162
+ continue to proceed.
163
+
164
+ If the `https` module is used to invoke the HTTP request, then the
165
+ `secureEndpoint` property on `options` _will be set to `true`_.
166
+
167
+
168
+ License
169
+ -------
170
+
171
+ (The MIT License)
172
+
173
+ Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
174
+
175
+ Permission is hereby granted, free of charge, to any person obtaining
176
+ a copy of this software and associated documentation files (the
177
+ 'Software'), to deal in the Software without restriction, including
178
+ without limitation the rights to use, copy, modify, merge, publish,
179
+ distribute, sublicense, and/or sell copies of the Software, and to
180
+ permit persons to whom the Software is furnished to do so, subject to
181
+ the following conditions:
182
+
183
+ The above copyright notice and this permission notice shall be
184
+ included in all copies or substantial portions of the Software.
185
+
186
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
187
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
188
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
189
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
190
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
191
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
192
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
193
+
194
+ [http-proxy-agent]: https://github.com/TooTallNate/node-http-proxy-agent
195
+ [https-proxy-agent]: https://github.com/TooTallNate/node-https-proxy-agent
196
+ [pac-proxy-agent]: https://github.com/TooTallNate/node-pac-proxy-agent
197
+ [socks-proxy-agent]: https://github.com/TooTallNate/node-socks-proxy-agent
198
+ [http.Agent]: https://nodejs.org/api/http.html#http_class_http_agent
199
+ =========================================
200
+ END OF agent-base@6.0.2 AND INFORMATION
201
+
202
+ %% balanced-match@1.0.2 NOTICES AND INFORMATION BEGIN HERE
203
+ =========================================
204
+ (MIT)
205
+
206
+ Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
207
+
208
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
209
+ this software and associated documentation files (the "Software"), to deal in
210
+ the Software without restriction, including without limitation the rights to
211
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
212
+ of the Software, and to permit persons to whom the Software is furnished to do
213
+ so, subject to the following conditions:
214
+
215
+ The above copyright notice and this permission notice shall be included in all
216
+ copies or substantial portions of the Software.
217
+
218
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
219
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
220
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
221
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
222
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
223
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
224
+ SOFTWARE.
225
+ =========================================
226
+ END OF balanced-match@1.0.2 AND INFORMATION
227
+
228
+ %% brace-expansion@1.1.12 NOTICES AND INFORMATION BEGIN HERE
229
+ =========================================
230
+ MIT License
231
+
232
+ Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
233
+
234
+ Permission is hereby granted, free of charge, to any person obtaining a copy
235
+ of this software and associated documentation files (the "Software"), to deal
236
+ in the Software without restriction, including without limitation the rights
237
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
238
+ copies of the Software, and to permit persons to whom the Software is
239
+ furnished to do so, subject to the following conditions:
240
+
241
+ The above copyright notice and this permission notice shall be included in all
242
+ copies or substantial portions of the Software.
243
+
244
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
245
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
246
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
247
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
248
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
249
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
250
+ SOFTWARE.
251
+ =========================================
252
+ END OF brace-expansion@1.1.12 AND INFORMATION
253
+
254
+ %% buffer-crc32@0.2.13 NOTICES AND INFORMATION BEGIN HERE
255
+ =========================================
256
+ The MIT License
257
+
258
+ Copyright (c) 2013 Brian J. Brennan
259
+
260
+ Permission is hereby granted, free of charge, to any person obtaining a copy
261
+ of this software and associated documentation files (the "Software"), to deal in
262
+ the Software without restriction, including without limitation the rights to use,
263
+ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
264
+ Software, and to permit persons to whom the Software is furnished to do so,
265
+ subject to the following conditions:
266
+
267
+ The above copyright notice and this permission notice shall be included in all
268
+ copies or substantial portions of the Software.
269
+
270
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
271
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
272
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
273
+ FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
274
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
275
+ =========================================
276
+ END OF buffer-crc32@0.2.13 AND INFORMATION
277
+
278
+ %% codemirror@5.65.18 NOTICES AND INFORMATION BEGIN HERE
279
+ =========================================
280
+ MIT License
281
+
282
+ Copyright (C) 2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
283
+
284
+ Permission is hereby granted, free of charge, to any person obtaining a copy
285
+ of this software and associated documentation files (the "Software"), to deal
286
+ in the Software without restriction, including without limitation the rights
287
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
288
+ copies of the Software, and to permit persons to whom the Software is
289
+ furnished to do so, subject to the following conditions:
290
+
291
+ The above copyright notice and this permission notice shall be included in
292
+ all copies or substantial portions of the Software.
293
+
294
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
295
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
296
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
297
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
298
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
299
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
300
+ THE SOFTWARE.
301
+ =========================================
302
+ END OF codemirror@5.65.18 AND INFORMATION
303
+
304
+ %% colors@1.4.0 NOTICES AND INFORMATION BEGIN HERE
305
+ =========================================
306
+ MIT License
307
+
308
+ Original Library
309
+ - Copyright (c) Marak Squires
310
+
311
+ Additional Functionality
312
+ - Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
313
+
314
+ Permission is hereby granted, free of charge, to any person obtaining a copy
315
+ of this software and associated documentation files (the "Software"), to deal
316
+ in the Software without restriction, including without limitation the rights
317
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
318
+ copies of the Software, and to permit persons to whom the Software is
319
+ furnished to do so, subject to the following conditions:
320
+
321
+ The above copyright notice and this permission notice shall be included in
322
+ all copies or substantial portions of the Software.
323
+
324
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
325
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
326
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
327
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
328
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
329
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
330
+ THE SOFTWARE.
331
+ =========================================
332
+ END OF colors@1.4.0 AND INFORMATION
333
+
334
+ %% commander@13.1.0 NOTICES AND INFORMATION BEGIN HERE
335
+ =========================================
336
+ (The MIT License)
337
+
338
+ Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
339
+
340
+ Permission is hereby granted, free of charge, to any person obtaining
341
+ a copy of this software and associated documentation files (the
342
+ 'Software'), to deal in the Software without restriction, including
343
+ without limitation the rights to use, copy, modify, merge, publish,
344
+ distribute, sublicense, and/or sell copies of the Software, and to
345
+ permit persons to whom the Software is furnished to do so, subject to
346
+ the following conditions:
347
+
348
+ The above copyright notice and this permission notice shall be
349
+ included in all copies or substantial portions of the Software.
350
+
351
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
352
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
353
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
354
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
355
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
356
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
357
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
358
+ =========================================
359
+ END OF commander@13.1.0 AND INFORMATION
360
+
361
+ %% concat-map@0.0.1 NOTICES AND INFORMATION BEGIN HERE
362
+ =========================================
363
+ This software is released under the MIT license:
364
+
365
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
366
+ this software and associated documentation files (the "Software"), to deal in
367
+ the Software without restriction, including without limitation the rights to
368
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
369
+ the Software, and to permit persons to whom the Software is furnished to do so,
370
+ subject to the following conditions:
371
+
372
+ The above copyright notice and this permission notice shall be included in all
373
+ copies or substantial portions of the Software.
374
+
375
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
376
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
377
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
378
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
379
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
380
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
381
+ =========================================
382
+ END OF concat-map@0.0.1 AND INFORMATION
383
+
384
+ %% debug@4.3.4 NOTICES AND INFORMATION BEGIN HERE
385
+ =========================================
386
+ (The MIT License)
387
+
388
+ Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
389
+ Copyright (c) 2018-2021 Josh Junon
390
+
391
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software
392
+ and associated documentation files (the 'Software'), to deal in the Software without restriction,
393
+ including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
394
+ and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
395
+ subject to the following conditions:
396
+
397
+ The above copyright notice and this permission notice shall be included in all copies or substantial
398
+ portions of the Software.
399
+
400
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
401
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
402
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
403
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
404
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
405
+ =========================================
406
+ END OF debug@4.3.4 AND INFORMATION
407
+
408
+ %% debug@4.4.0 NOTICES AND INFORMATION BEGIN HERE
409
+ =========================================
410
+ (The MIT License)
411
+
412
+ Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
413
+ Copyright (c) 2018-2021 Josh Junon
414
+
415
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software
416
+ and associated documentation files (the 'Software'), to deal in the Software without restriction,
417
+ including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
418
+ and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
419
+ subject to the following conditions:
420
+
421
+ The above copyright notice and this permission notice shall be included in all copies or substantial
422
+ portions of the Software.
423
+
424
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
425
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
426
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
427
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
428
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
429
+ =========================================
430
+ END OF debug@4.4.0 AND INFORMATION
431
+
432
+ %% define-lazy-prop@2.0.0 NOTICES AND INFORMATION BEGIN HERE
433
+ =========================================
434
+ MIT License
435
+
436
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
437
+
438
+ 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:
439
+
440
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
441
+
442
+ 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.
443
+ =========================================
444
+ END OF define-lazy-prop@2.0.0 AND INFORMATION
445
+
446
+ %% diff@7.0.0 NOTICES AND INFORMATION BEGIN HERE
447
+ =========================================
448
+ BSD 3-Clause License
449
+
450
+ Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
451
+ All rights reserved.
452
+
453
+ Redistribution and use in source and binary forms, with or without
454
+ modification, are permitted provided that the following conditions are met:
455
+
456
+ 1. Redistributions of source code must retain the above copyright notice, this
457
+ list of conditions and the following disclaimer.
458
+
459
+ 2. Redistributions in binary form must reproduce the above copyright notice,
460
+ this list of conditions and the following disclaimer in the documentation
461
+ and/or other materials provided with the distribution.
462
+
463
+ 3. Neither the name of the copyright holder nor the names of its
464
+ contributors may be used to endorse or promote products derived from
465
+ this software without specific prior written permission.
466
+
467
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
468
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
469
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
470
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
471
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
472
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
473
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
474
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
475
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
476
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
477
+ =========================================
478
+ END OF diff@7.0.0 AND INFORMATION
479
+
480
+ %% dotenv@16.4.5 NOTICES AND INFORMATION BEGIN HERE
481
+ =========================================
482
+ Copyright (c) 2015, Scott Motte
483
+ All rights reserved.
484
+
485
+ Redistribution and use in source and binary forms, with or without
486
+ modification, are permitted provided that the following conditions are met:
487
+
488
+ * Redistributions of source code must retain the above copyright notice, this
489
+ list of conditions and the following disclaimer.
490
+
491
+ * Redistributions in binary form must reproduce the above copyright notice,
492
+ this list of conditions and the following disclaimer in the documentation
493
+ and/or other materials provided with the distribution.
494
+
495
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
496
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
497
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
498
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
499
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
500
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
501
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
502
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
503
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
504
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
505
+ =========================================
506
+ END OF dotenv@16.4.5 AND INFORMATION
507
+
508
+ %% end-of-stream@1.4.4 NOTICES AND INFORMATION BEGIN HERE
509
+ =========================================
510
+ The MIT License (MIT)
511
+
512
+ Copyright (c) 2014 Mathias Buus
513
+
514
+ Permission is hereby granted, free of charge, to any person obtaining a copy
515
+ of this software and associated documentation files (the "Software"), to deal
516
+ in the Software without restriction, including without limitation the rights
517
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
518
+ copies of the Software, and to permit persons to whom the Software is
519
+ furnished to do so, subject to the following conditions:
520
+
521
+ The above copyright notice and this permission notice shall be included in
522
+ all copies or substantial portions of the Software.
523
+
524
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
525
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
526
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
527
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
528
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
529
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
530
+ THE SOFTWARE.
531
+ =========================================
532
+ END OF end-of-stream@1.4.4 AND INFORMATION
533
+
534
+ %% get-stream@5.2.0 NOTICES AND INFORMATION BEGIN HERE
535
+ =========================================
536
+ MIT License
537
+
538
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
539
+
540
+ 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:
541
+
542
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
543
+
544
+ 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.
545
+ =========================================
546
+ END OF get-stream@5.2.0 AND INFORMATION
547
+
548
+ %% graceful-fs@4.2.10 NOTICES AND INFORMATION BEGIN HERE
549
+ =========================================
550
+ The ISC License
551
+
552
+ Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
553
+
554
+ Permission to use, copy, modify, and/or distribute this software for any
555
+ purpose with or without fee is hereby granted, provided that the above
556
+ copyright notice and this permission notice appear in all copies.
557
+
558
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
559
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
560
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
561
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
562
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
563
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
564
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
565
+ =========================================
566
+ END OF graceful-fs@4.2.10 AND INFORMATION
567
+
568
+ %% https-proxy-agent@5.0.1 NOTICES AND INFORMATION BEGIN HERE
569
+ =========================================
570
+ https-proxy-agent
571
+ ================
572
+ ### An HTTP(s) proxy `http.Agent` implementation for HTTPS
573
+ [![Build Status](https://github.com/TooTallNate/node-https-proxy-agent/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-https-proxy-agent/actions?workflow=Node+CI)
574
+
575
+ This module provides an `http.Agent` implementation that connects to a specified
576
+ HTTP or HTTPS proxy server, and can be used with the built-in `https` module.
577
+
578
+ Specifically, this `Agent` implementation connects to an intermediary "proxy"
579
+ server and issues the [CONNECT HTTP method][CONNECT], which tells the proxy to
580
+ open a direct TCP connection to the destination server.
581
+
582
+ Since this agent implements the CONNECT HTTP method, it also works with other
583
+ protocols that use this method when connecting over proxies (i.e. WebSockets).
584
+ See the "Examples" section below for more.
585
+
586
+
587
+ Installation
588
+ ------------
589
+
590
+ Install with `npm`:
591
+
592
+ ``` bash
593
+ $ npm install https-proxy-agent
594
+ ```
595
+
596
+
597
+ Examples
598
+ --------
599
+
600
+ #### `https` module example
601
+
602
+ ``` js
603
+ var url = require('url');
604
+ var https = require('https');
605
+ var HttpsProxyAgent = require('https-proxy-agent');
606
+
607
+ // HTTP/HTTPS proxy to connect to
608
+ var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
609
+ console.log('using proxy server %j', proxy);
610
+
611
+ // HTTPS endpoint for the proxy to connect to
612
+ var endpoint = process.argv[2] || 'https://graph.facebook.com/tootallnate';
613
+ console.log('attempting to GET %j', endpoint);
614
+ var options = url.parse(endpoint);
615
+
616
+ // create an instance of the `HttpsProxyAgent` class with the proxy server information
617
+ var agent = new HttpsProxyAgent(proxy);
618
+ options.agent = agent;
619
+
620
+ https.get(options, function (res) {
621
+ console.log('"response" event!', res.headers);
622
+ res.pipe(process.stdout);
623
+ });
624
+ ```
625
+
626
+ #### `ws` WebSocket connection example
627
+
628
+ ``` js
629
+ var url = require('url');
630
+ var WebSocket = require('ws');
631
+ var HttpsProxyAgent = require('https-proxy-agent');
632
+
633
+ // HTTP/HTTPS proxy to connect to
634
+ var proxy = process.env.http_proxy || 'http://168.63.76.32:3128';
635
+ console.log('using proxy server %j', proxy);
636
+
637
+ // WebSocket endpoint for the proxy to connect to
638
+ var endpoint = process.argv[2] || 'ws://echo.websocket.org';
639
+ var parsed = url.parse(endpoint);
640
+ console.log('attempting to connect to WebSocket %j', endpoint);
641
+
642
+ // create an instance of the `HttpsProxyAgent` class with the proxy server information
643
+ var options = url.parse(proxy);
644
+
645
+ var agent = new HttpsProxyAgent(options);
646
+
647
+ // finally, initiate the WebSocket connection
648
+ var socket = new WebSocket(endpoint, { agent: agent });
649
+
650
+ socket.on('open', function () {
651
+ console.log('"open" event!');
652
+ socket.send('hello world');
653
+ });
654
+
655
+ socket.on('message', function (data, flags) {
656
+ console.log('"message" event! %j %j', data, flags);
657
+ socket.close();
658
+ });
659
+ ```
660
+
661
+ API
662
+ ---
663
+
664
+ ### new HttpsProxyAgent(Object options)
665
+
666
+ The `HttpsProxyAgent` class implements an `http.Agent` subclass that connects
667
+ to the specified "HTTP(s) proxy server" in order to proxy HTTPS and/or WebSocket
668
+ requests. This is achieved by using the [HTTP `CONNECT` method][CONNECT].
669
+
670
+ The `options` argument may either be a string URI of the proxy server to use, or an
671
+ "options" object with more specific properties:
672
+
673
+ * `host` - String - Proxy host to connect to (may use `hostname` as well). Required.
674
+ * `port` - Number - Proxy port to connect to. Required.
675
+ * `protocol` - String - If `https:`, then use TLS to connect to the proxy.
676
+ * `headers` - Object - Additional HTTP headers to be sent on the HTTP CONNECT method.
677
+ * Any other options given are passed to the `net.connect()`/`tls.connect()` functions.
678
+
679
+
680
+ License
681
+ -------
682
+
683
+ (The MIT License)
684
+
685
+ Copyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
686
+
687
+ Permission is hereby granted, free of charge, to any person obtaining
688
+ a copy of this software and associated documentation files (the
689
+ 'Software'), to deal in the Software without restriction, including
690
+ without limitation the rights to use, copy, modify, merge, publish,
691
+ distribute, sublicense, and/or sell copies of the Software, and to
692
+ permit persons to whom the Software is furnished to do so, subject to
693
+ the following conditions:
694
+
695
+ The above copyright notice and this permission notice shall be
696
+ included in all copies or substantial portions of the Software.
697
+
698
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
699
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
700
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
701
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
702
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
703
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
704
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
705
+
706
+ [CONNECT]: http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling
707
+ =========================================
708
+ END OF https-proxy-agent@5.0.1 AND INFORMATION
709
+
710
+ %% ip-address@9.0.5 NOTICES AND INFORMATION BEGIN HERE
711
+ =========================================
712
+ Copyright (C) 2011 by Beau Gunderson
713
+
714
+ Permission is hereby granted, free of charge, to any person obtaining a copy
715
+ of this software and associated documentation files (the "Software"), to deal
716
+ in the Software without restriction, including without limitation the rights
717
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
718
+ copies of the Software, and to permit persons to whom the Software is
719
+ furnished to do so, subject to the following conditions:
720
+
721
+ The above copyright notice and this permission notice shall be included in
722
+ all copies or substantial portions of the Software.
723
+
724
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
725
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
726
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
727
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
728
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
729
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
730
+ THE SOFTWARE.
731
+ =========================================
732
+ END OF ip-address@9.0.5 AND INFORMATION
733
+
734
+ %% is-docker@2.2.1 NOTICES AND INFORMATION BEGIN HERE
735
+ =========================================
736
+ MIT License
737
+
738
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
739
+
740
+ 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:
741
+
742
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
743
+
744
+ 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.
745
+ =========================================
746
+ END OF is-docker@2.2.1 AND INFORMATION
747
+
748
+ %% is-wsl@2.2.0 NOTICES AND INFORMATION BEGIN HERE
749
+ =========================================
750
+ MIT License
751
+
752
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
753
+
754
+ 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:
755
+
756
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
757
+
758
+ 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.
759
+ =========================================
760
+ END OF is-wsl@2.2.0 AND INFORMATION
761
+
762
+ %% jpeg-js@0.4.4 NOTICES AND INFORMATION BEGIN HERE
763
+ =========================================
764
+ Copyright (c) 2014, Eugene Ware
765
+ All rights reserved.
766
+
767
+ Redistribution and use in source and binary forms, with or without
768
+ modification, are permitted provided that the following conditions are met:
769
+
770
+ 1. Redistributions of source code must retain the above copyright
771
+ notice, this list of conditions and the following disclaimer.
772
+ 2. Redistributions in binary form must reproduce the above copyright
773
+ notice, this list of conditions and the following disclaimer in the
774
+ documentation and/or other materials provided with the distribution.
775
+ 3. Neither the name of Eugene Ware nor the names of its contributors
776
+ may be used to endorse or promote products derived from this software
777
+ without specific prior written permission.
778
+
779
+ THIS SOFTWARE IS PROVIDED BY EUGENE WARE ''AS IS'' AND ANY
780
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
781
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
782
+ DISCLAIMED. IN NO EVENT SHALL EUGENE WARE BE LIABLE FOR ANY
783
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
784
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
785
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
786
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
787
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
788
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
789
+ =========================================
790
+ END OF jpeg-js@0.4.4 AND INFORMATION
791
+
792
+ %% jsbn@1.1.0 NOTICES AND INFORMATION BEGIN HERE
793
+ =========================================
794
+ Licensing
795
+ ---------
796
+
797
+ This software is covered under the following copyright:
798
+
799
+ /*
800
+ * Copyright (c) 2003-2005 Tom Wu
801
+ * All Rights Reserved.
802
+ *
803
+ * Permission is hereby granted, free of charge, to any person obtaining
804
+ * a copy of this software and associated documentation files (the
805
+ * "Software"), to deal in the Software without restriction, including
806
+ * without limitation the rights to use, copy, modify, merge, publish,
807
+ * distribute, sublicense, and/or sell copies of the Software, and to
808
+ * permit persons to whom the Software is furnished to do so, subject to
809
+ * the following conditions:
810
+ *
811
+ * The above copyright notice and this permission notice shall be
812
+ * included in all copies or substantial portions of the Software.
813
+ *
814
+ * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
815
+ * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
816
+ * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
817
+ *
818
+ * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
819
+ * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
820
+ * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
821
+ * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
822
+ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
823
+ *
824
+ * In addition, the following condition applies:
825
+ *
826
+ * All redistributions must retain an intact copy of this copyright notice
827
+ * and disclaimer.
828
+ */
829
+
830
+ Address all questions regarding this license to:
831
+
832
+ Tom Wu
833
+ tjw@cs.Stanford.EDU
834
+ =========================================
835
+ END OF jsbn@1.1.0 AND INFORMATION
836
+
837
+ %% mime@3.0.0 NOTICES AND INFORMATION BEGIN HERE
838
+ =========================================
839
+ The MIT License (MIT)
840
+
841
+ Copyright (c) 2010 Benjamin Thomas, Robert Kieffer
842
+
843
+ Permission is hereby granted, free of charge, to any person obtaining a copy
844
+ of this software and associated documentation files (the "Software"), to deal
845
+ in the Software without restriction, including without limitation the rights
846
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
847
+ copies of the Software, and to permit persons to whom the Software is
848
+ furnished to do so, subject to the following conditions:
849
+
850
+ The above copyright notice and this permission notice shall be included in
851
+ all copies or substantial portions of the Software.
852
+
853
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
854
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
855
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
856
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
857
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
858
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
859
+ THE SOFTWARE.
860
+ =========================================
861
+ END OF mime@3.0.0 AND INFORMATION
862
+
863
+ %% minimatch@3.1.2 NOTICES AND INFORMATION BEGIN HERE
864
+ =========================================
865
+ The ISC License
866
+
867
+ Copyright (c) Isaac Z. Schlueter and Contributors
868
+
869
+ Permission to use, copy, modify, and/or distribute this software for any
870
+ purpose with or without fee is hereby granted, provided that the above
871
+ copyright notice and this permission notice appear in all copies.
872
+
873
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
874
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
875
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
876
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
877
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
878
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
879
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
880
+ =========================================
881
+ END OF minimatch@3.1.2 AND INFORMATION
882
+
883
+ %% ms@2.1.2 NOTICES AND INFORMATION BEGIN HERE
884
+ =========================================
885
+ The MIT License (MIT)
886
+
887
+ Copyright (c) 2016 Zeit, Inc.
888
+
889
+ Permission is hereby granted, free of charge, to any person obtaining a copy
890
+ of this software and associated documentation files (the "Software"), to deal
891
+ in the Software without restriction, including without limitation the rights
892
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
893
+ copies of the Software, and to permit persons to whom the Software is
894
+ furnished to do so, subject to the following conditions:
895
+
896
+ The above copyright notice and this permission notice shall be included in all
897
+ copies or substantial portions of the Software.
898
+
899
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
900
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
901
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
902
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
903
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
904
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
905
+ SOFTWARE.
906
+ =========================================
907
+ END OF ms@2.1.2 AND INFORMATION
908
+
909
+ %% ms@2.1.3 NOTICES AND INFORMATION BEGIN HERE
910
+ =========================================
911
+ The MIT License (MIT)
912
+
913
+ Copyright (c) 2020 Vercel, Inc.
914
+
915
+ Permission is hereby granted, free of charge, to any person obtaining a copy
916
+ of this software and associated documentation files (the "Software"), to deal
917
+ in the Software without restriction, including without limitation the rights
918
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
919
+ copies of the Software, and to permit persons to whom the Software is
920
+ furnished to do so, subject to the following conditions:
921
+
922
+ The above copyright notice and this permission notice shall be included in all
923
+ copies or substantial portions of the Software.
924
+
925
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
926
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
927
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
928
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
929
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
930
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
931
+ SOFTWARE.
932
+ =========================================
933
+ END OF ms@2.1.3 AND INFORMATION
934
+
935
+ %% once@1.4.0 NOTICES AND INFORMATION BEGIN HERE
936
+ =========================================
937
+ The ISC License
938
+
939
+ Copyright (c) Isaac Z. Schlueter and Contributors
940
+
941
+ Permission to use, copy, modify, and/or distribute this software for any
942
+ purpose with or without fee is hereby granted, provided that the above
943
+ copyright notice and this permission notice appear in all copies.
944
+
945
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
946
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
947
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
948
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
949
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
950
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
951
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
952
+ =========================================
953
+ END OF once@1.4.0 AND INFORMATION
954
+
955
+ %% open@8.4.0 NOTICES AND INFORMATION BEGIN HERE
956
+ =========================================
957
+ MIT License
958
+
959
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
960
+
961
+ 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:
962
+
963
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
964
+
965
+ 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.
966
+ =========================================
967
+ END OF open@8.4.0 AND INFORMATION
968
+
969
+ %% pend@1.2.0 NOTICES AND INFORMATION BEGIN HERE
970
+ =========================================
971
+ The MIT License (Expat)
972
+
973
+ Copyright (c) 2014 Andrew Kelley
974
+
975
+ Permission is hereby granted, free of charge, to any person
976
+ obtaining a copy of this software and associated documentation files
977
+ (the "Software"), to deal in the Software without restriction,
978
+ including without limitation the rights to use, copy, modify, merge,
979
+ publish, distribute, sublicense, and/or sell copies of the Software,
980
+ and to permit persons to whom the Software is furnished to do so,
981
+ subject to the following conditions:
982
+
983
+ The above copyright notice and this permission notice shall be
984
+ included in all copies or substantial portions of the Software.
985
+
986
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
987
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
988
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
989
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
990
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
991
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
992
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
993
+ SOFTWARE.
994
+ =========================================
995
+ END OF pend@1.2.0 AND INFORMATION
996
+
997
+ %% pngjs@6.0.0 NOTICES AND INFORMATION BEGIN HERE
998
+ =========================================
999
+ pngjs2 original work Copyright (c) 2015 Luke Page & Original Contributors
1000
+ pngjs derived work Copyright (c) 2012 Kuba Niegowski
1001
+
1002
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1003
+ of this software and associated documentation files (the "Software"), to deal
1004
+ in the Software without restriction, including without limitation the rights
1005
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1006
+ copies of the Software, and to permit persons to whom the Software is
1007
+ furnished to do so, subject to the following conditions:
1008
+
1009
+ The above copyright notice and this permission notice shall be included in
1010
+ all copies or substantial portions of the Software.
1011
+
1012
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1013
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1014
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1015
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1016
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1017
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1018
+ THE SOFTWARE.
1019
+ =========================================
1020
+ END OF pngjs@6.0.0 AND INFORMATION
1021
+
1022
+ %% progress@2.0.3 NOTICES AND INFORMATION BEGIN HERE
1023
+ =========================================
1024
+ (The MIT License)
1025
+
1026
+ Copyright (c) 2017 TJ Holowaychuk <tj@vision-media.ca>
1027
+
1028
+ Permission is hereby granted, free of charge, to any person obtaining
1029
+ a copy of this software and associated documentation files (the
1030
+ 'Software'), to deal in the Software without restriction, including
1031
+ without limitation the rights to use, copy, modify, merge, publish,
1032
+ distribute, sublicense, and/or sell copies of the Software, and to
1033
+ permit persons to whom the Software is furnished to do so, subject to
1034
+ the following conditions:
1035
+
1036
+ The above copyright notice and this permission notice shall be
1037
+ included in all copies or substantial portions of the Software.
1038
+
1039
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1040
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1041
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1042
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1043
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1044
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1045
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1046
+ =========================================
1047
+ END OF progress@2.0.3 AND INFORMATION
1048
+
1049
+ %% proxy-from-env@1.1.0 NOTICES AND INFORMATION BEGIN HERE
1050
+ =========================================
1051
+ The MIT License
1052
+
1053
+ Copyright (C) 2016-2018 Rob Wu <rob@robwu.nl>
1054
+
1055
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
1056
+ this software and associated documentation files (the "Software"), to deal in
1057
+ the Software without restriction, including without limitation the rights to
1058
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
1059
+ of the Software, and to permit persons to whom the Software is furnished to do
1060
+ so, subject to the following conditions:
1061
+
1062
+ The above copyright notice and this permission notice shall be included in all
1063
+ copies or substantial portions of the Software.
1064
+
1065
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1066
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1067
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1068
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1069
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1070
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1071
+ =========================================
1072
+ END OF proxy-from-env@1.1.0 AND INFORMATION
1073
+
1074
+ %% pump@3.0.2 NOTICES AND INFORMATION BEGIN HERE
1075
+ =========================================
1076
+ The MIT License (MIT)
1077
+
1078
+ Copyright (c) 2014 Mathias Buus
1079
+
1080
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1081
+ of this software and associated documentation files (the "Software"), to deal
1082
+ in the Software without restriction, including without limitation the rights
1083
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1084
+ copies of the Software, and to permit persons to whom the Software is
1085
+ furnished to do so, subject to the following conditions:
1086
+
1087
+ The above copyright notice and this permission notice shall be included in
1088
+ all copies or substantial portions of the Software.
1089
+
1090
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1091
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1092
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1093
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1094
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1095
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1096
+ THE SOFTWARE.
1097
+ =========================================
1098
+ END OF pump@3.0.2 AND INFORMATION
1099
+
1100
+ %% retry@0.12.0 NOTICES AND INFORMATION BEGIN HERE
1101
+ =========================================
1102
+ Copyright (c) 2011:
1103
+ Tim Koschützki (tim@debuggable.com)
1104
+ Felix Geisendörfer (felix@debuggable.com)
1105
+
1106
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1107
+ of this software and associated documentation files (the "Software"), to deal
1108
+ in the Software without restriction, including without limitation the rights
1109
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1110
+ copies of the Software, and to permit persons to whom the Software is
1111
+ furnished to do so, subject to the following conditions:
1112
+
1113
+ The above copyright notice and this permission notice shall be included in
1114
+ all copies or substantial portions of the Software.
1115
+
1116
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1117
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1118
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1119
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1120
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1121
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1122
+ THE SOFTWARE.
1123
+ =========================================
1124
+ END OF retry@0.12.0 AND INFORMATION
1125
+
1126
+ %% signal-exit@3.0.7 NOTICES AND INFORMATION BEGIN HERE
1127
+ =========================================
1128
+ The ISC License
1129
+
1130
+ Copyright (c) 2015, Contributors
1131
+
1132
+ Permission to use, copy, modify, and/or distribute this software
1133
+ for any purpose with or without fee is hereby granted, provided
1134
+ that the above copyright notice and this permission notice
1135
+ appear in all copies.
1136
+
1137
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1138
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
1139
+ OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
1140
+ LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
1141
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
1142
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
1143
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1144
+ =========================================
1145
+ END OF signal-exit@3.0.7 AND INFORMATION
1146
+
1147
+ %% smart-buffer@4.2.0 NOTICES AND INFORMATION BEGIN HERE
1148
+ =========================================
1149
+ The MIT License (MIT)
1150
+
1151
+ Copyright (c) 2013-2017 Josh Glazebrook
1152
+
1153
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
1154
+ this software and associated documentation files (the "Software"), to deal in
1155
+ the Software without restriction, including without limitation the rights to
1156
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
1157
+ the Software, and to permit persons to whom the Software is furnished to do so,
1158
+ subject to the following conditions:
1159
+
1160
+ The above copyright notice and this permission notice shall be included in all
1161
+ copies or substantial portions of the Software.
1162
+
1163
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1164
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1165
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1166
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1167
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1168
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1169
+ =========================================
1170
+ END OF smart-buffer@4.2.0 AND INFORMATION
1171
+
1172
+ %% socks-proxy-agent@6.1.1 NOTICES AND INFORMATION BEGIN HERE
1173
+ =========================================
1174
+ socks-proxy-agent
1175
+ ================
1176
+ ### A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
1177
+ [![Build Status](https://github.com/TooTallNate/node-socks-proxy-agent/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-socks-proxy-agent/actions?workflow=Node+CI)
1178
+
1179
+ This module provides an `http.Agent` implementation that connects to a
1180
+ specified SOCKS proxy server, and can be used with the built-in `http`
1181
+ and `https` modules.
1182
+
1183
+ It can also be used in conjunction with the `ws` module to establish a WebSocket
1184
+ connection over a SOCKS proxy. See the "Examples" section below.
1185
+
1186
+ Installation
1187
+ ------------
1188
+
1189
+ Install with `npm`:
1190
+
1191
+ ``` bash
1192
+ $ npm install socks-proxy-agent
1193
+ ```
1194
+
1195
+
1196
+ Examples
1197
+ --------
1198
+
1199
+ #### TypeScript example
1200
+
1201
+ ```ts
1202
+ import https from 'https';
1203
+ import { SocksProxyAgent } from 'socks-proxy-agent';
1204
+
1205
+ const info = {
1206
+ host: 'br41.nordvpn.com',
1207
+ userId: 'your-name@gmail.com',
1208
+ password: 'abcdef12345124'
1209
+ };
1210
+ const agent = new SocksProxyAgent(info);
1211
+
1212
+ https.get('https://jsonip.org', { agent }, (res) => {
1213
+ console.log(res.headers);
1214
+ res.pipe(process.stdout);
1215
+ });
1216
+ ```
1217
+
1218
+ #### `http` module example
1219
+
1220
+ ```js
1221
+ var url = require('url');
1222
+ var http = require('http');
1223
+ var SocksProxyAgent = require('socks-proxy-agent');
1224
+
1225
+ // SOCKS proxy to connect to
1226
+ var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
1227
+ console.log('using proxy server %j', proxy);
1228
+
1229
+ // HTTP endpoint for the proxy to connect to
1230
+ var endpoint = process.argv[2] || 'http://nodejs.org/api/';
1231
+ console.log('attempting to GET %j', endpoint);
1232
+ var opts = url.parse(endpoint);
1233
+
1234
+ // create an instance of the `SocksProxyAgent` class with the proxy server information
1235
+ var agent = new SocksProxyAgent(proxy);
1236
+ opts.agent = agent;
1237
+
1238
+ http.get(opts, function (res) {
1239
+ console.log('"response" event!', res.headers);
1240
+ res.pipe(process.stdout);
1241
+ });
1242
+ ```
1243
+
1244
+ #### `https` module example
1245
+
1246
+ ```js
1247
+ var url = require('url');
1248
+ var https = require('https');
1249
+ var SocksProxyAgent = require('socks-proxy-agent');
1250
+
1251
+ // SOCKS proxy to connect to
1252
+ var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
1253
+ console.log('using proxy server %j', proxy);
1254
+
1255
+ // HTTP endpoint for the proxy to connect to
1256
+ var endpoint = process.argv[2] || 'https://encrypted.google.com/';
1257
+ console.log('attempting to GET %j', endpoint);
1258
+ var opts = url.parse(endpoint);
1259
+
1260
+ // create an instance of the `SocksProxyAgent` class with the proxy server information
1261
+ var agent = new SocksProxyAgent(proxy);
1262
+ opts.agent = agent;
1263
+
1264
+ https.get(opts, function (res) {
1265
+ console.log('"response" event!', res.headers);
1266
+ res.pipe(process.stdout);
1267
+ });
1268
+ ```
1269
+
1270
+ #### `ws` WebSocket connection example
1271
+
1272
+ ``` js
1273
+ var WebSocket = require('ws');
1274
+ var SocksProxyAgent = require('socks-proxy-agent');
1275
+
1276
+ // SOCKS proxy to connect to
1277
+ var proxy = process.env.socks_proxy || 'socks://127.0.0.1:1080';
1278
+ console.log('using proxy server %j', proxy);
1279
+
1280
+ // WebSocket endpoint for the proxy to connect to
1281
+ var endpoint = process.argv[2] || 'ws://echo.websocket.org';
1282
+ console.log('attempting to connect to WebSocket %j', endpoint);
1283
+
1284
+ // create an instance of the `SocksProxyAgent` class with the proxy server information
1285
+ var agent = new SocksProxyAgent(proxy);
1286
+
1287
+ // initiate the WebSocket connection
1288
+ var socket = new WebSocket(endpoint, { agent: agent });
1289
+
1290
+ socket.on('open', function () {
1291
+ console.log('"open" event!');
1292
+ socket.send('hello world');
1293
+ });
1294
+
1295
+ socket.on('message', function (data, flags) {
1296
+ console.log('"message" event! %j %j', data, flags);
1297
+ socket.close();
1298
+ });
1299
+ ```
1300
+
1301
+ License
1302
+ -------
1303
+
1304
+ (The MIT License)
1305
+
1306
+ Copyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
1307
+
1308
+ Permission is hereby granted, free of charge, to any person obtaining
1309
+ a copy of this software and associated documentation files (the
1310
+ 'Software'), to deal in the Software without restriction, including
1311
+ without limitation the rights to use, copy, modify, merge, publish,
1312
+ distribute, sublicense, and/or sell copies of the Software, and to
1313
+ permit persons to whom the Software is furnished to do so, subject to
1314
+ the following conditions:
1315
+
1316
+ The above copyright notice and this permission notice shall be
1317
+ included in all copies or substantial portions of the Software.
1318
+
1319
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1320
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1321
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1322
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1323
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1324
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1325
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1326
+ =========================================
1327
+ END OF socks-proxy-agent@6.1.1 AND INFORMATION
1328
+
1329
+ %% socks@2.8.3 NOTICES AND INFORMATION BEGIN HERE
1330
+ =========================================
1331
+ The MIT License (MIT)
1332
+
1333
+ Copyright (c) 2013 Josh Glazebrook
1334
+
1335
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
1336
+ this software and associated documentation files (the "Software"), to deal in
1337
+ the Software without restriction, including without limitation the rights to
1338
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
1339
+ the Software, and to permit persons to whom the Software is furnished to do so,
1340
+ subject to the following conditions:
1341
+
1342
+ The above copyright notice and this permission notice shall be included in all
1343
+ copies or substantial portions of the Software.
1344
+
1345
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1346
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1347
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1348
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1349
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1350
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1351
+ =========================================
1352
+ END OF socks@2.8.3 AND INFORMATION
1353
+
1354
+ %% sprintf-js@1.1.3 NOTICES AND INFORMATION BEGIN HERE
1355
+ =========================================
1356
+ Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
1357
+ All rights reserved.
1358
+
1359
+ Redistribution and use in source and binary forms, with or without
1360
+ modification, are permitted provided that the following conditions are met:
1361
+ * Redistributions of source code must retain the above copyright
1362
+ notice, this list of conditions and the following disclaimer.
1363
+ * Redistributions in binary form must reproduce the above copyright
1364
+ notice, this list of conditions and the following disclaimer in the
1365
+ documentation and/or other materials provided with the distribution.
1366
+ * Neither the name of this software nor the names of its contributors may be
1367
+ used to endorse or promote products derived from this software without
1368
+ specific prior written permission.
1369
+
1370
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1371
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1372
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1373
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
1374
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1375
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1376
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
1377
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1378
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1379
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1380
+ =========================================
1381
+ END OF sprintf-js@1.1.3 AND INFORMATION
1382
+
1383
+ %% wrappy@1.0.2 NOTICES AND INFORMATION BEGIN HERE
1384
+ =========================================
1385
+ The ISC License
1386
+
1387
+ Copyright (c) Isaac Z. Schlueter and Contributors
1388
+
1389
+ Permission to use, copy, modify, and/or distribute this software for any
1390
+ purpose with or without fee is hereby granted, provided that the above
1391
+ copyright notice and this permission notice appear in all copies.
1392
+
1393
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1394
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1395
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1396
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1397
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1398
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
1399
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1400
+ =========================================
1401
+ END OF wrappy@1.0.2 AND INFORMATION
1402
+
1403
+ %% ws@8.17.1 NOTICES AND INFORMATION BEGIN HERE
1404
+ =========================================
1405
+ Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
1406
+ Copyright (c) 2013 Arnout Kazemier and contributors
1407
+ Copyright (c) 2016 Luigi Pinca and contributors
1408
+
1409
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
1410
+ this software and associated documentation files (the "Software"), to deal in
1411
+ the Software without restriction, including without limitation the rights to
1412
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
1413
+ the Software, and to permit persons to whom the Software is furnished to do so,
1414
+ subject to the following conditions:
1415
+
1416
+ The above copyright notice and this permission notice shall be included in all
1417
+ copies or substantial portions of the Software.
1418
+
1419
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1420
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1421
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1422
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1423
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1424
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1425
+ =========================================
1426
+ END OF ws@8.17.1 AND INFORMATION
1427
+
1428
+ %% yaml@2.6.0 NOTICES AND INFORMATION BEGIN HERE
1429
+ =========================================
1430
+ Copyright Eemeli Aro <eemeli@gmail.com>
1431
+
1432
+ Permission to use, copy, modify, and/or distribute this software for any purpose
1433
+ with or without fee is hereby granted, provided that the above copyright notice
1434
+ and this permission notice appear in all copies.
1435
+
1436
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1437
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
1438
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1439
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
1440
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1441
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
1442
+ THIS SOFTWARE.
1443
+ =========================================
1444
+ END OF yaml@2.6.0 AND INFORMATION
1445
+
1446
+ %% yauzl@3.2.0 NOTICES AND INFORMATION BEGIN HERE
1447
+ =========================================
1448
+ The MIT License (MIT)
1449
+
1450
+ Copyright (c) 2014 Josh Wolfe
1451
+
1452
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1453
+ of this software and associated documentation files (the "Software"), to deal
1454
+ in the Software without restriction, including without limitation the rights
1455
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1456
+ copies of the Software, and to permit persons to whom the Software is
1457
+ furnished to do so, subject to the following conditions:
1458
+
1459
+ The above copyright notice and this permission notice shall be included in all
1460
+ copies or substantial portions of the Software.
1461
+
1462
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1463
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1464
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1465
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1466
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1467
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1468
+ SOFTWARE.
1469
+ =========================================
1470
+ END OF yauzl@3.2.0 AND INFORMATION
1471
+
1472
+ %% yazl@2.5.1 NOTICES AND INFORMATION BEGIN HERE
1473
+ =========================================
1474
+ The MIT License (MIT)
1475
+
1476
+ Copyright (c) 2014 Josh Wolfe
1477
+
1478
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1479
+ of this software and associated documentation files (the "Software"), to deal
1480
+ in the Software without restriction, including without limitation the rights
1481
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1482
+ copies of the Software, and to permit persons to whom the Software is
1483
+ furnished to do so, subject to the following conditions:
1484
+
1485
+ The above copyright notice and this permission notice shall be included in all
1486
+ copies or substantial portions of the Software.
1487
+
1488
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1489
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1490
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1491
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1492
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1493
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1494
+ SOFTWARE.
1495
+ =========================================
1496
+ END OF yazl@2.5.1 AND INFORMATION
1497
+
1498
+ SUMMARY BEGIN HERE
1499
+ =========================================
1500
+ Total Packages: 44
1501
+ =========================================
1502
+ END OF SUMMARY