@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.
- package/dist/commands/publish-documentation.js +25 -3
- package/dist/utils/figma-tokens-data-loader.js +51 -49
- package/node_modules/@supernova-studio/pulsar-core/build/main/pulsar-core.js +2 -2
- package/node_modules/@supernova-studio/pulsar-core/package.json +8 -26
- package/node_modules/@supernova-studio/pulsar-language/build/main/language/src/extensions/dsm/DSMBridge.d.ts +4 -0
- package/node_modules/@supernova-studio/pulsar-language/build/main/pulsar-language.js +1 -1
- package/node_modules/@supernova-studio/pulsar-language/package.json +7 -22
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDocumentation.d.ts +4 -4
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKDataCore.d.ts +2 -2
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/exports.d.ts +1 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPageBlock.d.ts +11 -4
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAssetGroup.d.ts +25 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuideline.d.ts +11 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuidelineProps.d.ts +17 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockGuidelines.d.ts +8 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockImage.d.ts +2 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockSwatch.d.ts +9 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageBlockType.d.ts +3 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +6 -0
- package/node_modules/@supernovaio/supernova-sdk/build/sdk-typescript/tsconfig.tsbuildinfo +6395 -0
- package/node_modules/@supernovaio/supernova-sdk/build/supernova-sdk-typescript.js +1 -1
- package/node_modules/@supernovaio/supernova-sdk/build/supernova-sdk-typescript.js.map +1 -1
- package/node_modules/@supernovaio/supernova-sdk/package.json +7 -8
- package/node_modules/axios/CHANGELOG.md +895 -746
- package/node_modules/axios/README.md +37 -42
- package/node_modules/axios/dist/axios.js +1168 -299
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +810 -315
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +810 -315
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +824 -396
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -2
- package/node_modules/axios/index.d.ts +5 -2
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +229 -0
- package/node_modules/axios/lib/adapters/http.js +27 -17
- package/node_modules/axios/lib/adapters/xhr.js +36 -99
- package/node_modules/axios/lib/cancel/CancelToken.js +14 -0
- package/node_modules/axios/lib/core/Axios.js +9 -6
- package/node_modules/axios/lib/core/AxiosError.js +5 -2
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/defaults/index.js +7 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +3 -51
- package/node_modules/axios/lib/helpers/composeSignals.js +48 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +30 -19
- package/node_modules/axios/lib/helpers/trackStream.js +87 -0
- package/node_modules/axios/lib/platform/common/utils.js +9 -5
- package/node_modules/axios/lib/utils.js +40 -3
- package/node_modules/axios/package.json +4 -3
- package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts.map +1 -1
- package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.js +2 -2
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/{@supernovaio/supernova-sdk/node_modules/https-proxy-agent → https-proxy-agent}/package.json +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +108 -108
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/README.md +0 -95
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.d.ts +0 -38
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.js +0 -112
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/dist/index.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-core/node_modules/agent-base/package.json +0 -49
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/README.md +0 -97
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.d.ts +0 -46
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.js +0 -174
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-core/node_modules/https-proxy-agent/package.json +0 -50
- package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.d.ts +0 -15
- package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.js +0 -66
- package/node_modules/@supernova-studio/pulsar-language/node_modules/agent-base/dist/helpers.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.js +0 -175
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/node_modules/@supernova-studio/pulsar-language/node_modules/https-proxy-agent/package.json +0 -50
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/README.md +0 -69
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.d.ts +0 -15
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.js +0 -66
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/helpers.js.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.d.ts +0 -41
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.d.ts.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.js +0 -175
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/dist/index.js.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/agent-base/package.json +0 -49
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/index.d.ts +0 -47
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
- package/node_modules/@supernovaio/supernova-sdk/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/browser-bundle.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKBrand.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKBrandWriter.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystem.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystemVersion.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKDesignSystemVersionWriter.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKSupernova.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/SDKWorkspace.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKConfiguration.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/data/SDKDataBridge.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/errors/SDKSupernovaError.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKAssetGroupResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKComponentResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKDocumentationItemResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKTokenGroupResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/core/resolvers/SDKTokenResolver.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/index.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/assets/SDKAsset.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/assets/SDKRenderedAsset.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/components/SDKComponent.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/components/SDKDesignComponent.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationConfiguration.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationItem.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPage.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationPageAsset.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichText.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichTextSpan.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/SDKDocumentationRichTextSpanAttribute.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockAsset.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockAssets.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCallout.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCode.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockColumn.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockColumnItem.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockCustom.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockDivider.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedFigma.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedGeneric.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedLink.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedStorybook.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedYoutube.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockFrame.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockFrames.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockHeading.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockOrderedList.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockQuote.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockRenderCode.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockShortcut.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockShortcuts.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTab.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTabItem.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTable.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableCell.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableColumn.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTableRow.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockText.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockToken.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTokenGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockTokenList.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/blocks/SDKDocumentationPageBlockUnorderedList.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/builder/SDKDocumentationBlockBuilder.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/configuration/SDKDocumentationItemConfiguration.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/documentation/configuration/SDKDocumentationItemHeader.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementDataView.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementDataViewColumn.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementProperty.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/SDKElementPropertyOption.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/elements/values/SDKElementPropertyValue.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAlignment.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetFormat.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetScale.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKAssetScaleType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKBlurType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKBorderPosition.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationCalloutType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationEnvironment.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationGroupBehavior.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationHeadingType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationItemType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageAssetType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKDocumentationPageBlockThemeType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKFrameAlignment.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKFrameLayout.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKGradientType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKRichTextSpanAttributeType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKShadowType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKSourceType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTextCase.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTextDecoration.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKTokenType.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/enums/SDKUnit.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/SDKExporter.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKAssetGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKDesignComponentGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/groups/SDKTokenGroup.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKDesignComponentOrigin.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKFrameOrigin.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKSize.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKSource.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKTokenOrigin.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/support/SDKWorkspaceNPMRegistry.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKThemeUtilities.d.ts +0 -0
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKTokenTheme.d.ts +5 -5
- package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/themes/SDKTokenThemeOverride.d.ts +5 -5
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKBlurToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKBorderToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKColorToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKFontToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKGenericToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKGradientToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKMeasureToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKRadiusToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKShadowToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTextToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTokenCompator.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTokenValue.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/SDKTypographyToken.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenData.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/model/users/SDKUser.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Brand.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Components.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/DesignSystem.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/DesignSystemVersion.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Documentation.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Supernova.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Theme.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Accessors/Workspace.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/PluginFigmaTokens.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/PluginJSONBuilder.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/ToolDocSearch.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/Tooling/ToolMarkdownTransform.spec.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tests/helpers.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/collection/SDKDTTokenCollection.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/expression/SDKDTExpressionParser.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformCustomBlock.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/search-index/SDKToolsDocSearch.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/tools/token-transform/SDKToolsTokenTransform.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/utils/FlowUtils.d.ts +0 -0
- /package/node_modules/@supernovaio/supernova-sdk/build/{Typescript → sdk-typescript}/src/utils/StringUtils.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/LICENSE +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/README.md +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.d.ts.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.js +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/agent-base → agent-base}/dist/helpers.js.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.d.ts.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.js +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/dist/index.js.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/agent-base → agent-base}/package.json +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/LICENSE +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/README.md +0 -0
- /package/node_modules/{@supernova-studio/pulsar-language/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js +0 -0
- /package/node_modules/{@supernova-studio/pulsar-core/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
|
@@ -100,6 +100,10 @@ class AxiosHeaders {
|
|
|
100
100
|
setHeaders(header, valueOrRewrite)
|
|
101
101
|
} else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
102
102
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
103
|
+
} else if (utils.isHeaders(header)) {
|
|
104
|
+
for (const [key, value] of header.entries()) {
|
|
105
|
+
setHeader(value, key, rewrite);
|
|
106
|
+
}
|
|
103
107
|
} else {
|
|
104
108
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
105
109
|
}
|
|
@@ -37,7 +37,7 @@ const defaults = {
|
|
|
37
37
|
|
|
38
38
|
transitional: transitionalDefaults,
|
|
39
39
|
|
|
40
|
-
adapter: ['xhr', 'http'],
|
|
40
|
+
adapter: ['xhr', 'http', 'fetch'],
|
|
41
41
|
|
|
42
42
|
transformRequest: [function transformRequest(data, headers) {
|
|
43
43
|
const contentType = headers.getContentType() || '';
|
|
@@ -58,7 +58,8 @@ const defaults = {
|
|
|
58
58
|
utils.isBuffer(data) ||
|
|
59
59
|
utils.isStream(data) ||
|
|
60
60
|
utils.isFile(data) ||
|
|
61
|
-
utils.isBlob(data)
|
|
61
|
+
utils.isBlob(data) ||
|
|
62
|
+
utils.isReadableStream(data)
|
|
62
63
|
) {
|
|
63
64
|
return data;
|
|
64
65
|
}
|
|
@@ -101,6 +102,10 @@ const defaults = {
|
|
|
101
102
|
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
102
103
|
const JSONRequested = this.responseType === 'json';
|
|
103
104
|
|
|
105
|
+
if (utils.isResponse(data) || utils.isReadableStream(data)) {
|
|
106
|
+
return data;
|
|
107
|
+
}
|
|
108
|
+
|
|
104
109
|
if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
|
|
105
110
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
106
111
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.7.7";
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import stream from 'stream';
|
|
4
4
|
import utils from '../utils.js';
|
|
5
|
-
import throttle from './throttle.js';
|
|
6
|
-
import speedometer from './speedometer.js';
|
|
7
5
|
|
|
8
6
|
const kInternals = Symbol('internals');
|
|
9
7
|
|
|
@@ -24,12 +22,8 @@ class AxiosTransformStream extends stream.Transform{
|
|
|
24
22
|
readableHighWaterMark: options.chunkSize
|
|
25
23
|
});
|
|
26
24
|
|
|
27
|
-
const self = this;
|
|
28
|
-
|
|
29
25
|
const internals = this[kInternals] = {
|
|
30
|
-
length: options.length,
|
|
31
26
|
timeWindow: options.timeWindow,
|
|
32
|
-
ticksRate: options.ticksRate,
|
|
33
27
|
chunkSize: options.chunkSize,
|
|
34
28
|
maxRate: options.maxRate,
|
|
35
29
|
minChunkSize: options.minChunkSize,
|
|
@@ -41,8 +35,6 @@ class AxiosTransformStream extends stream.Transform{
|
|
|
41
35
|
onReadCallback: null
|
|
42
36
|
};
|
|
43
37
|
|
|
44
|
-
const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow);
|
|
45
|
-
|
|
46
38
|
this.on('newListener', event => {
|
|
47
39
|
if (event === 'progress') {
|
|
48
40
|
if (!internals.isCaptured) {
|
|
@@ -50,38 +42,6 @@ class AxiosTransformStream extends stream.Transform{
|
|
|
50
42
|
}
|
|
51
43
|
}
|
|
52
44
|
});
|
|
53
|
-
|
|
54
|
-
let bytesNotified = 0;
|
|
55
|
-
|
|
56
|
-
internals.updateProgress = throttle(function throttledHandler() {
|
|
57
|
-
const totalBytes = internals.length;
|
|
58
|
-
const bytesTransferred = internals.bytesSeen;
|
|
59
|
-
const progressBytes = bytesTransferred - bytesNotified;
|
|
60
|
-
if (!progressBytes || self.destroyed) return;
|
|
61
|
-
|
|
62
|
-
const rate = _speedometer(progressBytes);
|
|
63
|
-
|
|
64
|
-
bytesNotified = bytesTransferred;
|
|
65
|
-
|
|
66
|
-
process.nextTick(() => {
|
|
67
|
-
self.emit('progress', {
|
|
68
|
-
'loaded': bytesTransferred,
|
|
69
|
-
'total': totalBytes,
|
|
70
|
-
'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined,
|
|
71
|
-
'bytes': progressBytes,
|
|
72
|
-
'rate': rate ? rate : undefined,
|
|
73
|
-
'estimated': rate && totalBytes && bytesTransferred <= totalBytes ?
|
|
74
|
-
(totalBytes - bytesTransferred) / rate : undefined
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
}, internals.ticksRate);
|
|
78
|
-
|
|
79
|
-
const onFinish = () => {
|
|
80
|
-
internals.updateProgress(true);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
this.once('end', onFinish);
|
|
84
|
-
this.once('error', onFinish);
|
|
85
45
|
}
|
|
86
46
|
|
|
87
47
|
_read(size) {
|
|
@@ -95,7 +55,6 @@ class AxiosTransformStream extends stream.Transform{
|
|
|
95
55
|
}
|
|
96
56
|
|
|
97
57
|
_transform(chunk, encoding, callback) {
|
|
98
|
-
const self = this;
|
|
99
58
|
const internals = this[kInternals];
|
|
100
59
|
const maxRate = internals.maxRate;
|
|
101
60
|
|
|
@@ -107,16 +66,14 @@ class AxiosTransformStream extends stream.Transform{
|
|
|
107
66
|
const bytesThreshold = (maxRate / divider);
|
|
108
67
|
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
109
68
|
|
|
110
|
-
|
|
69
|
+
const pushChunk = (_chunk, _callback) => {
|
|
111
70
|
const bytes = Buffer.byteLength(_chunk);
|
|
112
71
|
internals.bytesSeen += bytes;
|
|
113
72
|
internals.bytes += bytes;
|
|
114
73
|
|
|
115
|
-
|
|
116
|
-
internals.updateProgress();
|
|
117
|
-
}
|
|
74
|
+
internals.isCaptured && this.emit('progress', internals.bytesSeen);
|
|
118
75
|
|
|
119
|
-
if (
|
|
76
|
+
if (this.push(_chunk)) {
|
|
120
77
|
process.nextTick(_callback);
|
|
121
78
|
} else {
|
|
122
79
|
internals.onReadCallback = () => {
|
|
@@ -181,11 +138,6 @@ class AxiosTransformStream extends stream.Transform{
|
|
|
181
138
|
}
|
|
182
139
|
});
|
|
183
140
|
}
|
|
184
|
-
|
|
185
|
-
setLength(length) {
|
|
186
|
-
this[kInternals].length = +length;
|
|
187
|
-
return this;
|
|
188
|
-
}
|
|
189
141
|
}
|
|
190
142
|
|
|
191
143
|
export default AxiosTransformStream;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import CanceledError from "../cancel/CanceledError.js";
|
|
2
|
+
import AxiosError from "../core/AxiosError.js";
|
|
3
|
+
import utils from '../utils.js';
|
|
4
|
+
|
|
5
|
+
const composeSignals = (signals, timeout) => {
|
|
6
|
+
const {length} = (signals = signals ? signals.filter(Boolean) : []);
|
|
7
|
+
|
|
8
|
+
if (timeout || length) {
|
|
9
|
+
let controller = new AbortController();
|
|
10
|
+
|
|
11
|
+
let aborted;
|
|
12
|
+
|
|
13
|
+
const onabort = function (reason) {
|
|
14
|
+
if (!aborted) {
|
|
15
|
+
aborted = true;
|
|
16
|
+
unsubscribe();
|
|
17
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
18
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
let timer = timeout && setTimeout(() => {
|
|
23
|
+
timer = null;
|
|
24
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))
|
|
25
|
+
}, timeout)
|
|
26
|
+
|
|
27
|
+
const unsubscribe = () => {
|
|
28
|
+
if (signals) {
|
|
29
|
+
timer && clearTimeout(timer);
|
|
30
|
+
timer = null;
|
|
31
|
+
signals.forEach(signal => {
|
|
32
|
+
signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
|
|
33
|
+
});
|
|
34
|
+
signals = null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
signals.forEach((signal) => signal.addEventListener('abort', onabort));
|
|
39
|
+
|
|
40
|
+
const {signal} = controller;
|
|
41
|
+
|
|
42
|
+
signal.unsubscribe = () => utils.asap(unsubscribe);
|
|
43
|
+
|
|
44
|
+
return signal;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default composeSignals;
|
|
@@ -8,7 +8,7 @@ export default platform.hasStandardBrowserEnv ?
|
|
|
8
8
|
// Standard browser envs have full support of the APIs needed to test
|
|
9
9
|
// whether the request URL is of the same origin as current location.
|
|
10
10
|
(function standardBrowserEnv() {
|
|
11
|
-
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
11
|
+
const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
|
|
12
12
|
const urlParsingNode = document.createElement('a');
|
|
13
13
|
let originURL;
|
|
14
14
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import speedometer from "./speedometer.js";
|
|
2
|
+
import throttle from "./throttle.js";
|
|
3
|
+
import utils from "../utils.js";
|
|
4
|
+
|
|
5
|
+
export const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
6
|
+
let bytesNotified = 0;
|
|
7
|
+
const _speedometer = speedometer(50, 250);
|
|
8
|
+
|
|
9
|
+
return throttle(e => {
|
|
10
|
+
const loaded = e.loaded;
|
|
11
|
+
const total = e.lengthComputable ? e.total : undefined;
|
|
12
|
+
const progressBytes = loaded - bytesNotified;
|
|
13
|
+
const rate = _speedometer(progressBytes);
|
|
14
|
+
const inRange = loaded <= total;
|
|
15
|
+
|
|
16
|
+
bytesNotified = loaded;
|
|
17
|
+
|
|
18
|
+
const data = {
|
|
19
|
+
loaded,
|
|
20
|
+
total,
|
|
21
|
+
progress: total ? (loaded / total) : undefined,
|
|
22
|
+
bytes: progressBytes,
|
|
23
|
+
rate: rate ? rate : undefined,
|
|
24
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
|
|
25
|
+
event: e,
|
|
26
|
+
lengthComputable: total != null,
|
|
27
|
+
[isDownloadStream ? 'download' : 'upload']: true
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
listener(data);
|
|
31
|
+
}, freq);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const progressEventDecorator = (total, throttled) => {
|
|
35
|
+
const lengthComputable = total != null;
|
|
36
|
+
|
|
37
|
+
return [(loaded) => throttled[0]({
|
|
38
|
+
lengthComputable,
|
|
39
|
+
total,
|
|
40
|
+
loaded
|
|
41
|
+
}), throttled[1]];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import platform from "../platform/index.js";
|
|
2
|
+
import utils from "../utils.js";
|
|
3
|
+
import isURLSameOrigin from "./isURLSameOrigin.js";
|
|
4
|
+
import cookies from "./cookies.js";
|
|
5
|
+
import buildFullPath from "../core/buildFullPath.js";
|
|
6
|
+
import mergeConfig from "../core/mergeConfig.js";
|
|
7
|
+
import AxiosHeaders from "../core/AxiosHeaders.js";
|
|
8
|
+
import buildURL from "./buildURL.js";
|
|
9
|
+
|
|
10
|
+
export default (config) => {
|
|
11
|
+
const newConfig = mergeConfig({}, config);
|
|
12
|
+
|
|
13
|
+
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
14
|
+
|
|
15
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
16
|
+
|
|
17
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
18
|
+
|
|
19
|
+
// HTTP basic authentication
|
|
20
|
+
if (auth) {
|
|
21
|
+
headers.set('Authorization', 'Basic ' +
|
|
22
|
+
btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let contentType;
|
|
27
|
+
|
|
28
|
+
if (utils.isFormData(data)) {
|
|
29
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
30
|
+
headers.setContentType(undefined); // Let the browser set it
|
|
31
|
+
} else if ((contentType = headers.getContentType()) !== false) {
|
|
32
|
+
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
33
|
+
const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
|
|
34
|
+
headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Add xsrf header
|
|
39
|
+
// This is only done if running in a standard browser environment.
|
|
40
|
+
// Specifically not if we're in a web worker, or react-native.
|
|
41
|
+
|
|
42
|
+
if (platform.hasStandardBrowserEnv) {
|
|
43
|
+
withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
44
|
+
|
|
45
|
+
if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {
|
|
46
|
+
// Add xsrf header
|
|
47
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
48
|
+
|
|
49
|
+
if (xsrfValue) {
|
|
50
|
+
headers.set(xsrfHeaderName, xsrfValue);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return newConfig;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Throttle decorator
|
|
5
3
|
* @param {Function} fn
|
|
@@ -8,26 +6,39 @@
|
|
|
8
6
|
*/
|
|
9
7
|
function throttle(fn, freq) {
|
|
10
8
|
let timestamp = 0;
|
|
11
|
-
|
|
12
|
-
let
|
|
13
|
-
|
|
9
|
+
let threshold = 1000 / freq;
|
|
10
|
+
let lastArgs;
|
|
11
|
+
let timer;
|
|
12
|
+
|
|
13
|
+
const invoke = (args, now = Date.now()) => {
|
|
14
|
+
timestamp = now;
|
|
15
|
+
lastArgs = null;
|
|
16
|
+
if (timer) {
|
|
17
|
+
clearTimeout(timer);
|
|
18
|
+
timer = null;
|
|
19
|
+
}
|
|
20
|
+
fn.apply(null, args);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const throttled = (...args) => {
|
|
14
24
|
const now = Date.now();
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
const passed = now - timestamp;
|
|
26
|
+
if ( passed >= threshold) {
|
|
27
|
+
invoke(args, now);
|
|
28
|
+
} else {
|
|
29
|
+
lastArgs = args;
|
|
30
|
+
if (!timer) {
|
|
31
|
+
timer = setTimeout(() => {
|
|
32
|
+
timer = null;
|
|
33
|
+
invoke(lastArgs)
|
|
34
|
+
}, threshold - passed);
|
|
19
35
|
}
|
|
20
|
-
timestamp = now;
|
|
21
|
-
return fn.apply(null, args);
|
|
22
36
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}, threshold - (now - timestamp));
|
|
29
|
-
}
|
|
30
|
-
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
40
|
+
|
|
41
|
+
return [throttled, flush];
|
|
31
42
|
}
|
|
32
43
|
|
|
33
44
|
export default throttle;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
|
|
2
|
+
export const streamChunk = function* (chunk, chunkSize) {
|
|
3
|
+
let len = chunk.byteLength;
|
|
4
|
+
|
|
5
|
+
if (!chunkSize || len < chunkSize) {
|
|
6
|
+
yield chunk;
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
let pos = 0;
|
|
11
|
+
let end;
|
|
12
|
+
|
|
13
|
+
while (pos < len) {
|
|
14
|
+
end = pos + chunkSize;
|
|
15
|
+
yield chunk.slice(pos, end);
|
|
16
|
+
pos = end;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const readBytes = async function* (iterable, chunkSize) {
|
|
21
|
+
for await (const chunk of readStream(iterable)) {
|
|
22
|
+
yield* streamChunk(chunk, chunkSize);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const readStream = async function* (stream) {
|
|
27
|
+
if (stream[Symbol.asyncIterator]) {
|
|
28
|
+
yield* stream;
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const reader = stream.getReader();
|
|
33
|
+
try {
|
|
34
|
+
for (;;) {
|
|
35
|
+
const {done, value} = await reader.read();
|
|
36
|
+
if (done) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
yield value;
|
|
40
|
+
}
|
|
41
|
+
} finally {
|
|
42
|
+
await reader.cancel();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
47
|
+
const iterator = readBytes(stream, chunkSize);
|
|
48
|
+
|
|
49
|
+
let bytes = 0;
|
|
50
|
+
let done;
|
|
51
|
+
let _onFinish = (e) => {
|
|
52
|
+
if (!done) {
|
|
53
|
+
done = true;
|
|
54
|
+
onFinish && onFinish(e);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return new ReadableStream({
|
|
59
|
+
async pull(controller) {
|
|
60
|
+
try {
|
|
61
|
+
const {done, value} = await iterator.next();
|
|
62
|
+
|
|
63
|
+
if (done) {
|
|
64
|
+
_onFinish();
|
|
65
|
+
controller.close();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
let len = value.byteLength;
|
|
70
|
+
if (onProgress) {
|
|
71
|
+
let loadedBytes = bytes += len;
|
|
72
|
+
onProgress(loadedBytes);
|
|
73
|
+
}
|
|
74
|
+
controller.enqueue(new Uint8Array(value));
|
|
75
|
+
} catch (err) {
|
|
76
|
+
_onFinish(err);
|
|
77
|
+
throw err;
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
cancel(reason) {
|
|
81
|
+
_onFinish(reason);
|
|
82
|
+
return iterator.return();
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
highWaterMark: 2
|
|
86
|
+
})
|
|
87
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
2
2
|
|
|
3
|
+
const _navigator = typeof navigator === 'object' && navigator || undefined;
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* Determine if we're running in a standard browser environment
|
|
5
7
|
*
|
|
@@ -17,10 +19,8 @@ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'unde
|
|
|
17
19
|
*
|
|
18
20
|
* @returns {boolean}
|
|
19
21
|
*/
|
|
20
|
-
const hasStandardBrowserEnv =
|
|
21
|
-
(product)
|
|
22
|
-
return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
|
|
23
|
-
})(typeof navigator !== 'undefined' && navigator.product);
|
|
22
|
+
const hasStandardBrowserEnv = hasBrowserEnv &&
|
|
23
|
+
(!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Determine if we're running in a standard browser webWorker environment
|
|
@@ -40,8 +40,12 @@ const hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
40
40
|
);
|
|
41
41
|
})();
|
|
42
42
|
|
|
43
|
+
const origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
44
|
+
|
|
43
45
|
export {
|
|
44
46
|
hasBrowserEnv,
|
|
45
47
|
hasStandardBrowserWebWorkerEnv,
|
|
46
|
-
hasStandardBrowserEnv
|
|
48
|
+
hasStandardBrowserEnv,
|
|
49
|
+
_navigator as navigator,
|
|
50
|
+
origin
|
|
47
51
|
}
|
|
@@ -209,6 +209,8 @@ const isFormData = (thing) => {
|
|
|
209
209
|
*/
|
|
210
210
|
const isURLSearchParams = kindOfTest('URLSearchParams');
|
|
211
211
|
|
|
212
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
|
|
213
|
+
|
|
212
214
|
/**
|
|
213
215
|
* Trim excess whitespace off the beginning and end of a string
|
|
214
216
|
*
|
|
@@ -597,8 +599,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
597
599
|
const noop = () => {}
|
|
598
600
|
|
|
599
601
|
const toFiniteNumber = (value, defaultValue) => {
|
|
600
|
-
value = +value;
|
|
601
|
-
return Number.isFinite(value) ? value : defaultValue;
|
|
602
|
+
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
602
603
|
}
|
|
603
604
|
|
|
604
605
|
const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
|
|
@@ -668,6 +669,36 @@ const isAsyncFn = kindOfTest('AsyncFunction');
|
|
|
668
669
|
const isThenable = (thing) =>
|
|
669
670
|
thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
670
671
|
|
|
672
|
+
// original code
|
|
673
|
+
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
674
|
+
|
|
675
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
676
|
+
if (setImmediateSupported) {
|
|
677
|
+
return setImmediate;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
681
|
+
_global.addEventListener("message", ({source, data}) => {
|
|
682
|
+
if (source === _global && data === token) {
|
|
683
|
+
callbacks.length && callbacks.shift()();
|
|
684
|
+
}
|
|
685
|
+
}, false);
|
|
686
|
+
|
|
687
|
+
return (cb) => {
|
|
688
|
+
callbacks.push(cb);
|
|
689
|
+
_global.postMessage(token, "*");
|
|
690
|
+
}
|
|
691
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
692
|
+
})(
|
|
693
|
+
typeof setImmediate === 'function',
|
|
694
|
+
isFunction(_global.postMessage)
|
|
695
|
+
);
|
|
696
|
+
|
|
697
|
+
const asap = typeof queueMicrotask !== 'undefined' ?
|
|
698
|
+
queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
|
|
699
|
+
|
|
700
|
+
// *********************
|
|
701
|
+
|
|
671
702
|
export default {
|
|
672
703
|
isArray,
|
|
673
704
|
isArrayBuffer,
|
|
@@ -679,6 +710,10 @@ export default {
|
|
|
679
710
|
isBoolean,
|
|
680
711
|
isObject,
|
|
681
712
|
isPlainObject,
|
|
713
|
+
isReadableStream,
|
|
714
|
+
isRequest,
|
|
715
|
+
isResponse,
|
|
716
|
+
isHeaders,
|
|
682
717
|
isUndefined,
|
|
683
718
|
isDate,
|
|
684
719
|
isFile,
|
|
@@ -719,5 +754,7 @@ export default {
|
|
|
719
754
|
isSpecCompliantForm,
|
|
720
755
|
toJSONObject,
|
|
721
756
|
isAsyncFn,
|
|
722
|
-
isThenable
|
|
757
|
+
isThenable,
|
|
758
|
+
setImmediate: _setImmediate,
|
|
759
|
+
asap
|
|
723
760
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -135,7 +135,8 @@
|
|
|
135
135
|
"stream-throttle": "^0.1.3",
|
|
136
136
|
"string-replace-async": "^3.0.2",
|
|
137
137
|
"terser-webpack-plugin": "^4.2.3",
|
|
138
|
-
"typescript": "^4.9.5"
|
|
138
|
+
"typescript": "^4.9.5",
|
|
139
|
+
"@rollup/plugin-alias": "^5.1.0"
|
|
139
140
|
},
|
|
140
141
|
"browser": {
|
|
141
142
|
"./lib/adapters/http.js": "./lib/helpers/null.js",
|
|
@@ -159,8 +160,8 @@
|
|
|
159
160
|
"contributors": [
|
|
160
161
|
"Matt Zabriskie (https://github.com/mzabriskie)",
|
|
161
162
|
"Nick Uraltsev (https://github.com/nickuraltsev)",
|
|
162
|
-
"Jay (https://github.com/jasonsaayman)",
|
|
163
163
|
"Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
|
|
164
|
+
"Jay (https://github.com/jasonsaayman)",
|
|
164
165
|
"Emily Morehouse (https://github.com/emilyemorehouse)",
|
|
165
166
|
"Rubén Norte (https://github.com/rubennorte)",
|
|
166
167
|
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
|
@@ -1 +1 @@
|
|
|
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;AAG7B,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAKhD,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/E,KAAK,cAAc,GAAG;IACrB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACpD,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,GAC/C,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACR,CAAC,MAAM,cAAc,CAAC,CAAC;AAExB,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI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AiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACpD,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,GAC/C,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACR,CAAC,MAAM,cAAc,CAAC,CAAC;AAExB,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GACrD,IAAI,CAAC,YAAY,GAAG;IACnB,OAAO,CAAC,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,CAAC;CAC5D,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,qBAAa,eAAe,CAAC,GAAG,SAAS,MAAM,CAAE,SAAQ,KAAK;IAC7D,MAAM,CAAC,SAAS,6BAA8B;IAE9C,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC;IACpB,YAAY,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,CAAC;IAChE,WAAW,EAAE,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC,iBAAiB,CAAC;gBAE/C,KAAK,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,sBAAsB,CAAC,GAAG,CAAC;IA0BhE;;;OAGG;IACG,OAAO,CACZ,GAAG,EAAE,IAAI,CAAC,aAAa,EACvB,IAAI,EAAE,gBAAgB,GACpB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;CA0GtB"}
|
|
@@ -85,7 +85,7 @@ class HttpsProxyAgent extends agent_base_1.Agent {
|
|
|
85
85
|
const servername = this.connectOpts.servername || this.connectOpts.host;
|
|
86
86
|
socket = tls.connect({
|
|
87
87
|
...this.connectOpts,
|
|
88
|
-
servername
|
|
88
|
+
servername,
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
@@ -126,7 +126,7 @@ class HttpsProxyAgent extends agent_base_1.Agent {
|
|
|
126
126
|
return tls.connect({
|
|
127
127
|
...omit(opts, 'host', 'path', 'port'),
|
|
128
128
|
socket,
|
|
129
|
-
servername
|
|
129
|
+
servername,
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
return socket;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yCAA2B;AAE3B,oDAA4B;AAC5B,kDAAgC;AAChC,2CAAqD;AACrD,6BAA0B;AAC1B,iEAA4D;AAG5D,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,mBAAmB,CAAC,CAAC;AAqB/C;;;;;;;;;;;GAWG;AACH,MAAa,eAAoC,SAAQ,kBAAK;IAO7D,YAAY,KAAgB,EAAE,IAAkC;QAC/D,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,SAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAChE,IAAI,CAAC,YAAY,GAAG,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC;QACxC,KAAK,CAAC,2CAA2C,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpE,4CAA4C;QAC5C,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAC5D,UAAU,EACV,EAAE,CACF,CAAC;QACF,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI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CAAC,CAAC;YACjB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACnB,CAAC;;AAhJM,yBAAS,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AADlC,0CAAe;AAoJ5B,SAAS,MAAM,CAAC,MAAkC;IACjD,MAAM,CAAC,MAAM,EAAE,CAAC;AACjB,CAAC;AAED,SAAS,IAAI,CACZ,GAAM,EACN,GAAG,IAAO;IAIV,MAAM,GAAG,GAAG,EAEX,CAAC;IACF,IAAI,GAAqB,CAAC;IAC1B,KAAK,GAAG,IAAI,GAAG,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACxB,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;SACpB;KACD;IACD,OAAO,GAAG,CAAC;AACZ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "https-proxy-agent",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.5",
|
|
4
4
|
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"jest": "^29.5.0",
|
|
35
35
|
"ts-jest": "^29.1.0",
|
|
36
36
|
"typescript": "^5.0.4",
|
|
37
|
-
"proxy": "2.
|
|
37
|
+
"proxy": "2.2.0",
|
|
38
38
|
"tsconfig": "0.0.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
package/oclif.manifest.json
CHANGED