@supernovaio/cli 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/dist/commands/publish-documentation.js +25 -3
  2. package/dist/utils/figma-tokens-data-loader.js +51 -49
  3. package/node_modules/@supernova-studio/pulsar-core/build/main/pulsar-core.js +2 -2
  4. package/node_modules/@supernova-studio/pulsar-core/package.json +8 -26
  5. package/node_modules/@supernova-studio/pulsar-language/build/main/language/src/extensions/dsm/DSMBridge.d.ts +4 -0
  6. package/node_modules/@supernova-studio/pulsar-language/build/main/pulsar-language.js +1 -1
  7. package/node_modules/@supernova-studio/pulsar-language/package.json +7 -22
  8. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDocumentation.d.ts +4 -4
  9. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKDataCore.d.ts +2 -2
  10. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/exports.d.ts +1 -0
  11. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPageBlock.d.ts +11 -4
  12. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAssetGroup.d.ts +25 -0
  13. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuideline.d.ts +11 -0
  14. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuidelineProps.d.ts +17 -0
  15. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuidelines.d.ts +8 -0
  16. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockImage.d.ts +2 -0
  17. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockSwatch.d.ts +9 -0
  18. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageBlockType.d.ts +3 -0
  19. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +6 -0
  20. package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/tsconfig.tsbuildinfo +6395 -0
  21. package/node_modules/@supernovaio/supernova-sdk/build/supernova-sdk-typescript.js +1 -1
  22. package/node_modules/@supernovaio/supernova-sdk/build/supernova-sdk-typescript.js.map +1 -1
  23. package/node_modules/@supernovaio/supernova-sdk/package.json +7 -8
  24. package/node_modules/axios/CHANGELOG.md +895 -746
  25. package/node_modules/axios/README.md +37 -42
  26. package/node_modules/axios/dist/axios.js +1168 -299
  27. package/node_modules/axios/dist/axios.js.map +1 -1
  28. package/node_modules/axios/dist/axios.min.js +1 -1
  29. package/node_modules/axios/dist/axios.min.js.map +1 -1
  30. package/node_modules/axios/dist/browser/axios.cjs +810 -315
  31. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  32. package/node_modules/axios/dist/esm/axios.js +810 -315
  33. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  34. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  35. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  36. package/node_modules/axios/dist/node/axios.cjs +824 -396
  37. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  38. package/node_modules/axios/index.d.cts +5 -2
  39. package/node_modules/axios/index.d.ts +5 -2
  40. package/node_modules/axios/lib/adapters/adapters.js +3 -1
  41. package/node_modules/axios/lib/adapters/fetch.js +229 -0
  42. package/node_modules/axios/lib/adapters/http.js +27 -17
  43. package/node_modules/axios/lib/adapters/xhr.js +36 -99
  44. package/node_modules/axios/lib/cancel/CancelToken.js +14 -0
  45. package/node_modules/axios/lib/core/Axios.js +9 -6
  46. package/node_modules/axios/lib/core/AxiosError.js +5 -2
  47. package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
  48. package/node_modules/axios/lib/defaults/index.js +7 -2
  49. package/node_modules/axios/lib/env/data.js +1 -1
  50. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +3 -51
  51. package/node_modules/axios/lib/helpers/composeSignals.js +48 -0
  52. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  53. package/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
  54. package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
  55. package/node_modules/axios/lib/helpers/throttle.js +30 -19
  56. package/node_modules/axios/lib/helpers/trackStream.js +87 -0
  57. package/node_modules/axios/lib/platform/common/utils.js +9 -5
  58. package/node_modules/axios/lib/utils.js +40 -3
  59. package/node_modules/axios/package.json +4 -3
  60. package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts.map +1 -1
  61. package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.js +2 -2
  62. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  63. package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/package.json +2 -2
  64. package/oclif.manifest.json +1 -1
  65. package/package.json +108 -108
  66. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/README.md +0 -95
  67. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.d.ts +0 -38
  68. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.d.ts.map +0 -1
  69. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.js +0 -112
  70. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.js.map +0 -1
  71. package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/package.json +0 -49
  72. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/README.md +0 -97
  73. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.d.ts +0 -46
  74. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
  75. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.js +0 -174
  76. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  77. package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/package.json +0 -50
  78. package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.d.ts +0 -15
  79. package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
  80. package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.js +0 -66
  81. package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.js.map +0 -1
  82. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
  83. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.js +0 -175
  84. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  85. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
  86. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
  87. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  88. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  89. package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/package.json +0 -50
  90. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/LICENSE +0 -22
  91. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/README.md +0 -69
  92. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.d.ts +0 -15
  93. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
  94. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.js +0 -66
  95. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.js.map +0 -1
  96. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.d.ts +0 -41
  97. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.d.ts.map +0 -1
  98. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.js +0 -175
  99. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.js.map +0 -1
  100. package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/package.json +0 -49
  101. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/LICENSE +0 -22
  102. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/README.md +0 -70
  103. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/index.d.ts +0 -47
  104. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  105. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
  106. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
  107. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  108. package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  109. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/browser-bundle.d.ts +0 -0
  110. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKBrand.d.ts +0 -0
  111. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKBrandWriter.d.ts +0 -0
  112. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystem.d.ts +0 -0
  113. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystemVersion.d.ts +0 -0
  114. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystemVersionWriter.d.ts +0 -0
  115. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKSupernova.d.ts +0 -0
  116. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKWorkspace.d.ts +0 -0
  117. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKConfiguration.d.ts +0 -0
  118. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKDataBridge.d.ts +0 -0
  119. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/errors/SDKSupernovaError.d.ts +0 -0
  120. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKAssetGroupResolver.d.ts +0 -0
  121. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKComponentResolver.d.ts +0 -0
  122. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +0 -0
  123. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKDocumentationItemResolver.d.ts +0 -0
  124. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKTokenGroupResolver.d.ts +0 -0
  125. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKTokenResolver.d.ts +0 -0
  126. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/index.d.ts +0 -0
  127. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/assets/SDKAsset.d.ts +0 -0
  128. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/assets/SDKRenderedAsset.d.ts +0 -0
  129. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/components/SDKComponent.d.ts +0 -0
  130. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/components/SDKDesignComponent.d.ts +0 -0
  131. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationConfiguration.d.ts +0 -0
  132. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationGroup.d.ts +0 -0
  133. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationItem.d.ts +0 -0
  134. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPage.d.ts +0 -0
  135. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPageAsset.d.ts +0 -0
  136. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichText.d.ts +0 -0
  137. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichTextSpan.d.ts +0 -0
  138. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichTextSpanAttribute.d.ts +0 -0
  139. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockAsset.d.ts +0 -0
  140. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockAssets.d.ts +0 -0
  141. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCallout.d.ts +0 -0
  142. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCode.d.ts +0 -0
  143. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockColumn.d.ts +0 -0
  144. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockColumnItem.d.ts +0 -0
  145. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCustom.d.ts +0 -0
  146. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockDivider.d.ts +0 -0
  147. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedFigma.d.ts +0 -0
  148. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedGeneric.d.ts +0 -0
  149. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedLink.d.ts +0 -0
  150. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedStorybook.d.ts +0 -0
  151. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedYoutube.d.ts +0 -0
  152. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockFrame.d.ts +0 -0
  153. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockFrames.d.ts +0 -0
  154. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockHeading.d.ts +0 -0
  155. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockOrderedList.d.ts +0 -0
  156. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockQuote.d.ts +0 -0
  157. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockRenderCode.d.ts +0 -0
  158. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockShortcut.d.ts +0 -0
  159. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockShortcuts.d.ts +0 -0
  160. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTab.d.ts +0 -0
  161. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTabItem.d.ts +0 -0
  162. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTable.d.ts +0 -0
  163. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableCell.d.ts +0 -0
  164. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableColumn.d.ts +0 -0
  165. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableRow.d.ts +0 -0
  166. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockText.d.ts +0 -0
  167. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockToken.d.ts +0 -0
  168. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTokenGroup.d.ts +0 -0
  169. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTokenList.d.ts +0 -0
  170. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockUnorderedList.d.ts +0 -0
  171. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/builder/SDKDocumentationBlockBuilder.d.ts +0 -0
  172. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/configuration/SDKDocumentationItemConfiguration.d.ts +0 -0
  173. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/configuration/SDKDocumentationItemHeader.d.ts +0 -0
  174. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementDataView.d.ts +0 -0
  175. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementDataViewColumn.d.ts +0 -0
  176. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementProperty.d.ts +0 -0
  177. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementPropertyOption.d.ts +0 -0
  178. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/values/SDKElementPropertyValue.d.ts +0 -0
  179. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAlignment.d.ts +0 -0
  180. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetFormat.d.ts +0 -0
  181. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetScale.d.ts +0 -0
  182. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetScaleType.d.ts +0 -0
  183. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKBlurType.d.ts +0 -0
  184. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKBorderPosition.d.ts +0 -0
  185. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationCalloutType.d.ts +0 -0
  186. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationEnvironment.d.ts +0 -0
  187. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationGroupBehavior.d.ts +0 -0
  188. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationHeadingType.d.ts +0 -0
  189. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationItemType.d.ts +0 -0
  190. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageAssetType.d.ts +0 -0
  191. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageBlockThemeType.d.ts +0 -0
  192. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKFrameAlignment.d.ts +0 -0
  193. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKFrameLayout.d.ts +0 -0
  194. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKGradientType.d.ts +0 -0
  195. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKRichTextSpanAttributeType.d.ts +0 -0
  196. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKShadowType.d.ts +0 -0
  197. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKSourceType.d.ts +0 -0
  198. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTextCase.d.ts +0 -0
  199. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTextDecoration.d.ts +0 -0
  200. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTokenType.d.ts +0 -0
  201. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKUnit.d.ts +0 -0
  202. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/SDKExporter.d.ts +0 -0
  203. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +0 -0
  204. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +0 -0
  205. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +0 -0
  206. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +0 -0
  207. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKAssetGroup.d.ts +0 -0
  208. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKDesignComponentGroup.d.ts +0 -0
  209. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKTokenGroup.d.ts +0 -0
  210. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKDesignComponentOrigin.d.ts +0 -0
  211. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKFrameOrigin.d.ts +0 -0
  212. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKSize.d.ts +0 -0
  213. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKSource.d.ts +0 -0
  214. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKTokenOrigin.d.ts +0 -0
  215. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKWorkspaceNPMRegistry.d.ts +0 -0
  216. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKThemeUtilities.d.ts +0 -0
  217. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKTokenTheme.d.ts +5 -5
  218. package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKTokenThemeOverride.d.ts +5 -5
  219. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKBlurToken.d.ts +0 -0
  220. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKBorderToken.d.ts +0 -0
  221. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKColorToken.d.ts +0 -0
  222. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKFontToken.d.ts +0 -0
  223. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKGenericToken.d.ts +0 -0
  224. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKGradientToken.d.ts +0 -0
  225. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKMeasureToken.d.ts +0 -0
  226. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKRadiusToken.d.ts +0 -0
  227. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKShadowToken.d.ts +0 -0
  228. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTextToken.d.ts +0 -0
  229. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKToken.d.ts +0 -0
  230. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTokenCompator.d.ts +0 -0
  231. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTokenValue.d.ts +0 -0
  232. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTypographyToken.d.ts +0 -0
  233. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenData.d.ts +0 -0
  234. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +0 -0
  235. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +0 -0
  236. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/users/SDKUser.d.ts +0 -0
  237. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Brand.spec.d.ts +0 -0
  238. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Components.spec.d.ts +0 -0
  239. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/DesignSystem.spec.d.ts +0 -0
  240. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/DesignSystemVersion.spec.d.ts +0 -0
  241. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Documentation.spec.d.ts +0 -0
  242. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Supernova.spec.d.ts +0 -0
  243. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Theme.spec.d.ts +0 -0
  244. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Workspace.spec.d.ts +0 -0
  245. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/PluginFigmaTokens.spec.d.ts +0 -0
  246. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/PluginJSONBuilder.spec.d.ts +0 -0
  247. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/ToolDocSearch.spec.d.ts +0 -0
  248. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/ToolMarkdownTransform.spec.d.ts +0 -0
  249. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/helpers.d.ts +0 -0
  250. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +0 -0
  251. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +0 -0
  252. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +0 -0
  253. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +0 -0
  254. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +0 -0
  255. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +0 -0
  256. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +0 -0
  257. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +0 -0
  258. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +0 -0
  259. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +0 -0
  260. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +0 -0
  261. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +0 -0
  262. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/collection/SDKDTTokenCollection.d.ts +0 -0
  263. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/expression/SDKDTExpressionParser.d.ts +0 -0
  264. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +0 -0
  265. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +0 -0
  266. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +0 -0
  267. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +0 -0
  268. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +0 -0
  269. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +0 -0
  270. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +0 -0
  271. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +0 -0
  272. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformCustomBlock.d.ts +0 -0
  273. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +0 -0
  274. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/search-index/SDKToolsDocSearch.d.ts +0 -0
  275. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/token-transform/SDKToolsTokenTransform.d.ts +0 -0
  276. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/utils/FlowUtils.d.ts +0 -0
  277. /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/utils/StringUtils.d.ts +0 -0
  278. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/LICENSE +0 -0
  279. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/README.md +0 -0
  280. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.d.ts +0 -0
  281. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.d.ts.map +0 -0
  282. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.js +0 -0
  283. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.js.map +0 -0
  284. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.d.ts +0 -0
  285. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.d.ts.map +0 -0
  286. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.js +0 -0
  287. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.js.map +0 -0
  288. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/package.json +0 -0
  289. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/LICENSE +0 -0
  290. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/README.md +0 -0
  291. /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts +0 -0
  292. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
  293. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
  294. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js +0 -0
  295. /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
@@ -1,50 +0,0 @@
1
- {
2
- "name": "https-proxy-agent",
3
- "version": "7.0.4",
4
- "description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "files": [
8
- "dist"
9
- ],
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/TooTallNate/proxy-agents.git",
13
- "directory": "packages/https-proxy-agent"
14
- },
15
- "keywords": [
16
- "https",
17
- "proxy",
18
- "endpoint",
19
- "agent"
20
- ],
21
- "author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
22
- "license": "MIT",
23
- "dependencies": {
24
- "agent-base": "^7.0.2",
25
- "debug": "4"
26
- },
27
- "devDependencies": {
28
- "@types/async-retry": "^1.4.5",
29
- "@types/debug": "4",
30
- "@types/jest": "^29.5.1",
31
- "@types/node": "^14.18.45",
32
- "async-listen": "^3.0.0",
33
- "async-retry": "^1.3.3",
34
- "jest": "^29.5.0",
35
- "ts-jest": "^29.1.0",
36
- "typescript": "^5.0.4",
37
- "proxy": "2.1.1",
38
- "tsconfig": "0.0.0"
39
- },
40
- "engines": {
41
- "node": ">= 14"
42
- },
43
- "scripts": {
44
- "build": "tsc",
45
- "test": "jest --env node --verbose --bail test/test.ts",
46
- "test-e2e": "jest --env node --verbose --bail test/e2e.test.ts",
47
- "lint": "eslint --ext .ts",
48
- "pack": "node ../../scripts/pack.mjs"
49
- }
50
- }
@@ -1,22 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,69 +0,0 @@
1
- agent-base
2
- ==========
3
- ### Turn a function into an [`http.Agent`][http.Agent] instance
4
-
5
- This module is a thin wrapper around the base `http.Agent` class.
6
-
7
- It provides an abstract class that must define a `connect()` function,
8
- which is responsible for creating the underlying socket that the HTTP
9
- client requests will use.
10
-
11
- The `connect()` function may return an arbitrary `Duplex` stream, or
12
- another `http.Agent` instance to delegate the request to, and may be
13
- asynchronous (by defining an `async` function).
14
-
15
- Instances of this agent can be used with the `http` and `https`
16
- modules. To differentiate, the options parameter in the `connect()`
17
- function includes a `secureEndpoint` property, which can be checked
18
- to determine what type of socket should be returned.
19
-
20
- #### Some subclasses:
21
-
22
- Here are some more interesting uses of `agent-base`.
23
- Send a pull request to list yours!
24
-
25
- * [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP endpoints
26
- * [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS endpoints
27
- * [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS
28
- * [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
29
-
30
- Example
31
- -------
32
-
33
- Here's a minimal example that creates a new `net.Socket` or `tls.Socket`
34
- based on the `secureEndpoint` property. This agent can be used with both
35
- the `http` and `https` modules.
36
-
37
- ```ts
38
- import * as net from 'net';
39
- import * as tls from 'tls';
40
- import * as http from 'http';
41
- import { Agent } from 'agent-base';
42
-
43
- class MyAgent extends Agent {
44
- connect(req, opts) {
45
- // `secureEndpoint` is true when using the "https" module
46
- if (opts.secureEndpoint) {
47
- return tls.connect(opts);
48
- } else {
49
- return net.connect(opts);
50
- }
51
- }
52
- });
53
-
54
- // Keep alive enabled means that `connect()` will only be
55
- // invoked when a new connection needs to be created
56
- const agent = new MyAgent({ keepAlive: true });
57
-
58
- // Pass the `agent` option when creating the HTTP request
59
- http.get('http://nodejs.org/api/', { agent }, (res) => {
60
- console.log('"response" event!', res.headers);
61
- res.pipe(process.stdout);
62
- });
63
- ```
64
-
65
- [http-proxy-agent]: ../http-proxy-agent
66
- [https-proxy-agent]: ../https-proxy-agent
67
- [pac-proxy-agent]: ../pac-proxy-agent
68
- [socks-proxy-agent]: ../socks-proxy-agent
69
- [http.Agent]: https://nodejs.org/api/http.html#http_class_http_agent
@@ -1,15 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- /// <reference types="node" />
5
- /// <reference types="node" />
6
- import * as http from 'http';
7
- import * as https from 'https';
8
- import type { Readable } from 'stream';
9
- export type ThenableRequest = http.ClientRequest & {
10
- then: Promise<http.IncomingMessage>['then'];
11
- };
12
- export declare function toBuffer(stream: Readable): Promise<Buffer>;
13
- export declare function json(stream: Readable): Promise<any>;
14
- export declare function req(url: string | URL, opts?: https.RequestOptions): ThenableRequest;
15
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,GAAG;IAClD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;CAC5C,CAAC;AAEF,wBAAsB,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAQhE;AAGD,wBAAsB,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAUzD;AAED,wBAAgB,GAAG,CAClB,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,IAAI,GAAE,KAAK,CAAC,cAAmB,GAC7B,eAAe,CAcjB"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.req = exports.json = exports.toBuffer = void 0;
27
- const http = __importStar(require("http"));
28
- const https = __importStar(require("https"));
29
- async function toBuffer(stream) {
30
- let length = 0;
31
- const chunks = [];
32
- for await (const chunk of stream) {
33
- length += chunk.length;
34
- chunks.push(chunk);
35
- }
36
- return Buffer.concat(chunks, length);
37
- }
38
- exports.toBuffer = toBuffer;
39
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
- async function json(stream) {
41
- const buf = await toBuffer(stream);
42
- const str = buf.toString('utf8');
43
- try {
44
- return JSON.parse(str);
45
- }
46
- catch (_err) {
47
- const err = _err;
48
- err.message += ` (input: ${str})`;
49
- throw err;
50
- }
51
- }
52
- exports.json = json;
53
- function req(url, opts = {}) {
54
- const href = typeof url === 'string' ? url : url.href;
55
- const req = (href.startsWith('https:') ? https : http).request(url, opts);
56
- const promise = new Promise((resolve, reject) => {
57
- req
58
- .once('response', resolve)
59
- .once('error', reject)
60
- .end();
61
- });
62
- req.then = promise.then.bind(promise);
63
- return req;
64
- }
65
- exports.req = req;
66
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,6CAA+B;AAOxB,KAAK,UAAU,QAAQ,CAAC,MAAgB;IAC9C,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,EAAE;QACjC,MAAM,IA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C;IACtC,OAAO,GAAG,CAAC;AACZ,CAAC;AAjBD,kBAiBC"}
@@ -1,41 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- /// <reference types="node" />
5
- import * as net from 'net';
6
- import * as tls from 'tls';
7
- import * as http from 'http';
8
- import type { Duplex } from 'stream';
9
- export * from './helpers';
10
- interface HttpConnectOpts extends net.TcpNetConnectOpts {
11
- secureEndpoint: false;
12
- protocol?: string;
13
- }
14
- interface HttpsConnectOpts extends tls.ConnectionOptions {
15
- secureEndpoint: true;
16
- protocol?: string;
17
- port: number;
18
- }
19
- export type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;
20
- declare const INTERNAL: unique symbol;
21
- export declare abstract class Agent extends http.Agent {
22
- private [INTERNAL];
23
- options: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;
24
- keepAlive: boolean;
25
- constructor(opts?: http.AgentOptions);
26
- abstract connect(req: http.ClientRequest, options: AgentConnectOpts): Promise<Duplex | http.Agent> | Duplex | http.Agent;
27
- /**
28
- * Determine whether this is an `http` or `https` request.
29
- */
30
- isSecureEndpoint(options?: AgentConnectOpts): boolean;
31
- private incrementSockets;
32
- private decrementSockets;
33
- getName(options: AgentConnectOpts): string;
34
- createSocket(req: http.ClientRequest, options: AgentConnectOpts, cb: (err: Error | null, s?: Duplex) => void): void;
35
- createConnection(): Duplex;
36
- get defaultPort(): number;
37
- set defaultPort(v: number);
38
- get protocol(): string;
39
- set protocol(v: string);
40
- }
41
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,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AAI,MAAM,CAKxB;IAED,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,EAIxB;IAED,IAAI,QAAQ,IAAI,MAAM,CAKrB;IAED,IAAI,QAAQ,CAAC,CAAC,EAAE,MAAM,EAIrB;CACD"}
@@ -1,175 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Agent = void 0;
30
- const net = __importStar(require("net"));
31
- const http = __importStar(require("http"));
32
- const https_1 = require("https");
33
- __exportStar(require("./helpers"), exports);
34
- const INTERNAL = Symbol('AgentBaseInternalState');
35
- class Agent extends http.Agent {
36
- constructor(opts) {
37
- super(opts);
38
- this[INTERNAL] = {};
39
- }
40
- /**
41
- * Determine whether this is an `http` or `https` request.
42
- */
43
- isSecureEndpoint(options) {
44
- if (options) {
45
- // First check the `secureEndpoint` property explicitly, since this
46
- // means that a parent `Agent` is "passing through" to this instance.
47
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
- if (typeof options.secureEndpoint === 'boolean') {
49
- return options.secureEndpoint;
50
- }
51
- // If no explicit `secure` endpoint, check if `protocol` property is
52
- // set. This will usually be the case since using a full string URL
53
- // or `URL` instance should be the most common usage.
54
- if (typeof options.protocol === 'string') {
55
- return options.protocol === 'https:';
56
- }
57
- }
58
- // Finally, if no `protocol` property was set, then fall back to
59
- // checking the stack trace of the current call stack, and try to
60
- // detect the "https" module.
61
- const { stack } = new Error();
62
- if (typeof stack !== 'string')
63
- return false;
64
- return stack
65
- .split('\n')
66
- .some((l) => l.indexOf('(https.js:') !== -1 ||
67
- l.indexOf('node:https:') !== -1);
68
- }
69
- // In order to support async signatures in `connect()` and Node's native
70
- // connection pooling in `http.Agent`, the array of sockets for each origin
71
- // has to be updated synchronously. This is so the length of the array is
72
- // accurate when `addRequest()` is next called. We achieve this by creating a
73
- // fake socket and adding it to `sockets[origin]` and incrementing
74
- // `totalSocketCount`.
75
- incrementSockets(name) {
76
- // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no
77
- // need to create a fake socket because Node.js native connection pooling
78
- // will never be invoked.
79
- if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
80
- return null;
81
- }
82
- // All instances of `sockets` are expected TypeScript errors. The
83
- // alternative is to add it as a private property of this class but that
84
- // will break TypeScript subclassing.
85
- if (!this.sockets[name]) {
86
- // @ts-expect-error `sockets` is readonly in `@types/node`
87
- this.sockets[name] = [];
88
- }
89
- const fakeSocket = new net.Socket({ writable: false });
90
- this.sockets[name].push(fakeSocket);
91
- // @ts-expect-error `totalSocketCount` isn't defined in `@types/node`
92
- this.totalSocketCount++;
93
- return fakeSocket;
94
- }
95
- decrementSockets(name, socket) {
96
- if (!this.sockets[name] || socket === null) {
97
- return;
98
- }
99
- const sockets = this.sockets[name];
100
- const index = sockets.indexOf(socket);
101
- if (index !== -1) {
102
- sockets.splice(index, 1);
103
- // @ts-expect-error `totalSocketCount` isn't defined in `@types/node`
104
- this.totalSocketCount--;
105
- if (sockets.length === 0) {
106
- // @ts-expect-error `sockets` is readonly in `@types/node`
107
- delete this.sockets[name];
108
- }
109
- }
110
- }
111
- // In order to properly update the socket pool, we need to call `getName()` on
112
- // the core `https.Agent` if it is a secureEndpoint.
113
- getName(options) {
114
- const secureEndpoint = typeof options.secureEndpoint === 'boolean'
115
- ? options.secureEndpoint
116
- : this.isSecureEndpoint(options);
117
- if (secureEndpoint) {
118
- // @ts-expect-error `getName()` isn't defined in `@types/node`
119
- return https_1.Agent.prototype.getName.call(this, options);
120
- }
121
- // @ts-expect-error `getName()` isn't defined in `@types/node`
122
- return super.getName(options);
123
- }
124
- createSocket(req, options, cb) {
125
- const connectOpts = {
126
- ...options,
127
- secureEndpoint: this.isSecureEndpoint(options),
128
- };
129
- const name = this.getName(connectOpts);
130
- const fakeSocket = this.incrementSockets(name);
131
- Promise.resolve()
132
- .then(() => this.connect(req, connectOpts))
133
- .then((socket) => {
134
- this.decrementSockets(name, fakeSocket);
135
- if (socket instanceof http.Agent) {
136
- // @ts-expect-error `addRequest()` isn't defined in `@types/node`
137
- return socket.addRequest(req, connectOpts);
138
- }
139
- this[INTERNAL].currentSocket = socket;
140
- // @ts-expect-error `createSocket()` isn't defined in `@types/node`
141
- super.createSocket(req, options, cb);
142
- }, (err) => {
143
- this.decrementSockets(name, fakeSocket);
144
- cb(err);
145
- });
146
- }
147
- createConnection() {
148
- const socket = this[INTERNAL].currentSocket;
149
- this[INTERNAL].currentSocket = undefined;
150
- if (!socket) {
151
- throw new Error('No socket was returned in the `connect()` function');
152
- }
153
- return socket;
154
- }
155
- get defaultPort() {
156
- return (this[INTERNAL].defaultPort ??
157
- (this.protocol === 'https:' ? 443 : 80));
158
- }
159
- set defaultPort(v) {
160
- if (this[INTERNAL]) {
161
- this[INTERNAL].defaultPort = v;
162
- }
163
- }
164
- get protocol() {
165
- return (this[INTERNAL].protocol ??
166
- (this.isSecureEndpoint() ? 'https:' : 'http:'));
167
- }
168
- set protocol(v) {
169
- if (this[INTERNAL]) {
170
- this[INTERNAL].protocol = v;
171
- }
172
- }
173
- }
174
- exports.Agent = Agent;
175
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,2CAA6B;AAC7B,iCAA4C;AAG5C,4CAA0B;AAe1B,MAAM,QAAQ,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAQlD,MAAsB,KAAM,SAAQ,IAAI,CAAC,KAAK;IAO7C,YAAY,IAAwB;QACnC,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;IACrB,CAAC;IAOD;;OAEG;IACH,gBAAgB,CAAC,OAA0B;QAC1C,IAAI,OAAO,EAAE;YACZ,mEAAmE;YACnE,qEAAqE;YACrE,8DAA8D;YAC9D,IAAI,OAAQ,OAAe,CAAC,cAAc,KAAK,SAAS,EAAE;gBACzD,OAAO,OAAO,CAAC,cAAc,CAAC;aAC9B;YAED,oEAAoE;YACpE,mEAAmE;YACnE,qDAAqD;YACrD,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;gBACzC,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC;aACrC;SACD;QAED,gEAAgE;QAChE,iEAAiE;QACjE,6BAA6B;QAC7B,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,KAAK,EAAE,CAAC;QAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QAC5C,OAAO,KAAK;aACV,KAAK,CAAC,IAAI,CAAC;aACX,IAAI,CACJ,CAAC,CAAC,EAAE,EAAE,CACL,CAAC,CAAC,OAAO,CAAC,YAAY,C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AC,QAAQ,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC;SAC5B;IACF,CAAC;CACD;AAjLD,sBAiLC"}
@@ -1,49 +0,0 @@
1
- {
2
- "name": "agent-base",
3
- "version": "7.1.1",
4
- "description": "Turn a function into an `http.Agent` instance",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "files": [
8
- "dist"
9
- ],
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/TooTallNate/proxy-agents.git",
13
- "directory": "packages/agent-base"
14
- },
15
- "keywords": [
16
- "http",
17
- "agent",
18
- "base",
19
- "barebones",
20
- "https"
21
- ],
22
- "author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
23
- "license": "MIT",
24
- "dependencies": {
25
- "debug": "^4.3.4"
26
- },
27
- "devDependencies": {
28
- "@types/debug": "^4.1.7",
29
- "@types/jest": "^29.5.1",
30
- "@types/node": "^14.18.45",
31
- "@types/semver": "^7.3.13",
32
- "@types/ws": "^6.0.4",
33
- "async-listen": "^3.0.0",
34
- "jest": "^29.5.0",
35
- "ts-jest": "^29.1.0",
36
- "typescript": "^5.0.4",
37
- "ws": "^3.3.3",
38
- "tsconfig": "0.0.0"
39
- },
40
- "engines": {
41
- "node": ">= 14"
42
- },
43
- "scripts": {
44
- "build": "tsc",
45
- "test": "jest --env node --verbose --bail",
46
- "lint": "eslint . --ext .ts",
47
- "pack": "node ../../scripts/pack.mjs"
48
- }
49
- }
@@ -1,22 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,70 +0,0 @@
1
- https-proxy-agent
2
- ================
3
- ### An HTTP(s) proxy `http.Agent` implementation for HTTPS
4
-
5
- This module provides an `http.Agent` implementation that connects to a specified
6
- HTTP or HTTPS proxy server, and can be used with the built-in `https` module.
7
-
8
- Specifically, this `Agent` implementation connects to an intermediary "proxy"
9
- server and issues the [CONNECT HTTP method][CONNECT], which tells the proxy to
10
- open a direct TCP connection to the destination server.
11
-
12
- Since this agent implements the CONNECT HTTP method, it also works with other
13
- protocols that use this method when connecting over proxies (i.e. WebSockets).
14
- See the "Examples" section below for more.
15
-
16
- Examples
17
- --------
18
-
19
- #### `https` module example
20
-
21
- ```ts
22
- import * as https from 'https';
23
- import { HttpsProxyAgent } from 'https-proxy-agent';
24
-
25
- const agent = new HttpsProxyAgent('http://168.63.76.32:3128');
26
-
27
- https.get('https://example.com', { agent }, (res) => {
28
- console.log('"response" event!', res.headers);
29
- res.pipe(process.stdout);
30
- });
31
- ```
32
-
33
- #### `ws` WebSocket connection example
34
-
35
- ```ts
36
- import WebSocket from 'ws';
37
- import { HttpsProxyAgent } from 'https-proxy-agent';
38
-
39
- const agent = new HttpsProxyAgent('http://168.63.76.32:3128');
40
- const socket = new WebSocket('ws://echo.websocket.org', { agent });
41
-
42
- socket.on('open', function () {
43
- console.log('"open" event!');
44
- socket.send('hello world');
45
- });
46
-
47
- socket.on('message', function (data, flags) {
48
- console.log('"message" event! %j %j', data, flags);
49
- socket.close();
50
- });
51
- ```
52
-
53
- API
54
- ---
55
-
56
- ### new HttpsProxyAgent(proxy: string | URL, options?: HttpsProxyAgentOptions)
57
-
58
- The `HttpsProxyAgent` class implements an `http.Agent` subclass that connects
59
- to the specified "HTTP(s) proxy server" in order to proxy HTTPS and/or WebSocket
60
- requests. This is achieved by using the [HTTP `CONNECT` method][CONNECT].
61
-
62
- The `proxy` argument is the URL for the proxy server.
63
-
64
- The `options` argument accepts the usual `http.Agent` constructor options, and
65
- some additional properties:
66
-
67
- * `headers` - Object containing additional headers to send to the proxy server
68
- in the `CONNECT` request.
69
-
70
- [CONNECT]: http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling
@@ -1,47 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- /// <reference types="node" />
5
- import * as net from 'net';
6
- import * as tls from 'tls';
7
- import * as http from 'http';
8
- import { Agent, AgentConnectOpts } from 'agent-base';
9
- import { URL } from 'url';
10
- import type { OutgoingHttpHeaders } from 'http';
11
- type Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;
12
- type ConnectOptsMap = {
13
- http: Omit<net.TcpNetConnectOpts, 'host' | 'port'>;
14
- https: Omit<tls.ConnectionOptions, 'host' | 'port'>;
15
- };
16
- type ConnectOpts<T> = {
17
- [P in keyof ConnectOptsMap]: Protocol<T> extends P ? ConnectOptsMap[P] : never;
18
- }[keyof ConnectOptsMap];
19
- export type HttpsProxyAgentOptions<T> = ConnectOpts<T> & http.AgentOptions & {
20
- headers?: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
21
- };
22
- /**
23
- * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
24
- * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
25
- *
26
- * Outgoing HTTP requests are first tunneled through the proxy server using the
27
- * `CONNECT` HTTP request method to establish a connection to the proxy server,
28
- * and then the proxy server connects to the destination target and issues the
29
- * HTTP request from the proxy server.
30
- *
31
- * `https:` requests have their socket connection upgraded to TLS once
32
- * the connection to the proxy server has been established.
33
- */
34
- export declare class HttpsProxyAgent<Uri extends string> extends Agent {
35
- static protocols: readonly ["http", "https"];
36
- readonly proxy: URL;
37
- proxyHeaders: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
38
- connectOpts: net.TcpNetConnectOpts & tls.ConnectionOptions;
39
- constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions<Uri>);
40
- /**
41
- * Called when the node-core HTTP client library is creating a
42
- * new HTTP request.
43
- */
44
- connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<net.Socket>;
45
- }
46
- export {};
47
- //# sourceMappingURL=index.d.ts.map