@checkly/playwright-core 1.41.2-beta.0

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