@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,4 +1,4 @@
1
- // Axios v1.6.8 Copyright (c) 2024 Matt Zabriskie and contributors
1
+ // Axios v1.7.7 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  function bind(fn, thisArg) {
3
3
  return function wrap() {
4
4
  return fn.apply(thisArg, arguments);
@@ -212,6 +212,8 @@ const isFormData = (thing) => {
212
212
  */
213
213
  const isURLSearchParams = kindOfTest('URLSearchParams');
214
214
 
215
+ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
216
+
215
217
  /**
216
218
  * Trim excess whitespace off the beginning and end of a string
217
219
  *
@@ -600,8 +602,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
600
602
  const noop = () => {};
601
603
 
602
604
  const toFiniteNumber = (value, defaultValue) => {
603
- value = +value;
604
- return Number.isFinite(value) ? value : defaultValue;
605
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
605
606
  };
606
607
 
607
608
  const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
@@ -671,6 +672,36 @@ const isAsyncFn = kindOfTest('AsyncFunction');
671
672
  const isThenable = (thing) =>
672
673
  thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
673
674
 
675
+ // original code
676
+ // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
677
+
678
+ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
679
+ if (setImmediateSupported) {
680
+ return setImmediate;
681
+ }
682
+
683
+ return postMessageSupported ? ((token, callbacks) => {
684
+ _global.addEventListener("message", ({source, data}) => {
685
+ if (source === _global && data === token) {
686
+ callbacks.length && callbacks.shift()();
687
+ }
688
+ }, false);
689
+
690
+ return (cb) => {
691
+ callbacks.push(cb);
692
+ _global.postMessage(token, "*");
693
+ }
694
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
695
+ })(
696
+ typeof setImmediate === 'function',
697
+ isFunction(_global.postMessage)
698
+ );
699
+
700
+ const asap = typeof queueMicrotask !== 'undefined' ?
701
+ queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
702
+
703
+ // *********************
704
+
674
705
  const utils$1 = {
675
706
  isArray,
676
707
  isArrayBuffer,
@@ -682,6 +713,10 @@ const utils$1 = {
682
713
  isBoolean,
683
714
  isObject,
684
715
  isPlainObject,
716
+ isReadableStream,
717
+ isRequest,
718
+ isResponse,
719
+ isHeaders,
685
720
  isUndefined,
686
721
  isDate,
687
722
  isFile,
@@ -722,7 +757,9 @@ const utils$1 = {
722
757
  isSpecCompliantForm,
723
758
  toJSONObject,
724
759
  isAsyncFn,
725
- isThenable
760
+ isThenable,
761
+ setImmediate: _setImmediate,
762
+ asap
726
763
  };
727
764
 
728
765
  /**
@@ -750,7 +787,10 @@ function AxiosError$1(message, code, config, request, response) {
750
787
  code && (this.code = code);
751
788
  config && (this.config = config);
752
789
  request && (this.request = request);
753
- response && (this.response = response);
790
+ if (response) {
791
+ this.response = response;
792
+ this.status = response.status ? response.status : null;
793
+ }
754
794
  }
755
795
 
756
796
  utils$1.inherits(AxiosError$1, Error, {
@@ -770,7 +810,7 @@ utils$1.inherits(AxiosError$1, Error, {
770
810
  // Axios
771
811
  config: utils$1.toJSONObject(this.config),
772
812
  code: this.code,
773
- status: this.response && this.response.status ? this.response.status : null
813
+ status: this.status
774
814
  };
775
815
  }
776
816
  });
@@ -1238,6 +1278,8 @@ const platform$1 = {
1238
1278
 
1239
1279
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
1240
1280
 
1281
+ const _navigator = typeof navigator === 'object' && navigator || undefined;
1282
+
1241
1283
  /**
1242
1284
  * Determine if we're running in a standard browser environment
1243
1285
  *
@@ -1255,10 +1297,8 @@ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'unde
1255
1297
  *
1256
1298
  * @returns {boolean}
1257
1299
  */
1258
- const hasStandardBrowserEnv = (
1259
- (product) => {
1260
- return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
1261
- })(typeof navigator !== 'undefined' && navigator.product);
1300
+ const hasStandardBrowserEnv = hasBrowserEnv &&
1301
+ (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
1262
1302
 
1263
1303
  /**
1264
1304
  * Determine if we're running in a standard browser webWorker environment
@@ -1278,11 +1318,15 @@ const hasStandardBrowserWebWorkerEnv = (() => {
1278
1318
  );
1279
1319
  })();
1280
1320
 
1321
+ const origin = hasBrowserEnv && window.location.href || 'http://localhost';
1322
+
1281
1323
  const utils = /*#__PURE__*/Object.freeze({
1282
1324
  __proto__: null,
1283
1325
  hasBrowserEnv: hasBrowserEnv,
1284
1326
  hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
1285
- hasStandardBrowserEnv: hasStandardBrowserEnv
1327
+ hasStandardBrowserEnv: hasStandardBrowserEnv,
1328
+ navigator: _navigator,
1329
+ origin: origin
1286
1330
  });
1287
1331
 
1288
1332
  const platform = {
@@ -1422,7 +1466,7 @@ const defaults = {
1422
1466
 
1423
1467
  transitional: transitionalDefaults,
1424
1468
 
1425
- adapter: ['xhr', 'http'],
1469
+ adapter: ['xhr', 'http', 'fetch'],
1426
1470
 
1427
1471
  transformRequest: [function transformRequest(data, headers) {
1428
1472
  const contentType = headers.getContentType() || '';
@@ -1443,7 +1487,8 @@ const defaults = {
1443
1487
  utils$1.isBuffer(data) ||
1444
1488
  utils$1.isStream(data) ||
1445
1489
  utils$1.isFile(data) ||
1446
- utils$1.isBlob(data)
1490
+ utils$1.isBlob(data) ||
1491
+ utils$1.isReadableStream(data)
1447
1492
  ) {
1448
1493
  return data;
1449
1494
  }
@@ -1486,6 +1531,10 @@ const defaults = {
1486
1531
  const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1487
1532
  const JSONRequested = this.responseType === 'json';
1488
1533
 
1534
+ if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
1535
+ return data;
1536
+ }
1537
+
1489
1538
  if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1490
1539
  const silentJSONParsing = transitional && transitional.silentJSONParsing;
1491
1540
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
@@ -1689,6 +1738,10 @@ class AxiosHeaders$1 {
1689
1738
  setHeaders(header, valueOrRewrite);
1690
1739
  } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1691
1740
  setHeaders(parseHeaders(header), valueOrRewrite);
1741
+ } else if (utils$1.isHeaders(header)) {
1742
+ for (const [key, value] of header.entries()) {
1743
+ setHeader(value, key, rewrite);
1744
+ }
1692
1745
  } else {
1693
1746
  header != null && setHeader(valueOrRewrite, header, rewrite);
1694
1747
  }
@@ -1956,96 +2009,153 @@ function settle(resolve, reject, response) {
1956
2009
  }
1957
2010
  }
1958
2011
 
1959
- const cookies = platform.hasStandardBrowserEnv ?
2012
+ function parseProtocol(url) {
2013
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2014
+ return match && match[1] || '';
2015
+ }
1960
2016
 
1961
- // Standard browser envs support document.cookie
1962
- {
1963
- write(name, value, expires, path, domain, secure) {
1964
- const cookie = [name + '=' + encodeURIComponent(value)];
2017
+ /**
2018
+ * Calculate data maxRate
2019
+ * @param {Number} [samplesCount= 10]
2020
+ * @param {Number} [min= 1000]
2021
+ * @returns {Function}
2022
+ */
2023
+ function speedometer(samplesCount, min) {
2024
+ samplesCount = samplesCount || 10;
2025
+ const bytes = new Array(samplesCount);
2026
+ const timestamps = new Array(samplesCount);
2027
+ let head = 0;
2028
+ let tail = 0;
2029
+ let firstSampleTS;
1965
2030
 
1966
- utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
2031
+ min = min !== undefined ? min : 1000;
1967
2032
 
1968
- utils$1.isString(path) && cookie.push('path=' + path);
2033
+ return function push(chunkLength) {
2034
+ const now = Date.now();
1969
2035
 
1970
- utils$1.isString(domain) && cookie.push('domain=' + domain);
2036
+ const startedAt = timestamps[tail];
1971
2037
 
1972
- secure === true && cookie.push('secure');
2038
+ if (!firstSampleTS) {
2039
+ firstSampleTS = now;
2040
+ }
1973
2041
 
1974
- document.cookie = cookie.join('; ');
1975
- },
2042
+ bytes[head] = chunkLength;
2043
+ timestamps[head] = now;
1976
2044
 
1977
- read(name) {
1978
- const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
1979
- return (match ? decodeURIComponent(match[3]) : null);
1980
- },
2045
+ let i = tail;
2046
+ let bytesCount = 0;
1981
2047
 
1982
- remove(name) {
1983
- this.write(name, '', Date.now() - 86400000);
2048
+ while (i !== head) {
2049
+ bytesCount += bytes[i++];
2050
+ i = i % samplesCount;
1984
2051
  }
1985
- }
1986
2052
 
1987
- :
2053
+ head = (head + 1) % samplesCount;
1988
2054
 
1989
- // Non-standard browser env (web workers, react-native) lack needed support.
1990
- {
1991
- write() {},
1992
- read() {
1993
- return null;
1994
- },
1995
- remove() {}
1996
- };
2055
+ if (head === tail) {
2056
+ tail = (tail + 1) % samplesCount;
2057
+ }
1997
2058
 
1998
- /**
1999
- * Determines whether the specified URL is absolute
2000
- *
2001
- * @param {string} url The URL to test
2002
- *
2003
- * @returns {boolean} True if the specified URL is absolute, otherwise false
2004
- */
2005
- function isAbsoluteURL(url) {
2006
- // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
2007
- // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
2008
- // by any combination of letters, digits, plus, period, or hyphen.
2009
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2010
- }
2059
+ if (now - firstSampleTS < min) {
2060
+ return;
2061
+ }
2011
2062
 
2012
- /**
2013
- * Creates a new URL by combining the specified URLs
2014
- *
2015
- * @param {string} baseURL The base URL
2016
- * @param {string} relativeURL The relative URL
2017
- *
2018
- * @returns {string} The combined URL
2019
- */
2020
- function combineURLs(baseURL, relativeURL) {
2021
- return relativeURL
2022
- ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2023
- : baseURL;
2063
+ const passed = startedAt && now - startedAt;
2064
+
2065
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2066
+ };
2024
2067
  }
2025
2068
 
2026
2069
  /**
2027
- * Creates a new URL by combining the baseURL with the requestedURL,
2028
- * only when the requestedURL is not already an absolute URL.
2029
- * If the requestURL is absolute, this function returns the requestedURL untouched.
2030
- *
2031
- * @param {string} baseURL The base URL
2032
- * @param {string} requestedURL Absolute or relative URL to combine
2033
- *
2034
- * @returns {string} The combined full path
2070
+ * Throttle decorator
2071
+ * @param {Function} fn
2072
+ * @param {Number} freq
2073
+ * @return {Function}
2035
2074
  */
2036
- function buildFullPath(baseURL, requestedURL) {
2037
- if (baseURL && !isAbsoluteURL(requestedURL)) {
2038
- return combineURLs(baseURL, requestedURL);
2039
- }
2040
- return requestedURL;
2075
+ function throttle(fn, freq) {
2076
+ let timestamp = 0;
2077
+ let threshold = 1000 / freq;
2078
+ let lastArgs;
2079
+ let timer;
2080
+
2081
+ const invoke = (args, now = Date.now()) => {
2082
+ timestamp = now;
2083
+ lastArgs = null;
2084
+ if (timer) {
2085
+ clearTimeout(timer);
2086
+ timer = null;
2087
+ }
2088
+ fn.apply(null, args);
2089
+ };
2090
+
2091
+ const throttled = (...args) => {
2092
+ const now = Date.now();
2093
+ const passed = now - timestamp;
2094
+ if ( passed >= threshold) {
2095
+ invoke(args, now);
2096
+ } else {
2097
+ lastArgs = args;
2098
+ if (!timer) {
2099
+ timer = setTimeout(() => {
2100
+ timer = null;
2101
+ invoke(lastArgs);
2102
+ }, threshold - passed);
2103
+ }
2104
+ }
2105
+ };
2106
+
2107
+ const flush = () => lastArgs && invoke(lastArgs);
2108
+
2109
+ return [throttled, flush];
2041
2110
  }
2042
2111
 
2112
+ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2113
+ let bytesNotified = 0;
2114
+ const _speedometer = speedometer(50, 250);
2115
+
2116
+ return throttle(e => {
2117
+ const loaded = e.loaded;
2118
+ const total = e.lengthComputable ? e.total : undefined;
2119
+ const progressBytes = loaded - bytesNotified;
2120
+ const rate = _speedometer(progressBytes);
2121
+ const inRange = loaded <= total;
2122
+
2123
+ bytesNotified = loaded;
2124
+
2125
+ const data = {
2126
+ loaded,
2127
+ total,
2128
+ progress: total ? (loaded / total) : undefined,
2129
+ bytes: progressBytes,
2130
+ rate: rate ? rate : undefined,
2131
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2132
+ event: e,
2133
+ lengthComputable: total != null,
2134
+ [isDownloadStream ? 'download' : 'upload']: true
2135
+ };
2136
+
2137
+ listener(data);
2138
+ }, freq);
2139
+ };
2140
+
2141
+ const progressEventDecorator = (total, throttled) => {
2142
+ const lengthComputable = total != null;
2143
+
2144
+ return [(loaded) => throttled[0]({
2145
+ lengthComputable,
2146
+ total,
2147
+ loaded
2148
+ }), throttled[1]];
2149
+ };
2150
+
2151
+ const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2152
+
2043
2153
  const isURLSameOrigin = platform.hasStandardBrowserEnv ?
2044
2154
 
2045
2155
  // Standard browser envs have full support of the APIs needed to test
2046
2156
  // whether the request URL is of the same origin as current location.
2047
2157
  (function standardBrowserEnv() {
2048
- const msie = /(msie|trident)/i.test(navigator.userAgent);
2158
+ const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
2049
2159
  const urlParsingNode = document.createElement('a');
2050
2160
  let originURL;
2051
2161
 
@@ -2103,137 +2213,267 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ?
2103
2213
  };
2104
2214
  })();
2105
2215
 
2106
- function parseProtocol(url) {
2107
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2108
- return match && match[1] || '';
2109
- }
2216
+ const cookies = platform.hasStandardBrowserEnv ?
2110
2217
 
2111
- /**
2112
- * Calculate data maxRate
2113
- * @param {Number} [samplesCount= 10]
2114
- * @param {Number} [min= 1000]
2115
- * @returns {Function}
2116
- */
2117
- function speedometer(samplesCount, min) {
2118
- samplesCount = samplesCount || 10;
2119
- const bytes = new Array(samplesCount);
2120
- const timestamps = new Array(samplesCount);
2121
- let head = 0;
2122
- let tail = 0;
2123
- let firstSampleTS;
2218
+ // Standard browser envs support document.cookie
2219
+ {
2220
+ write(name, value, expires, path, domain, secure) {
2221
+ const cookie = [name + '=' + encodeURIComponent(value)];
2124
2222
 
2125
- min = min !== undefined ? min : 1000;
2223
+ utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
2126
2224
 
2127
- return function push(chunkLength) {
2128
- const now = Date.now();
2225
+ utils$1.isString(path) && cookie.push('path=' + path);
2129
2226
 
2130
- const startedAt = timestamps[tail];
2227
+ utils$1.isString(domain) && cookie.push('domain=' + domain);
2131
2228
 
2132
- if (!firstSampleTS) {
2133
- firstSampleTS = now;
2134
- }
2229
+ secure === true && cookie.push('secure');
2135
2230
 
2136
- bytes[head] = chunkLength;
2137
- timestamps[head] = now;
2231
+ document.cookie = cookie.join('; ');
2232
+ },
2138
2233
 
2139
- let i = tail;
2140
- let bytesCount = 0;
2234
+ read(name) {
2235
+ const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
2236
+ return (match ? decodeURIComponent(match[3]) : null);
2237
+ },
2141
2238
 
2142
- while (i !== head) {
2143
- bytesCount += bytes[i++];
2144
- i = i % samplesCount;
2239
+ remove(name) {
2240
+ this.write(name, '', Date.now() - 86400000);
2145
2241
  }
2242
+ }
2146
2243
 
2147
- head = (head + 1) % samplesCount;
2148
-
2149
- if (head === tail) {
2150
- tail = (tail + 1) % samplesCount;
2151
- }
2244
+ :
2152
2245
 
2153
- if (now - firstSampleTS < min) {
2154
- return;
2155
- }
2246
+ // Non-standard browser env (web workers, react-native) lack needed support.
2247
+ {
2248
+ write() {},
2249
+ read() {
2250
+ return null;
2251
+ },
2252
+ remove() {}
2253
+ };
2156
2254
 
2157
- const passed = startedAt && now - startedAt;
2255
+ /**
2256
+ * Determines whether the specified URL is absolute
2257
+ *
2258
+ * @param {string} url The URL to test
2259
+ *
2260
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
2261
+ */
2262
+ function isAbsoluteURL(url) {
2263
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
2264
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
2265
+ // by any combination of letters, digits, plus, period, or hyphen.
2266
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2267
+ }
2158
2268
 
2159
- return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2160
- };
2269
+ /**
2270
+ * Creates a new URL by combining the specified URLs
2271
+ *
2272
+ * @param {string} baseURL The base URL
2273
+ * @param {string} relativeURL The relative URL
2274
+ *
2275
+ * @returns {string} The combined URL
2276
+ */
2277
+ function combineURLs(baseURL, relativeURL) {
2278
+ return relativeURL
2279
+ ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2280
+ : baseURL;
2161
2281
  }
2162
2282
 
2163
- function progressEventReducer(listener, isDownloadStream) {
2164
- let bytesNotified = 0;
2165
- const _speedometer = speedometer(50, 250);
2283
+ /**
2284
+ * Creates a new URL by combining the baseURL with the requestedURL,
2285
+ * only when the requestedURL is not already an absolute URL.
2286
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
2287
+ *
2288
+ * @param {string} baseURL The base URL
2289
+ * @param {string} requestedURL Absolute or relative URL to combine
2290
+ *
2291
+ * @returns {string} The combined full path
2292
+ */
2293
+ function buildFullPath(baseURL, requestedURL) {
2294
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
2295
+ return combineURLs(baseURL, requestedURL);
2296
+ }
2297
+ return requestedURL;
2298
+ }
2166
2299
 
2167
- return e => {
2168
- const loaded = e.loaded;
2169
- const total = e.lengthComputable ? e.total : undefined;
2170
- const progressBytes = loaded - bytesNotified;
2171
- const rate = _speedometer(progressBytes);
2172
- const inRange = loaded <= total;
2300
+ const headersToObject = (thing) => thing instanceof AxiosHeaders$2 ? { ...thing } : thing;
2173
2301
 
2174
- bytesNotified = loaded;
2302
+ /**
2303
+ * Config-specific merge-function which creates a new config-object
2304
+ * by merging two configuration objects together.
2305
+ *
2306
+ * @param {Object} config1
2307
+ * @param {Object} config2
2308
+ *
2309
+ * @returns {Object} New object resulting from merging config2 to config1
2310
+ */
2311
+ function mergeConfig$1(config1, config2) {
2312
+ // eslint-disable-next-line no-param-reassign
2313
+ config2 = config2 || {};
2314
+ const config = {};
2175
2315
 
2176
- const data = {
2177
- loaded,
2178
- total,
2179
- progress: total ? (loaded / total) : undefined,
2180
- bytes: progressBytes,
2181
- rate: rate ? rate : undefined,
2182
- estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2183
- event: e
2184
- };
2316
+ function getMergedValue(target, source, caseless) {
2317
+ if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
2318
+ return utils$1.merge.call({caseless}, target, source);
2319
+ } else if (utils$1.isPlainObject(source)) {
2320
+ return utils$1.merge({}, source);
2321
+ } else if (utils$1.isArray(source)) {
2322
+ return source.slice();
2323
+ }
2324
+ return source;
2325
+ }
2326
+
2327
+ // eslint-disable-next-line consistent-return
2328
+ function mergeDeepProperties(a, b, caseless) {
2329
+ if (!utils$1.isUndefined(b)) {
2330
+ return getMergedValue(a, b, caseless);
2331
+ } else if (!utils$1.isUndefined(a)) {
2332
+ return getMergedValue(undefined, a, caseless);
2333
+ }
2334
+ }
2185
2335
 
2186
- data[isDownloadStream ? 'download' : 'upload'] = true;
2336
+ // eslint-disable-next-line consistent-return
2337
+ function valueFromConfig2(a, b) {
2338
+ if (!utils$1.isUndefined(b)) {
2339
+ return getMergedValue(undefined, b);
2340
+ }
2341
+ }
2187
2342
 
2188
- listener(data);
2343
+ // eslint-disable-next-line consistent-return
2344
+ function defaultToConfig2(a, b) {
2345
+ if (!utils$1.isUndefined(b)) {
2346
+ return getMergedValue(undefined, b);
2347
+ } else if (!utils$1.isUndefined(a)) {
2348
+ return getMergedValue(undefined, a);
2349
+ }
2350
+ }
2351
+
2352
+ // eslint-disable-next-line consistent-return
2353
+ function mergeDirectKeys(a, b, prop) {
2354
+ if (prop in config2) {
2355
+ return getMergedValue(a, b);
2356
+ } else if (prop in config1) {
2357
+ return getMergedValue(undefined, a);
2358
+ }
2359
+ }
2360
+
2361
+ const mergeMap = {
2362
+ url: valueFromConfig2,
2363
+ method: valueFromConfig2,
2364
+ data: valueFromConfig2,
2365
+ baseURL: defaultToConfig2,
2366
+ transformRequest: defaultToConfig2,
2367
+ transformResponse: defaultToConfig2,
2368
+ paramsSerializer: defaultToConfig2,
2369
+ timeout: defaultToConfig2,
2370
+ timeoutMessage: defaultToConfig2,
2371
+ withCredentials: defaultToConfig2,
2372
+ withXSRFToken: defaultToConfig2,
2373
+ adapter: defaultToConfig2,
2374
+ responseType: defaultToConfig2,
2375
+ xsrfCookieName: defaultToConfig2,
2376
+ xsrfHeaderName: defaultToConfig2,
2377
+ onUploadProgress: defaultToConfig2,
2378
+ onDownloadProgress: defaultToConfig2,
2379
+ decompress: defaultToConfig2,
2380
+ maxContentLength: defaultToConfig2,
2381
+ maxBodyLength: defaultToConfig2,
2382
+ beforeRedirect: defaultToConfig2,
2383
+ transport: defaultToConfig2,
2384
+ httpAgent: defaultToConfig2,
2385
+ httpsAgent: defaultToConfig2,
2386
+ cancelToken: defaultToConfig2,
2387
+ socketPath: defaultToConfig2,
2388
+ responseEncoding: defaultToConfig2,
2389
+ validateStatus: mergeDirectKeys,
2390
+ headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
2189
2391
  };
2392
+
2393
+ utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
2394
+ const merge = mergeMap[prop] || mergeDeepProperties;
2395
+ const configValue = merge(config1[prop], config2[prop], prop);
2396
+ (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
2397
+ });
2398
+
2399
+ return config;
2190
2400
  }
2191
2401
 
2192
- const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2402
+ const resolveConfig = (config) => {
2403
+ const newConfig = mergeConfig$1({}, config);
2193
2404
 
2194
- const xhrAdapter = isXHRAdapterSupported && function (config) {
2195
- return new Promise(function dispatchXhrRequest(resolve, reject) {
2196
- let requestData = config.data;
2197
- const requestHeaders = AxiosHeaders$2.from(config.headers).normalize();
2198
- let {responseType, withXSRFToken} = config;
2199
- let onCanceled;
2200
- function done() {
2201
- if (config.cancelToken) {
2202
- config.cancelToken.unsubscribe(onCanceled);
2203
- }
2405
+ let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
2204
2406
 
2205
- if (config.signal) {
2206
- config.signal.removeEventListener('abort', onCanceled);
2207
- }
2407
+ newConfig.headers = headers = AxiosHeaders$2.from(headers);
2408
+
2409
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
2410
+
2411
+ // HTTP basic authentication
2412
+ if (auth) {
2413
+ headers.set('Authorization', 'Basic ' +
2414
+ btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
2415
+ );
2416
+ }
2417
+
2418
+ let contentType;
2419
+
2420
+ if (utils$1.isFormData(data)) {
2421
+ if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
2422
+ headers.setContentType(undefined); // Let the browser set it
2423
+ } else if ((contentType = headers.getContentType()) !== false) {
2424
+ // fix semicolon duplication issue for ReactNative FormData implementation
2425
+ const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
2426
+ headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
2208
2427
  }
2428
+ }
2429
+
2430
+ // Add xsrf header
2431
+ // This is only done if running in a standard browser environment.
2432
+ // Specifically not if we're in a web worker, or react-native.
2433
+
2434
+ if (platform.hasStandardBrowserEnv) {
2435
+ withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
2209
2436
 
2210
- let contentType;
2437
+ if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {
2438
+ // Add xsrf header
2439
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
2211
2440
 
2212
- if (utils$1.isFormData(requestData)) {
2213
- if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
2214
- requestHeaders.setContentType(false); // Let the browser set it
2215
- } else if ((contentType = requestHeaders.getContentType()) !== false) {
2216
- // fix semicolon duplication issue for ReactNative FormData implementation
2217
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
2218
- requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
2441
+ if (xsrfValue) {
2442
+ headers.set(xsrfHeaderName, xsrfValue);
2219
2443
  }
2220
2444
  }
2445
+ }
2221
2446
 
2222
- let request = new XMLHttpRequest();
2447
+ return newConfig;
2448
+ };
2449
+
2450
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2451
+
2452
+ const xhrAdapter = isXHRAdapterSupported && function (config) {
2453
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2454
+ const _config = resolveConfig(config);
2455
+ let requestData = _config.data;
2456
+ const requestHeaders = AxiosHeaders$2.from(_config.headers).normalize();
2457
+ let {responseType, onUploadProgress, onDownloadProgress} = _config;
2458
+ let onCanceled;
2459
+ let uploadThrottled, downloadThrottled;
2460
+ let flushUpload, flushDownload;
2223
2461
 
2224
- // HTTP basic authentication
2225
- if (config.auth) {
2226
- const username = config.auth.username || '';
2227
- const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
2228
- requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
2462
+ function done() {
2463
+ flushUpload && flushUpload(); // flush events
2464
+ flushDownload && flushDownload(); // flush events
2465
+
2466
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
2467
+
2468
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
2229
2469
  }
2230
2470
 
2231
- const fullPath = buildFullPath(config.baseURL, config.url);
2471
+ let request = new XMLHttpRequest();
2232
2472
 
2233
- request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
2473
+ request.open(_config.method.toUpperCase(), _config.url, true);
2234
2474
 
2235
2475
  // Set the request timeout in MS
2236
- request.timeout = config.timeout;
2476
+ request.timeout = _config.timeout;
2237
2477
 
2238
2478
  function onloadend() {
2239
2479
  if (!request) {
@@ -2313,10 +2553,10 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2313
2553
 
2314
2554
  // Handle timeout
2315
2555
  request.ontimeout = function handleTimeout() {
2316
- let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
2317
- const transitional = config.transitional || transitionalDefaults;
2318
- if (config.timeoutErrorMessage) {
2319
- timeoutErrorMessage = config.timeoutErrorMessage;
2556
+ let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
2557
+ const transitional = _config.transitional || transitionalDefaults;
2558
+ if (_config.timeoutErrorMessage) {
2559
+ timeoutErrorMessage = _config.timeoutErrorMessage;
2320
2560
  }
2321
2561
  reject(new AxiosError$1(
2322
2562
  timeoutErrorMessage,
@@ -2328,22 +2568,6 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2328
2568
  request = null;
2329
2569
  };
2330
2570
 
2331
- // Add xsrf header
2332
- // This is only done if running in a standard browser environment.
2333
- // Specifically not if we're in a web worker, or react-native.
2334
- if(platform.hasStandardBrowserEnv) {
2335
- withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
2336
-
2337
- if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {
2338
- // Add xsrf header
2339
- const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
2340
-
2341
- if (xsrfValue) {
2342
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
2343
- }
2344
- }
2345
- }
2346
-
2347
2571
  // Remove Content-Type if data is undefined
2348
2572
  requestData === undefined && requestHeaders.setContentType(null);
2349
2573
 
@@ -2355,26 +2579,31 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2355
2579
  }
2356
2580
 
2357
2581
  // Add withCredentials to request if needed
2358
- if (!utils$1.isUndefined(config.withCredentials)) {
2359
- request.withCredentials = !!config.withCredentials;
2582
+ if (!utils$1.isUndefined(_config.withCredentials)) {
2583
+ request.withCredentials = !!_config.withCredentials;
2360
2584
  }
2361
2585
 
2362
2586
  // Add responseType to request if needed
2363
2587
  if (responseType && responseType !== 'json') {
2364
- request.responseType = config.responseType;
2588
+ request.responseType = _config.responseType;
2365
2589
  }
2366
2590
 
2367
2591
  // Handle progress if needed
2368
- if (typeof config.onDownloadProgress === 'function') {
2369
- request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));
2592
+ if (onDownloadProgress) {
2593
+ ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));
2594
+ request.addEventListener('progress', downloadThrottled);
2370
2595
  }
2371
2596
 
2372
2597
  // Not all browsers support upload events
2373
- if (typeof config.onUploadProgress === 'function' && request.upload) {
2374
- request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));
2598
+ if (onUploadProgress && request.upload) {
2599
+ ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));
2600
+
2601
+ request.upload.addEventListener('progress', uploadThrottled);
2602
+
2603
+ request.upload.addEventListener('loadend', flushUpload);
2375
2604
  }
2376
2605
 
2377
- if (config.cancelToken || config.signal) {
2606
+ if (_config.cancelToken || _config.signal) {
2378
2607
  // Handle cancellation
2379
2608
  // eslint-disable-next-line func-names
2380
2609
  onCanceled = cancel => {
@@ -2386,13 +2615,13 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2386
2615
  request = null;
2387
2616
  };
2388
2617
 
2389
- config.cancelToken && config.cancelToken.subscribe(onCanceled);
2390
- if (config.signal) {
2391
- config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
2618
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2619
+ if (_config.signal) {
2620
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
2392
2621
  }
2393
2622
  }
2394
2623
 
2395
- const protocol = parseProtocol(fullPath);
2624
+ const protocol = parseProtocol(_config.url);
2396
2625
 
2397
2626
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
2398
2627
  reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
@@ -2405,9 +2634,360 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2405
2634
  });
2406
2635
  };
2407
2636
 
2637
+ const composeSignals = (signals, timeout) => {
2638
+ const {length} = (signals = signals ? signals.filter(Boolean) : []);
2639
+
2640
+ if (timeout || length) {
2641
+ let controller = new AbortController();
2642
+
2643
+ let aborted;
2644
+
2645
+ const onabort = function (reason) {
2646
+ if (!aborted) {
2647
+ aborted = true;
2648
+ unsubscribe();
2649
+ const err = reason instanceof Error ? reason : this.reason;
2650
+ controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
2651
+ }
2652
+ };
2653
+
2654
+ let timer = timeout && setTimeout(() => {
2655
+ timer = null;
2656
+ onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
2657
+ }, timeout);
2658
+
2659
+ const unsubscribe = () => {
2660
+ if (signals) {
2661
+ timer && clearTimeout(timer);
2662
+ timer = null;
2663
+ signals.forEach(signal => {
2664
+ signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
2665
+ });
2666
+ signals = null;
2667
+ }
2668
+ };
2669
+
2670
+ signals.forEach((signal) => signal.addEventListener('abort', onabort));
2671
+
2672
+ const {signal} = controller;
2673
+
2674
+ signal.unsubscribe = () => utils$1.asap(unsubscribe);
2675
+
2676
+ return signal;
2677
+ }
2678
+ };
2679
+
2680
+ const composeSignals$1 = composeSignals;
2681
+
2682
+ const streamChunk = function* (chunk, chunkSize) {
2683
+ let len = chunk.byteLength;
2684
+
2685
+ if (!chunkSize || len < chunkSize) {
2686
+ yield chunk;
2687
+ return;
2688
+ }
2689
+
2690
+ let pos = 0;
2691
+ let end;
2692
+
2693
+ while (pos < len) {
2694
+ end = pos + chunkSize;
2695
+ yield chunk.slice(pos, end);
2696
+ pos = end;
2697
+ }
2698
+ };
2699
+
2700
+ const readBytes = async function* (iterable, chunkSize) {
2701
+ for await (const chunk of readStream(iterable)) {
2702
+ yield* streamChunk(chunk, chunkSize);
2703
+ }
2704
+ };
2705
+
2706
+ const readStream = async function* (stream) {
2707
+ if (stream[Symbol.asyncIterator]) {
2708
+ yield* stream;
2709
+ return;
2710
+ }
2711
+
2712
+ const reader = stream.getReader();
2713
+ try {
2714
+ for (;;) {
2715
+ const {done, value} = await reader.read();
2716
+ if (done) {
2717
+ break;
2718
+ }
2719
+ yield value;
2720
+ }
2721
+ } finally {
2722
+ await reader.cancel();
2723
+ }
2724
+ };
2725
+
2726
+ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
2727
+ const iterator = readBytes(stream, chunkSize);
2728
+
2729
+ let bytes = 0;
2730
+ let done;
2731
+ let _onFinish = (e) => {
2732
+ if (!done) {
2733
+ done = true;
2734
+ onFinish && onFinish(e);
2735
+ }
2736
+ };
2737
+
2738
+ return new ReadableStream({
2739
+ async pull(controller) {
2740
+ try {
2741
+ const {done, value} = await iterator.next();
2742
+
2743
+ if (done) {
2744
+ _onFinish();
2745
+ controller.close();
2746
+ return;
2747
+ }
2748
+
2749
+ let len = value.byteLength;
2750
+ if (onProgress) {
2751
+ let loadedBytes = bytes += len;
2752
+ onProgress(loadedBytes);
2753
+ }
2754
+ controller.enqueue(new Uint8Array(value));
2755
+ } catch (err) {
2756
+ _onFinish(err);
2757
+ throw err;
2758
+ }
2759
+ },
2760
+ cancel(reason) {
2761
+ _onFinish(reason);
2762
+ return iterator.return();
2763
+ }
2764
+ }, {
2765
+ highWaterMark: 2
2766
+ })
2767
+ };
2768
+
2769
+ const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
2770
+ const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
2771
+
2772
+ // used only inside the fetch adapter
2773
+ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
2774
+ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
2775
+ async (str) => new Uint8Array(await new Response(str).arrayBuffer())
2776
+ );
2777
+
2778
+ const test = (fn, ...args) => {
2779
+ try {
2780
+ return !!fn(...args);
2781
+ } catch (e) {
2782
+ return false
2783
+ }
2784
+ };
2785
+
2786
+ const supportsRequestStream = isReadableStreamSupported && test(() => {
2787
+ let duplexAccessed = false;
2788
+
2789
+ const hasContentType = new Request(platform.origin, {
2790
+ body: new ReadableStream(),
2791
+ method: 'POST',
2792
+ get duplex() {
2793
+ duplexAccessed = true;
2794
+ return 'half';
2795
+ },
2796
+ }).headers.has('Content-Type');
2797
+
2798
+ return duplexAccessed && !hasContentType;
2799
+ });
2800
+
2801
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
2802
+
2803
+ const supportsResponseStream = isReadableStreamSupported &&
2804
+ test(() => utils$1.isReadableStream(new Response('').body));
2805
+
2806
+
2807
+ const resolvers = {
2808
+ stream: supportsResponseStream && ((res) => res.body)
2809
+ };
2810
+
2811
+ isFetchSupported && (((res) => {
2812
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
2813
+ !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
2814
+ (_, config) => {
2815
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
2816
+ });
2817
+ });
2818
+ })(new Response));
2819
+
2820
+ const getBodyLength = async (body) => {
2821
+ if (body == null) {
2822
+ return 0;
2823
+ }
2824
+
2825
+ if(utils$1.isBlob(body)) {
2826
+ return body.size;
2827
+ }
2828
+
2829
+ if(utils$1.isSpecCompliantForm(body)) {
2830
+ const _request = new Request(platform.origin, {
2831
+ method: 'POST',
2832
+ body,
2833
+ });
2834
+ return (await _request.arrayBuffer()).byteLength;
2835
+ }
2836
+
2837
+ if(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
2838
+ return body.byteLength;
2839
+ }
2840
+
2841
+ if(utils$1.isURLSearchParams(body)) {
2842
+ body = body + '';
2843
+ }
2844
+
2845
+ if(utils$1.isString(body)) {
2846
+ return (await encodeText(body)).byteLength;
2847
+ }
2848
+ };
2849
+
2850
+ const resolveBodyLength = async (headers, body) => {
2851
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
2852
+
2853
+ return length == null ? getBodyLength(body) : length;
2854
+ };
2855
+
2856
+ const fetchAdapter = isFetchSupported && (async (config) => {
2857
+ let {
2858
+ url,
2859
+ method,
2860
+ data,
2861
+ signal,
2862
+ cancelToken,
2863
+ timeout,
2864
+ onDownloadProgress,
2865
+ onUploadProgress,
2866
+ responseType,
2867
+ headers,
2868
+ withCredentials = 'same-origin',
2869
+ fetchOptions
2870
+ } = resolveConfig(config);
2871
+
2872
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
2873
+
2874
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
2875
+
2876
+ let request;
2877
+
2878
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2879
+ composedSignal.unsubscribe();
2880
+ });
2881
+
2882
+ let requestContentLength;
2883
+
2884
+ try {
2885
+ if (
2886
+ onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
2887
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
2888
+ ) {
2889
+ let _request = new Request(url, {
2890
+ method: 'POST',
2891
+ body: data,
2892
+ duplex: "half"
2893
+ });
2894
+
2895
+ let contentTypeHeader;
2896
+
2897
+ if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
2898
+ headers.setContentType(contentTypeHeader);
2899
+ }
2900
+
2901
+ if (_request.body) {
2902
+ const [onProgress, flush] = progressEventDecorator(
2903
+ requestContentLength,
2904
+ progressEventReducer(asyncDecorator(onUploadProgress))
2905
+ );
2906
+
2907
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
2908
+ }
2909
+ }
2910
+
2911
+ if (!utils$1.isString(withCredentials)) {
2912
+ withCredentials = withCredentials ? 'include' : 'omit';
2913
+ }
2914
+
2915
+ // Cloudflare Workers throws when credentials are defined
2916
+ // see https://github.com/cloudflare/workerd/issues/902
2917
+ const isCredentialsSupported = "credentials" in Request.prototype;
2918
+ request = new Request(url, {
2919
+ ...fetchOptions,
2920
+ signal: composedSignal,
2921
+ method: method.toUpperCase(),
2922
+ headers: headers.normalize().toJSON(),
2923
+ body: data,
2924
+ duplex: "half",
2925
+ credentials: isCredentialsSupported ? withCredentials : undefined
2926
+ });
2927
+
2928
+ let response = await fetch(request);
2929
+
2930
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
2931
+
2932
+ if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
2933
+ const options = {};
2934
+
2935
+ ['status', 'statusText', 'headers'].forEach(prop => {
2936
+ options[prop] = response[prop];
2937
+ });
2938
+
2939
+ const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
2940
+
2941
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
2942
+ responseContentLength,
2943
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
2944
+ ) || [];
2945
+
2946
+ response = new Response(
2947
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
2948
+ flush && flush();
2949
+ unsubscribe && unsubscribe();
2950
+ }),
2951
+ options
2952
+ );
2953
+ }
2954
+
2955
+ responseType = responseType || 'text';
2956
+
2957
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
2958
+
2959
+ !isStreamResponse && unsubscribe && unsubscribe();
2960
+
2961
+ return await new Promise((resolve, reject) => {
2962
+ settle(resolve, reject, {
2963
+ data: responseData,
2964
+ headers: AxiosHeaders$2.from(response.headers),
2965
+ status: response.status,
2966
+ statusText: response.statusText,
2967
+ config,
2968
+ request
2969
+ });
2970
+ })
2971
+ } catch (err) {
2972
+ unsubscribe && unsubscribe();
2973
+
2974
+ if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
2975
+ throw Object.assign(
2976
+ new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
2977
+ {
2978
+ cause: err.cause || err
2979
+ }
2980
+ )
2981
+ }
2982
+
2983
+ throw AxiosError$1.from(err, err && err.code, config, request);
2984
+ }
2985
+ });
2986
+
2408
2987
  const knownAdapters = {
2409
2988
  http: httpAdapter,
2410
- xhr: xhrAdapter
2989
+ xhr: xhrAdapter,
2990
+ fetch: fetchAdapter
2411
2991
  };
2412
2992
 
2413
2993
  utils$1.forEach(knownAdapters, (fn, value) => {
@@ -2551,109 +3131,7 @@ function dispatchRequest(config) {
2551
3131
  });
2552
3132
  }
2553
3133
 
2554
- const headersToObject = (thing) => thing instanceof AxiosHeaders$2 ? { ...thing } : thing;
2555
-
2556
- /**
2557
- * Config-specific merge-function which creates a new config-object
2558
- * by merging two configuration objects together.
2559
- *
2560
- * @param {Object} config1
2561
- * @param {Object} config2
2562
- *
2563
- * @returns {Object} New object resulting from merging config2 to config1
2564
- */
2565
- function mergeConfig$1(config1, config2) {
2566
- // eslint-disable-next-line no-param-reassign
2567
- config2 = config2 || {};
2568
- const config = {};
2569
-
2570
- function getMergedValue(target, source, caseless) {
2571
- if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
2572
- return utils$1.merge.call({caseless}, target, source);
2573
- } else if (utils$1.isPlainObject(source)) {
2574
- return utils$1.merge({}, source);
2575
- } else if (utils$1.isArray(source)) {
2576
- return source.slice();
2577
- }
2578
- return source;
2579
- }
2580
-
2581
- // eslint-disable-next-line consistent-return
2582
- function mergeDeepProperties(a, b, caseless) {
2583
- if (!utils$1.isUndefined(b)) {
2584
- return getMergedValue(a, b, caseless);
2585
- } else if (!utils$1.isUndefined(a)) {
2586
- return getMergedValue(undefined, a, caseless);
2587
- }
2588
- }
2589
-
2590
- // eslint-disable-next-line consistent-return
2591
- function valueFromConfig2(a, b) {
2592
- if (!utils$1.isUndefined(b)) {
2593
- return getMergedValue(undefined, b);
2594
- }
2595
- }
2596
-
2597
- // eslint-disable-next-line consistent-return
2598
- function defaultToConfig2(a, b) {
2599
- if (!utils$1.isUndefined(b)) {
2600
- return getMergedValue(undefined, b);
2601
- } else if (!utils$1.isUndefined(a)) {
2602
- return getMergedValue(undefined, a);
2603
- }
2604
- }
2605
-
2606
- // eslint-disable-next-line consistent-return
2607
- function mergeDirectKeys(a, b, prop) {
2608
- if (prop in config2) {
2609
- return getMergedValue(a, b);
2610
- } else if (prop in config1) {
2611
- return getMergedValue(undefined, a);
2612
- }
2613
- }
2614
-
2615
- const mergeMap = {
2616
- url: valueFromConfig2,
2617
- method: valueFromConfig2,
2618
- data: valueFromConfig2,
2619
- baseURL: defaultToConfig2,
2620
- transformRequest: defaultToConfig2,
2621
- transformResponse: defaultToConfig2,
2622
- paramsSerializer: defaultToConfig2,
2623
- timeout: defaultToConfig2,
2624
- timeoutMessage: defaultToConfig2,
2625
- withCredentials: defaultToConfig2,
2626
- withXSRFToken: defaultToConfig2,
2627
- adapter: defaultToConfig2,
2628
- responseType: defaultToConfig2,
2629
- xsrfCookieName: defaultToConfig2,
2630
- xsrfHeaderName: defaultToConfig2,
2631
- onUploadProgress: defaultToConfig2,
2632
- onDownloadProgress: defaultToConfig2,
2633
- decompress: defaultToConfig2,
2634
- maxContentLength: defaultToConfig2,
2635
- maxBodyLength: defaultToConfig2,
2636
- beforeRedirect: defaultToConfig2,
2637
- transport: defaultToConfig2,
2638
- httpAgent: defaultToConfig2,
2639
- httpsAgent: defaultToConfig2,
2640
- cancelToken: defaultToConfig2,
2641
- socketPath: defaultToConfig2,
2642
- responseEncoding: defaultToConfig2,
2643
- validateStatus: mergeDirectKeys,
2644
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
2645
- };
2646
-
2647
- utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
2648
- const merge = mergeMap[prop] || mergeDeepProperties;
2649
- const configValue = merge(config1[prop], config2[prop], prop);
2650
- (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
2651
- });
2652
-
2653
- return config;
2654
- }
2655
-
2656
- const VERSION$1 = "1.6.8";
3134
+ const VERSION$1 = "1.7.7";
2657
3135
 
2658
3136
  const validators$1 = {};
2659
3137
 
@@ -2779,12 +3257,15 @@ class Axios$1 {
2779
3257
 
2780
3258
  // slice off the Error: ... line
2781
3259
  const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
2782
-
2783
- if (!err.stack) {
2784
- err.stack = stack;
2785
- // match without the 2 top stack lines
2786
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
2787
- err.stack += '\n' + stack;
3260
+ try {
3261
+ if (!err.stack) {
3262
+ err.stack = stack;
3263
+ // match without the 2 top stack lines
3264
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
3265
+ err.stack += '\n' + stack;
3266
+ }
3267
+ } catch (e) {
3268
+ // ignore the case where "stack" is an un-writable property
2788
3269
  }
2789
3270
  }
2790
3271
 
@@ -3057,6 +3538,20 @@ class CancelToken$1 {
3057
3538
  }
3058
3539
  }
3059
3540
 
3541
+ toAbortSignal() {
3542
+ const controller = new AbortController();
3543
+
3544
+ const abort = (err) => {
3545
+ controller.abort(err);
3546
+ };
3547
+
3548
+ this.subscribe(abort);
3549
+
3550
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
3551
+
3552
+ return controller.signal;
3553
+ }
3554
+
3060
3555
  /**
3061
3556
  * Returns an object that contains a new `CancelToken` and a function that, when called,
3062
3557
  * cancels the `CancelToken`.