@openclaw/msteams 2026.6.5 → 2026.6.6-beta.2
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/api.js +1 -1
- package/dist/{channel--oT3fyD5.js → channel-FzXHnZIM.js} +16 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-KNuY2Oaw.js → channel.runtime-CaeTVmSx.js} +2 -2
- package/dist/{probe-C-rWMb-m.js → probe-D-pKTqs9.js} +1 -1
- package/dist/secret-contract-api.js +34 -1
- package/dist/{src-CLsoqMj1.js → src-C647R5Nw.js} +2 -2
- package/node_modules/@azure/core-client/dist/browser/authorizeRequestOnTenantChallenge.js +1 -2
- package/node_modules/@azure/core-client/dist/browser/authorizeRequestOnTenantChallenge.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/base64.d.ts +2 -6
- package/node_modules/@azure/core-client/dist/browser/base64.js +7 -15
- package/node_modules/@azure/core-client/dist/browser/base64.js.map +1 -0
- package/node_modules/@azure/core-client/dist/browser/index.d.ts +5 -5
- package/node_modules/@azure/core-client/dist/browser/index.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/interfaceHelpers.js +1 -2
- package/node_modules/@azure/core-client/dist/browser/interfaceHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/operationHelpers.js +8 -4
- package/node_modules/@azure/core-client/dist/browser/operationHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/serializationPolicy.js +1 -1
- package/node_modules/@azure/core-client/dist/browser/serializationPolicy.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/serializer.js +32 -11
- package/node_modules/@azure/core-client/dist/browser/serializer.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/serviceClient.js +2 -2
- package/node_modules/@azure/core-client/dist/browser/serviceClient.js.map +1 -1
- package/node_modules/@azure/core-client/dist/browser/{state.d.ts → state-web.d.mts} +1 -1
- package/node_modules/@azure/core-client/dist/browser/{state.js → state-web.mjs} +1 -1
- package/node_modules/@azure/core-client/dist/browser/state-web.mjs.map +1 -0
- package/node_modules/@azure/core-client/dist/browser/urlHelpers.js +2 -1
- package/node_modules/@azure/core-client/dist/browser/urlHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/authorizeRequestOnTenantChallenge.js +1 -2
- package/node_modules/@azure/core-client/dist/commonjs/authorizeRequestOnTenantChallenge.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/base64.d.ts +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/base64.js +6 -6
- package/node_modules/@azure/core-client/dist/commonjs/base64.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/index.d.ts +5 -5
- package/node_modules/@azure/core-client/dist/commonjs/index.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/interfaceHelpers.js +1 -2
- package/node_modules/@azure/core-client/dist/commonjs/interfaceHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/operationHelpers.js +10 -6
- package/node_modules/@azure/core-client/dist/commonjs/operationHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/serializationPolicy.js +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/serializationPolicy.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/serializer.js +32 -11
- package/node_modules/@azure/core-client/dist/commonjs/serializer.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/serviceClient.js +2 -2
- package/node_modules/@azure/core-client/dist/commonjs/serviceClient.js.map +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/state-cjs.d.ts +8 -0
- package/node_modules/@azure/core-client/dist/commonjs/{state.js → state-cjs.js} +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/state-cjs.js.map +1 -0
- package/node_modules/@azure/core-client/dist/commonjs/tsdoc-metadata.json +1 -1
- package/node_modules/@azure/core-client/dist/commonjs/urlHelpers.js +2 -1
- package/node_modules/@azure/core-client/dist/commonjs/urlHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/authorizeRequestOnTenantChallenge.js +1 -2
- package/node_modules/@azure/core-client/dist/esm/authorizeRequestOnTenantChallenge.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/base64.d.ts +1 -1
- package/node_modules/@azure/core-client/dist/esm/base64.js +6 -6
- package/node_modules/@azure/core-client/dist/esm/base64.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/index.d.ts +5 -5
- package/node_modules/@azure/core-client/dist/esm/index.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/interfaceHelpers.js +1 -2
- package/node_modules/@azure/core-client/dist/esm/interfaceHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/operationHelpers.js +7 -3
- package/node_modules/@azure/core-client/dist/esm/operationHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/serializationPolicy.js +1 -1
- package/node_modules/@azure/core-client/dist/esm/serializationPolicy.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/serializer.js +32 -11
- package/node_modules/@azure/core-client/dist/esm/serializer.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/serviceClient.js +2 -2
- package/node_modules/@azure/core-client/dist/esm/serviceClient.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/state-cjs.d.ts +8 -0
- package/node_modules/@azure/core-client/dist/esm/state-cjs.js +9 -0
- package/node_modules/@azure/core-client/dist/esm/state-cjs.js.map +1 -0
- package/node_modules/@azure/core-client/dist/esm/state.js +1 -1
- package/node_modules/@azure/core-client/dist/esm/state.js.map +1 -1
- package/node_modules/@azure/core-client/dist/esm/urlHelpers.js +2 -1
- package/node_modules/@azure/core-client/dist/esm/urlHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/authorizeRequestOnTenantChallenge.js +1 -2
- package/node_modules/@azure/core-client/dist/react-native/authorizeRequestOnTenantChallenge.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/base64.d.ts +1 -1
- package/node_modules/@azure/core-client/dist/react-native/base64.js +6 -6
- package/node_modules/@azure/core-client/dist/react-native/base64.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/index.d.ts +5 -5
- package/node_modules/@azure/core-client/dist/react-native/index.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/interfaceHelpers.js +1 -2
- package/node_modules/@azure/core-client/dist/react-native/interfaceHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/operationHelpers.js +8 -4
- package/node_modules/@azure/core-client/dist/react-native/operationHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/serializationPolicy.js +1 -1
- package/node_modules/@azure/core-client/dist/react-native/serializationPolicy.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/serializer.js +32 -11
- package/node_modules/@azure/core-client/dist/react-native/serializer.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/serviceClient.js +2 -2
- package/node_modules/@azure/core-client/dist/react-native/serviceClient.js.map +1 -1
- package/node_modules/@azure/core-client/dist/react-native/state-web.d.mts +8 -0
- package/node_modules/@azure/core-client/dist/react-native/state-web.mjs +9 -0
- package/node_modules/@azure/core-client/dist/react-native/state-web.mjs.map +1 -0
- package/node_modules/@azure/core-client/dist/react-native/urlHelpers.js +2 -1
- package/node_modules/@azure/core-client/dist/react-native/urlHelpers.js.map +1 -1
- package/node_modules/@azure/core-client/package.json +31 -30
- package/node_modules/@azure/core-rest-pipeline/dist/browser/constants.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/constants.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/defaultHttpClient.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/index.d.ts +1 -12
- package/node_modules/@azure/core-rest-pipeline/dist/browser/index.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/interfaces.d.ts +17 -16
- package/node_modules/@azure/core-rest-pipeline/dist/browser/interfaces.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/bearerTokenAuthenticationPolicy.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/ndJsonPolicy.js +1 -3
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/ndJsonPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/policies/wrapAbortSignalLikePolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.d.mts +15 -0
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.mjs +28 -0
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/createFile-browser.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.d.ts +12 -16
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.js +28 -32
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/file.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/tokenCycler.js +5 -2
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/tokenCycler.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgent.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgent.js.map +1 -1
- package/node_modules/{@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform.d.ts → @azure/core-rest-pipeline/dist/browser/util/userAgentPlatform-browser.d.mts} +1 -1
- package/node_modules/{@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform.js → @azure/core-rest-pipeline/dist/browser/util/userAgentPlatform-browser.mjs} +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform-browser.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/wrapAbortSignal.js +4 -2
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/wrapAbortSignal.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/constants.js +2 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/constants.js.map +2 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/defaultHttpClient.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/defaultHttpClient.js.map +2 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/httpHeaders.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/httpHeaders.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts +1 -12
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/index.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.d.ts +17 -16
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/interfaces.js.map +2 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/log.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/log.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipeline.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipeline.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipelineRequest.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/pipelineRequest.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/agentPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/agentPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/auxiliaryAuthenticationHeaderPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/auxiliaryAuthenticationHeaderPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/bearerTokenAuthenticationPolicy.js +2 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/bearerTokenAuthenticationPolicy.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/decompressResponsePolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/decompressResponsePolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/defaultRetryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/defaultRetryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/exponentialRetryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/exponentialRetryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/formDataPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/formDataPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/logPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/logPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/multipartPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/multipartPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/ndJsonPolicy.js +2 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/ndJsonPolicy.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/proxyPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/proxyPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/redirectPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/redirectPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/retryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/retryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/setClientRequestIdPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/setClientRequestIdPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/systemErrorRetryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/systemErrorRetryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/throttlingRetryPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/throttlingRetryPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tlsPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tlsPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tracingPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/tracingPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/userAgentPolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/userAgentPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/wrapAbortSignalLikePolicy.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/wrapAbortSignalLikePolicy.js.map +2 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/restError.js +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/restError.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/tsdoc-metadata.json +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/createFile.d.ts +15 -0
- package/node_modules/{@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.js → @azure/core-rest-pipeline/dist/commonjs/util/createFile.js} +10 -7
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/createFile.js.map +7 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.d.ts +12 -16
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.js +25 -20
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/file.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/tokenCycler.js +6 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/tokenCycler.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgent.js +4 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgent.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.d.ts +8 -0
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.js +7 -7
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/userAgentPlatform.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/wrapAbortSignal.js +7 -2
- package/node_modules/@azure/core-rest-pipeline/dist/commonjs/util/wrapAbortSignal.js.map +3 -3
- package/node_modules/@azure/core-rest-pipeline/dist/esm/constants.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/constants.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/defaultHttpClient.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/index.d.ts +1 -12
- package/node_modules/@azure/core-rest-pipeline/dist/esm/index.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/interfaces.d.ts +17 -16
- package/node_modules/@azure/core-rest-pipeline/dist/esm/interfaces.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/bearerTokenAuthenticationPolicy.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/ndJsonPolicy.js +1 -3
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/ndJsonPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/policies/wrapAbortSignalLikePolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.d.ts +15 -0
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.js +19 -0
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/createFile.js.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.d.ts +12 -16
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.js +28 -32
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/file.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/tokenCycler.js +5 -2
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/tokenCycler.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgent.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.d.ts +8 -0
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.js +6 -7
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/wrapAbortSignal.js +4 -2
- package/node_modules/@azure/core-rest-pipeline/dist/esm/util/wrapAbortSignal.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/constants.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/constants.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/defaultHttpClient.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/defaultHttpClient.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/index.d.ts +1 -12
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/index.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/interfaces.d.ts +17 -16
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/interfaces.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/bearerTokenAuthenticationPolicy.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/bearerTokenAuthenticationPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/ndJsonPolicy.js +1 -3
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/ndJsonPolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/wrapAbortSignalLikePolicy.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/policies/wrapAbortSignalLikePolicy.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.d.mts +15 -0
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.mjs +28 -0
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/createFile-browser.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.d.ts +12 -16
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.js +28 -32
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/file.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/tokenCycler.js +5 -2
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/tokenCycler.js.map +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgent.js +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgent.js.map +1 -1
- package/node_modules/{@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform.d.ts → @azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform-react-native.d.mts} +1 -1
- package/node_modules/{@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform.js → @azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform-react-native.mjs} +1 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform-react-native.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/{wrapAbortSignal.d.ts → wrapAbortSignal-rn.d.mts} +7 -2
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/{wrapAbortSignal.js → wrapAbortSignal-rn.mjs} +11 -5
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/wrapAbortSignal-rn.mjs.map +1 -0
- package/node_modules/@azure/core-rest-pipeline/package.json +37 -14
- package/node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.mjs +44 -2
- package/node_modules/@azure/msal-browser/dist/app/PublicClientApplication.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeStatusCodes.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/AccountManager.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.mjs +12 -1
- package/node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CacheKeys.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/CookieStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/EncryptedData.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/LocalStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/MemoryStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/SessionStorage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/cache/TokenCache.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/config/Configuration.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/controllers/StandardController.mjs +3 -3
- package/node_modules/@azure/msal-browser/dist/controllers/StandardController.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/CryptoOps.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthConstants.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/index.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/encode/Base64Decode.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/encode/Base64Encode.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthError.mjs +4 -4
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventMessage.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/event/EventType.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/index.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs +4 -3
- package/node_modules/@azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.mjs +27 -7
- package/node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.mjs +6 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs +11 -4
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.mjs +2 -1
- package/node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/log-strings-mapping.json +7 -3
- package/node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/BridgeProxy.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/BridgeStatusCode.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/navigation/NavigationClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/network/FetchClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs +10 -2
- package/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-browser/dist/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/redirect_bridge/index.mjs +4 -5
- package/node_modules/@azure/msal-browser/dist/redirect_bridge/index.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/request/RequestHelpers.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/response/ResponseHandler.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserConstants.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.mjs +15 -5
- package/node_modules/@azure/msal-browser/dist/utils/BrowserUtils.mjs.map +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/Helpers.mjs +1 -1
- package/node_modules/@azure/msal-browser/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/log-strings-mapping.json +15 -11
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.cjs +238 -132
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.js +238 -132
- package/node_modules/@azure/msal-browser/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/log-strings-mapping.json +7 -3
- package/node_modules/@azure/msal-browser/lib/msal-browser.cjs +252 -135
- package/node_modules/@azure/msal-browser/lib/msal-browser.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/msal-browser.js +252 -135
- package/node_modules/@azure/msal-browser/lib/msal-browser.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/msal-browser.min.js +2 -2
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.cjs +59 -50
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.js +59 -50
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/node_modules/@azure/msal-browser/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
- package/node_modules/@azure/msal-browser/package.json +2 -2
- package/node_modules/@azure/msal-browser/src/app/PublicClientApplication.ts +85 -1
- package/node_modules/@azure/msal-browser/src/broker/nativeBroker/NativeStatusCodes.ts +1 -1
- package/node_modules/@azure/msal-browser/src/cache/BrowserCacheManager.ts +17 -0
- package/node_modules/@azure/msal-browser/src/controllers/StandardController.ts +4 -2
- package/node_modules/@azure/msal-browser/src/error/NativeAuthError.ts +2 -2
- package/node_modules/@azure/msal-browser/src/interaction_client/PlatformAuthInteractionClient.ts +5 -1
- package/node_modules/@azure/msal-browser/src/interaction_client/PopupClient.ts +65 -27
- package/node_modules/@azure/msal-browser/src/interaction_client/RedirectClient.ts +5 -0
- package/node_modules/@azure/msal-browser/src/interaction_client/SilentIframeClient.ts +49 -19
- package/node_modules/@azure/msal-browser/src/interaction_handler/SilentHandler.ts +1 -0
- package/node_modules/@azure/msal-browser/src/operatingcontext/BaseOperatingContext.ts +15 -1
- package/node_modules/@azure/msal-browser/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-browser/src/redirect_bridge/index.ts +3 -7
- package/node_modules/@azure/msal-browser/src/utils/BrowserUtils.ts +28 -7
- package/node_modules/@azure/msal-browser/types/app/PublicClientApplication.d.ts +37 -1
- package/node_modules/@azure/msal-browser/types/app/PublicClientApplication.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/broker/nativeBroker/NativeStatusCodes.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/controllers/StandardController.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/PopupClient.d.ts +11 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/PopupClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/RedirectClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/SilentIframeClient.d.ts +20 -1
- package/node_modules/@azure/msal-browser/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/operatingcontext/BaseOperatingContext.d.ts +8 -1
- package/node_modules/@azure/msal-browser/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/packageMetadata.d.ts +1 -1
- package/node_modules/@azure/msal-browser/types/redirect_bridge/index.d.ts.map +1 -1
- package/node_modules/@azure/msal-browser/types/utils/BrowserUtils.d.ts +17 -2
- package/node_modules/@azure/msal-browser/types/utils/BrowserUtils.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/AuthToken.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/Authority.mjs +19 -6
- package/node_modules/@azure/msal-common/dist/authority/Authority.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/cache/utils/AccountEntityUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/AuthError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/CacheError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs +4 -4
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs +3 -3
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/NetworkError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/PlatformBrokerError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/error/ServerError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/index-node.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/index.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/logger/Logger.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-common/dist/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/protocol/Token.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/url/UrlString.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/Constants.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/AccountInfo.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/AuthToken.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/CcsCredential.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/ClientInfo.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/account/TokenClaims.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/Authority.mjs +19 -6
- package/node_modules/@azure/msal-common/dist-browser/authority/Authority.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityFactory.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityMetadata.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityOptions.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/AuthorityType.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/OpenIdConfigResponse.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/ProtocolMode.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/authority/RegionDiscovery.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/CacheManager.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/cache/CacheManager.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/persistence/TokenCacheContext.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/utils/AccountEntityUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/cache/utils/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/AuthorizationCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/RefreshTokenClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/client/SilentFlowClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/config/ClientConfiguration.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/constants/AADServerParamKeys.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/ICrypto.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/JoseHeader.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/crypto/PopTokenGenerator.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/AuthError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/AuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/CacheError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/CacheErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs +4 -4
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthErrorCodes.mjs +3 -3
- package/node_modules/@azure/msal-common/dist-browser/error/InteractionRequiredAuthErrorCodes.mjs.map +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/JoseHeaderErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/NetworkError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/PlatformBrokerError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/error/ServerError.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/index-browser.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/index.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/log-strings-mapping.json +2 -2
- package/node_modules/@azure/msal-common/dist-browser/logger/Logger.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/INetworkModule.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/RequestThumbprint.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/network/ThrottlingUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-common/dist-browser/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/protocol/Token.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/AuthenticationHeaderParser.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/BaseAuthRequest.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/RequestParameterBuilder.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/request/ScopeSet.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/response/ResponseHandler.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvent.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/PerformanceEvents.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/url/UrlString.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/ClientAssertionUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/Constants.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/FunctionWrappers.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/ProtocolUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/StringUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/dist-browser/utils/UrlUtils.mjs +1 -1
- package/node_modules/@azure/msal-common/lib/index-browser.cjs +2 -2
- package/node_modules/@azure/msal-common/lib/{index-node-9_Gz5QUk.js → index-node-DHSwXao8.js} +27 -14
- package/node_modules/@azure/msal-common/lib/index-node-DHSwXao8.js.map +1 -0
- package/node_modules/@azure/msal-common/lib/index-node.cjs +2 -2
- package/node_modules/@azure/msal-common/lib/index.cjs +2 -2
- package/node_modules/@azure/msal-common/package.json +1 -1
- package/node_modules/@azure/msal-common/src/authority/Authority.ts +20 -5
- package/node_modules/@azure/msal-common/src/cache/CacheManager.ts +5 -10
- package/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthError.ts +2 -2
- package/node_modules/@azure/msal-common/src/error/InteractionRequiredAuthErrorCodes.ts +1 -2
- package/node_modules/@azure/msal-common/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-common/types/authority/Authority.d.ts +5 -1
- package/node_modules/@azure/msal-common/types/authority/Authority.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/cache/CacheManager.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/error/InteractionRequiredAuthErrorCodes.d.ts +1 -1
- package/node_modules/@azure/msal-common/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -1
- package/node_modules/@azure/msal-common/types/packageMetadata.d.ts +1 -1
- package/node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/TokenCache.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/BaseClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentityClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/config/Configuration.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/index.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/internals.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/network/HttpClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/packageMetadata.mjs +2 -2
- package/node_modules/@azure/msal-node/dist/protocol/Authorize.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/utils/Constants.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs +1 -1
- package/node_modules/@azure/msal-node/lib/msal-node.cjs +87 -74
- package/node_modules/@azure/msal-node/lib/msal-node.cjs.map +1 -1
- package/node_modules/@azure/msal-node/package.json +2 -2
- package/node_modules/@azure/msal-node/src/packageMetadata.ts +1 -1
- package/node_modules/@azure/msal-node/types/packageMetadata.d.ts +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/http2.d.ts +3 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/clientHelpers.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/clientHelpers.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/common.d.ts +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/getClient.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/getClient.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/multipart.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/multipart.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/restError.js +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/sendRequest.js +13 -10
- package/node_modules/@typespec/ts-http-runtime/dist/browser/client/sendRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/constants.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/constants.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.js +2 -21
- package/node_modules/@typespec/ts-http-runtime/dist/browser/createPipelineFromOptions.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/{defaultHttpClient.d.ts → defaultHttpClient-browser.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/{defaultHttpClient.js → defaultHttpClient-browser.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/defaultHttpClient-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.d.ts +13 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.js +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/encoding.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/{util/checkEnvironment.d.ts → env-browser.d.mts} +21 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/{util/checkEnvironment.js → env-browser.mjs} +26 -12
- package/node_modules/@typespec/ts-http-runtime/dist/browser/env-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.d.mts +9 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.mjs +12 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/formData-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/httpHeaders.js +11 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/httpHeaders.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/index.d.ts +3 -14
- package/node_modules/@typespec/ts-http-runtime/dist/browser/index.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/index.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/interfaces.d.ts +15 -14
- package/node_modules/@typespec/ts-http-runtime/dist/browser/interfaces.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/debug.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/debug.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/{log.d.ts → log-web.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/{log.js → log-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/log-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/logger.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/logger.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/pipelineRequest.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/pipelineRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/basicAuthenticationPolicy.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/basicAuthenticationPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/checkInsecureConnection.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/auth/checkInsecureConnection.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/{decompressResponsePolicy.d.ts → decompressResponsePolicy-web.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/{decompressResponsePolicy.js → decompressResponsePolicy-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/decompressResponsePolicy-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/formDataPolicy.js +5 -12
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/formDataPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.d.ts +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/multipartPolicy.js +7 -3
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/multipartPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.d.mts +10 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.mjs +12 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.d.ts +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.js +30 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/platformPolicies.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/policies/proxyPolicy.js → browser/policies/proxyPolicy-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/restError.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.d.mts +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.mjs +4 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/types-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/bytesEncoding.js → browser/util/bytesEncoding-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.d.ts +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.js +3 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat-browser.d.mts +16 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{concat.js → concat-browser.mjs} +4 -11
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/inspect.js → browser/util/inspect-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.d.ts +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.js +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/sha256.js → browser/util/sha256-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.common.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.d.mts +14 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.mjs +26 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.d.ts +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.js +4 -10
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/typeGuards.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.d.ts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgent.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.d.mts +37 -0
- package/node_modules/{@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.js → @typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.mjs} +10 -11
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{uuidUtils.d.ts → uuidUtils-browser.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/{uuidUtils.js → uuidUtils-browser.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/uuidUtils-browser.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/clientHelpers.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/clientHelpers.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/common.d.ts +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/getClient.js +3 -3
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/getClient.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/multipart.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/restError.js +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/restError.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/sendRequest.js +26 -8
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/client/sendRequest.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/constants.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/constants.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.js +2 -19
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/createPipelineFromOptions.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/{react-native/util/checkEnvironment.d.ts → commonjs/env.d.ts} +21 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/env.js +67 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/env.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/formData.d.ts +10 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/{util/arrayBuffer.js → formData.js} +19 -14
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/formData.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/httpHeaders.js +4 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/httpHeaders.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.d.ts +1 -12
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/index.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/interfaces.d.ts +15 -14
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/interfaces.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/debug.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/debug.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/logger.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/logger.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/nodeHttpClient.js +3 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/nodeHttpClient.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/pipelineRequest.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/pipelineRequest.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/basicAuthenticationPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/checkInsecureConnection.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/auth/checkInsecureConnection.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/formDataPolicy.js +4 -11
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/formDataPolicy.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.js +7 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/internal.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/multipartPolicy.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/multipartPolicy.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.d.ts +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.js +43 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/platformPolicies.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/tsdoc-metadata.json +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.d.ts +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.js +16 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/types.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/concat.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/concat.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.js +10 -10
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/internal.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards-node.d.ts +13 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/{logger/log.common.js → util/typeGuards-node.js} +14 -21
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards-node.js.map +7 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.d.ts +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.js +6 -13
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/typeGuards.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.d.ts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.js +7 -5
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/userAgent.js.map +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/clientHelpers.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/common.d.ts +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/getClient.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/getClient.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/multipart.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/restError.js +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/sendRequest.js +13 -10
- package/node_modules/@typespec/ts-http-runtime/dist/esm/client/sendRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/constants.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/constants.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.js +2 -21
- package/node_modules/@typespec/ts-http-runtime/dist/esm/createPipelineFromOptions.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/{commonjs/util/checkEnvironment.d.ts → esm/env.d.ts} +21 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/env.js +48 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/env.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.d.ts +10 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.js +26 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/formData.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/httpHeaders.js +11 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/httpHeaders.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/index.d.ts +1 -12
- package/node_modules/@typespec/ts-http-runtime/dist/esm/index.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/interfaces.d.ts +15 -14
- package/node_modules/@typespec/ts-http-runtime/dist/esm/interfaces.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/debug.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/debug.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/logger.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/logger.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/nodeHttpClient.js +3 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/nodeHttpClient.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/pipelineRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/basicAuthenticationPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/checkInsecureConnection.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/auth/checkInsecureConnection.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/formDataPolicy.js +4 -11
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/formDataPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/multipartPolicy.js +4 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/multipartPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.d.ts +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.js +30 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/platformPolicies.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/types.d.ts +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/types.js +4 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/types.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/concat.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/concat.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.d.ts +13 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.js +20 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards-node.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.d.ts +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.js +4 -10
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/typeGuards.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.d.ts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.js +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/userAgent.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/clientHelpers.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/clientHelpers.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/common.d.ts +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/getClient.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/getClient.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/multipart.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/multipart.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/restError.js +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/sendRequest.js +13 -10
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/client/sendRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/constants.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/constants.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.d.ts +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.js +2 -21
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/{defaultHttpClient.d.ts → defaultHttpClient-react-native.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/{defaultHttpClient.js → defaultHttpClient-react-native.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/defaultHttpClient-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.d.mts +21 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.mjs +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{esm/util/checkEnvironment.d.ts → react-native/env-react-native.d.mts} +21 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/env-react-native.mjs +50 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/env-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.d.mts +9 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.mjs +12 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/formData-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/httpHeaders.js +11 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/httpHeaders.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.d.ts +3 -14
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/index.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/interfaces.d.ts +15 -14
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/interfaces.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/debug.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/debug.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/{log.d.ts → log-web.d.mts} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/{log.js → log-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/log-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/logger.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/logger.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/pipelineRequest.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/pipelineRequest.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/basicAuthenticationPolicy.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/basicAuthenticationPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/checkInsecureConnection.js +3 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/auth/checkInsecureConnection.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.d.mts +8 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.mjs +11 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/formDataPolicy.js +5 -12
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/formDataPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.d.ts +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.js +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/multipartPolicy.js +7 -3
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/multipartPolicy.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.d.mts +10 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.mjs +12 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.d.ts +25 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.js +30 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/platformPolicies.js.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{browser/policies/proxyPolicy.js → react-native/policies/proxyPolicy-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/restError.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/restError.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.d.mts +19 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.mjs +4 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/types-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/bytesEncoding.js → react-native/util/bytesEncoding-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.d.ts +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.js +3 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{concat.d.ts → concat-react-native.d.mts} +10 -3
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{concat.js → concat-react-native.mjs} +2 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/concat-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/inspect.js → react-native/util/inspect-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.d.ts +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.js +4 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/internal.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256-web.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/{browser/util/sha256.js → react-native/util/sha256-web.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256-web.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.common.js +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.common.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.d.mts +16 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.mjs +34 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.d.ts +5 -4
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.js +4 -10
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/typeGuards.js.map +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.d.ts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.js +2 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgent.js.map +1 -1
- package/node_modules/{@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform.d.ts → @typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform-react-native.d.mts} +1 -1
- package/node_modules/{@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform.js → @typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform-react-native.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils-react-native.d.mts +2 -0
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/{uuidUtils.js → uuidUtils-react-native.mjs} +1 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils-react-native.mjs.map +1 -0
- package/node_modules/@typespec/ts-http-runtime/package.json +94 -8
- package/node_modules/semver/classes/semver.js +19 -2
- package/node_modules/semver/package.json +1 -1
- package/npm-shrinkwrap.json +29 -29
- package/package.json +4 -4
- package/dist/contract-api.js +0 -2
- package/dist/secret-contract-CSs7JYzG.js +0 -35
- package/node_modules/@azure/core-client/dist/browser/base64-browser.mjs.map +0 -1
- package/node_modules/@azure/core-client/dist/browser/state-browser.mjs.map +0 -1
- package/node_modules/@azure/core-client/dist/commonjs/state-cjs.cjs.map +0 -1
- package/node_modules/@azure/core-client/dist/commonjs/state.d.ts +0 -7
- package/node_modules/@azure/core-client/dist/react-native/state.d.ts +0 -8
- package/node_modules/@azure/core-client/dist/react-native/state.js +0 -10
- package/node_modules/@azure/core-client/dist/react-native/state.js.map +0 -1
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.d.ts +0 -9
- package/node_modules/@azure/core-rest-pipeline/dist/browser/util/userAgentPlatform.js.map +0 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/userAgentPlatform.js.map +0 -1
- package/node_modules/@azure/core-rest-pipeline/dist/react-native/util/wrapAbortSignal.js.map +0 -1
- package/node_modules/@azure/msal-common/lib/index-node-9_Gz5QUk.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/defaultHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/logger/log.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.d.ts +0 -9
- package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.js +0 -347
- package/node_modules/@typespec/ts-http-runtime/dist/browser/nodeHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/decompressResponsePolicy.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/policies/proxyPolicy.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/bytesEncoding.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/checkEnvironment.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat.d.ts +0 -17
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/concat.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/inspect.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/sha256.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/userAgentPlatform.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/util/uuidUtils.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.js +0 -174
- package/node_modules/@typespec/ts-http-runtime/dist/browser/xhrHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.d.ts +0 -12
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.js +0 -238
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/fetchHttpClient.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/log.common.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/logger/log.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.d.ts +0 -19
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.js +0 -44
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/policies/proxyPolicy.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/arrayBuffer.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/arrayBuffer.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.d.ts +0 -61
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.js +0 -106
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/bytesEncoding.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/checkEnvironment.js +0 -46
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/checkEnvironment.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/inspect.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.d.ts +0 -14
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.js +0 -70
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/sha256.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.d.ts +0 -13
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.js +0 -49
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/util/uuidUtils.common.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.js +0 -186
- package/node_modules/@typespec/ts-http-runtime/dist/commonjs/xhrHttpClient.js.map +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.d.ts +0 -12
- package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.js +0 -279
- package/node_modules/@typespec/ts-http-runtime/dist/esm/fetchHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.js +0 -23
- package/node_modules/@typespec/ts-http-runtime/dist/esm/logger/log.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.d.ts +0 -19
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.js +0 -24
- package/node_modules/@typespec/ts-http-runtime/dist/esm/policies/proxyPolicy.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.js +0 -20
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/arrayBuffer.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.d.ts +0 -61
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.js +0 -110
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/bytesEncoding.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/checkEnvironment.js +0 -41
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/checkEnvironment.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.js +0 -4
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/inspect.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.d.ts +0 -14
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.js +0 -49
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/sha256.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.d.ts +0 -13
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.js +0 -40
- package/node_modules/@typespec/ts-http-runtime/dist/esm/util/uuidUtils.common.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.d.ts +0 -7
- package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.js +0 -174
- package/node_modules/@typespec/ts-http-runtime/dist/esm/xhrHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/defaultHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.d.ts +0 -12
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.js +0 -279
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/fetchHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/logger/log.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.d.ts +0 -9
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.js +0 -347
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/nodeHttpClient.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.d.ts +0 -11
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.js +0 -23
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/decompressResponsePolicy.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/policies/proxyPolicy.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/bytesEncoding.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/checkEnvironment.js +0 -41
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/checkEnvironment.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/concat.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/inspect.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/sha256.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/userAgentPlatform.js.map +0 -1
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils.d.ts +0 -2
- package/node_modules/@typespec/ts-http-runtime/dist/react-native/util/uuidUtils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart.js","sourceRoot":"","sources":["../../../src/client/multipart.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAkDrD;;GAEG;AACH,SAAS,cAAc,CAAC,UAA0B,EAAE,UAAkB;IACpE,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;QACvB,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAC3D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,UAAU,CAAC,WAAW,EAAE,CACpD,CAAC;QACF,IAAI,gBAAgB,EAAE,CAAC;YACrB,OAAO,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microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BodyPart, MultipartRequestBody, RawHttpHeadersInput } from \"../interfaces.js\";\nimport { RestError } from \"../restError.js\";\nimport { createHttpHeaders } from \"../httpHeaders.js\";\nimport { stringToUint8Array } from \"../util/bytesEncoding.js\";\nimport { isBinaryBody } from \"../util/typeGuards.js\";\n\n/**\n * Describes a single part in a multipart body.\n */\nexport interface PartDescriptor {\n /**\n * Content type of this part. If set, this value will be used to set the Content-Type MIME header for this part, although explicitly\n * setting the Content-Type header in the headers bag will override this value. If set to `null`, no content type will be inferred from\n * the body field. Otherwise, the value of the Content-Type MIME header will be inferred based on the type of the body.\n */\n contentType?: string | null;\n\n /**\n * The disposition type of this part (for example, \"form-data\" for parts making up a multipart/form-data request). If set, this value\n * will be used to set the Content-Disposition MIME header for this part, in addition to the `name` and `filename` properties.\n * If the `name` or `filename` properties are set while `dispositionType` is left undefined, `dispositionType` will default to \"form-data\".\n *\n * Explicitly setting the Content-Disposition header in the headers bag will override this value.\n */\n dispositionType?: string;\n\n /**\n * The field name associated with this part. This value will be used to construct the Content-Disposition header,\n * along with the `dispositionType` and `filename` properties, if the header has not been set in the `headers` bag.\n */\n name?: string;\n\n /**\n * The file name of the content if it is a file. This value will be used to construct the Content-Disposition header,\n * along with the `dispositionType` and `name` properties, if the header has not been set in the `headers` bag.\n */\n filename?: string;\n\n /**\n * The multipart headers for this part of the multipart body. Values of the Content-Type and Content-Disposition headers set in the headers bag\n * will take precedence over those computed from the request body or the contentType, dispositionType, name, and filename fields on this object.\n */\n headers?: RawHttpHeadersInput;\n\n /**\n * The body of this part of the multipart request.\n */\n body?: unknown;\n}\n\ntype MultipartBodyType = BodyPart[\"body\"];\n\ntype HeaderValue = RawHttpHeadersInput[string];\n\n/**\n * Get value of a header in the part descriptor ignoring case\n */\nfunction getHeaderValue(descriptor: PartDescriptor, headerName: string): HeaderValue | undefined {\n if (descriptor.headers) {\n const actualHeaderName = Object.keys(descriptor.headers).find(\n (x) => x.toLowerCase() === headerName.toLowerCase(),\n );\n if (actualHeaderName) {\n return descriptor.headers[actualHeaderName];\n }\n }\n\n return undefined;\n}\n\nfunction getPartContentType(descriptor: PartDescriptor): HeaderValue | undefined {\n const contentTypeHeader = getHeaderValue(descriptor, \"content-type\");\n if (contentTypeHeader) {\n return contentTypeHeader;\n }\n\n // Special value of null means content type is to be omitted\n if (descriptor.contentType === null) {\n return undefined;\n }\n\n if (descriptor.contentType) {\n return descriptor.contentType;\n }\n\n const { body } = descriptor;\n\n if (body === null || body === undefined) {\n return undefined;\n }\n\n if (typeof body === \"string\" || typeof body === \"number\" || typeof body === \"boolean\") {\n return \"text/plain; charset=UTF-8\";\n }\n\n if (body instanceof Blob) {\n return body.type || \"application/octet-stream\";\n }\n\n if (isBinaryBody(body)) {\n return \"application/octet-stream\";\n }\n\n // arbitrary non-text object -> generic JSON content type by default. We will try to JSON.stringify the body.\n return \"application/json\";\n}\n\n/**\n * Enclose value in quotes and escape special characters, for use in the Content-Disposition header\n */\nfunction escapeDispositionField(value: string): string {\n return JSON.stringify(value);\n}\n\nfunction getContentDisposition(descriptor: PartDescriptor): HeaderValue | undefined {\n const contentDispositionHeader = getHeaderValue(descriptor, \"content-disposition\");\n if (contentDispositionHeader) {\n return contentDispositionHeader;\n }\n\n if (\n descriptor.dispositionType === undefined &&\n descriptor.name === undefined &&\n descriptor.filename === undefined\n ) {\n return undefined;\n }\n\n const dispositionType = descriptor.dispositionType ?? \"form-data\";\n\n let disposition = dispositionType;\n if (descriptor.name) {\n disposition += `; name=${escapeDispositionField(descriptor.name)}`;\n }\n\n let filename: string | undefined = undefined;\n if (descriptor.filename) {\n filename = descriptor.filename;\n } else if (typeof File !== \"undefined\" && descriptor.body instanceof File) {\n const filenameFromFile = descriptor.body.name;\n if (filenameFromFile !== \"\") {\n filename = filenameFromFile;\n }\n }\n\n if (filename) {\n disposition += `; filename=${escapeDispositionField(filename)}`;\n }\n\n return disposition;\n}\n\nfunction normalizeBody(body?: unknown, contentType?: HeaderValue): MultipartBodyType {\n if (body === undefined) {\n // zero-length body\n return new Uint8Array([]);\n }\n\n // binary and primitives should go straight on the wire regardless of content type\n if (isBinaryBody(body)) {\n return body;\n }\n if (typeof body === \"string\" || typeof body === \"number\" || typeof body === \"boolean\") {\n return stringToUint8Array(String(body), \"utf-8\");\n }\n\n // stringify objects for JSON-ish content types e.g. application/json, application/merge-patch+json, application/vnd.oci.manifest.v1+json, application.json; charset=UTF-8\n if (contentType && /application\\/(.+\\+)?json(;.+)?/i.test(String(contentType))) {\n return stringToUint8Array(JSON.stringify(body), \"utf-8\");\n }\n\n throw new RestError(`Unsupported body/content-type combination: ${body}, ${contentType}`);\n}\n\nexport function buildBodyPart(descriptor: PartDescriptor): BodyPart {\n const contentType = getPartContentType(descriptor);\n const contentDisposition = getContentDisposition(descriptor);\n const headers = createHttpHeaders(descriptor.headers ?? {});\n\n if (contentType) {\n headers.set(\"content-type\", contentType);\n }\n if (contentDisposition) {\n headers.set(\"content-disposition\", contentDisposition);\n }\n\n const body = normalizeBody(descriptor.body, contentType);\n\n return {\n headers,\n body,\n };\n}\n\nexport function buildMultipartBody(parts: PartDescriptor[]): MultipartRequestBody {\n return { parts: parts.map(buildBodyPart) };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"multipart.js","sourceRoot":"","sources":["../../../src/client/multipart.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAkDrD;;GAEG;AACH,SAAS,cAAc,CAAC,UAA0B,EAAE,UAAkB;IACpE,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;QACvB,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAA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,OAAO;QACP,IAAI;KACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAAuB;IACxD,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;AAC7C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BodyPart, MultipartRequestBody, RawHttpHeadersInput } from \"../interfaces.js\";\nimport { RestError } from \"../restError.js\";\nimport { createHttpHeaders } from \"../httpHeaders.js\";\nimport { stringToUint8Array } from \"#platform/bytesEncoding\";\nimport { isBinaryBody } from \"../util/typeGuards.js\";\n\n/**\n * Describes a single part in a multipart body.\n */\nexport interface PartDescriptor {\n /**\n * Content type of this part. If set, this value will be used to set the Content-Type MIME header for this part, although explicitly\n * setting the Content-Type header in the headers bag will override this value. If set to `null`, no content type will be inferred from\n * the body field. Otherwise, the value of the Content-Type MIME header will be inferred based on the type of the body.\n */\n contentType?: string | null;\n\n /**\n * The disposition type of this part (for example, \"form-data\" for parts making up a multipart/form-data request). If set, this value\n * will be used to set the Content-Disposition MIME header for this part, in addition to the `name` and `filename` properties.\n * If the `name` or `filename` properties are set while `dispositionType` is left undefined, `dispositionType` will default to \"form-data\".\n *\n * Explicitly setting the Content-Disposition header in the headers bag will override this value.\n */\n dispositionType?: string;\n\n /**\n * The field name associated with this part. This value will be used to construct the Content-Disposition header,\n * along with the `dispositionType` and `filename` properties, if the header has not been set in the `headers` bag.\n */\n name?: string;\n\n /**\n * The file name of the content if it is a file. This value will be used to construct the Content-Disposition header,\n * along with the `dispositionType` and `name` properties, if the header has not been set in the `headers` bag.\n */\n filename?: string;\n\n /**\n * The multipart headers for this part of the multipart body. Values of the Content-Type and Content-Disposition headers set in the headers bag\n * will take precedence over those computed from the request body or the contentType, dispositionType, name, and filename fields on this object.\n */\n headers?: RawHttpHeadersInput;\n\n /**\n * The body of this part of the multipart request.\n */\n body?: unknown;\n}\n\ntype MultipartBodyType = BodyPart[\"body\"];\n\ntype HeaderValue = RawHttpHeadersInput[string];\n\n/**\n * Get value of a header in the part descriptor ignoring case\n */\nfunction getHeaderValue(descriptor: PartDescriptor, headerName: string): HeaderValue | undefined {\n if (descriptor.headers) {\n const actualHeaderName = Object.keys(descriptor.headers).find(\n (x) => x.toLowerCase() === headerName.toLowerCase(),\n );\n if (actualHeaderName) {\n return descriptor.headers[actualHeaderName];\n }\n }\n\n return undefined;\n}\n\nfunction getPartContentType(descriptor: PartDescriptor): HeaderValue | undefined {\n const contentTypeHeader = getHeaderValue(descriptor, \"content-type\");\n if (contentTypeHeader) {\n return contentTypeHeader;\n }\n\n // Special value of null means content type is to be omitted\n if (descriptor.contentType === null) {\n return undefined;\n }\n\n if (descriptor.contentType) {\n return descriptor.contentType;\n }\n\n const { body } = descriptor;\n\n if (body === null || body === undefined) {\n return undefined;\n }\n\n if (typeof body === \"string\" || typeof body === \"number\" || typeof body === \"boolean\") {\n return \"text/plain; charset=UTF-8\";\n }\n\n if (body instanceof Blob) {\n return body.type || \"application/octet-stream\";\n }\n\n if (isBinaryBody(body)) {\n return \"application/octet-stream\";\n }\n\n // arbitrary non-text object -> generic JSON content type by default. We will try to JSON.stringify the body.\n return \"application/json\";\n}\n\n/**\n * Enclose value in quotes and escape special characters, for use in the Content-Disposition header\n */\nfunction escapeDispositionField(value: string): string {\n return JSON.stringify(value);\n}\n\nfunction getContentDisposition(descriptor: PartDescriptor): HeaderValue | undefined {\n const contentDispositionHeader = getHeaderValue(descriptor, \"content-disposition\");\n if (contentDispositionHeader) {\n return contentDispositionHeader;\n }\n\n if (\n descriptor.dispositionType === undefined &&\n descriptor.name === undefined &&\n descriptor.filename === undefined\n ) {\n return undefined;\n }\n\n const dispositionType = descriptor.dispositionType ?? \"form-data\";\n\n let disposition = dispositionType;\n if (descriptor.name) {\n disposition += `; name=${escapeDispositionField(descriptor.name)}`;\n }\n\n let filename: string | undefined = undefined;\n if (descriptor.filename) {\n filename = descriptor.filename;\n } else if (typeof File !== \"undefined\" && descriptor.body instanceof File) {\n const filenameFromFile = descriptor.body.name;\n if (filenameFromFile !== \"\") {\n filename = filenameFromFile;\n }\n }\n\n if (filename) {\n disposition += `; filename=${escapeDispositionField(filename)}`;\n }\n\n return disposition;\n}\n\nfunction normalizeBody(body?: unknown, contentType?: HeaderValue): MultipartBodyType {\n if (body === undefined) {\n // zero-length body\n return new Uint8Array([]);\n }\n\n // binary and primitives should go straight on the wire regardless of content type\n if (isBinaryBody(body)) {\n return body;\n }\n if (typeof body === \"string\" || typeof body === \"number\" || typeof body === \"boolean\") {\n return stringToUint8Array(String(body), \"utf-8\");\n }\n\n // stringify objects for JSON-ish content types e.g. application/json, application/merge-patch+json, application/vnd.oci.manifest.v1+json, application.json; charset=UTF-8\n if (contentType && /application\\/(.+\\+)?json(;.+)?/i.test(String(contentType))) {\n return stringToUint8Array(JSON.stringify(body), \"utf-8\");\n }\n\n throw new RestError(`Unsupported body/content-type combination: ${body}, ${contentType}`);\n}\n\nexport function buildBodyPart(descriptor: PartDescriptor): BodyPart {\n const contentType = getPartContentType(descriptor);\n const contentDisposition = getContentDisposition(descriptor);\n const headers = createHttpHeaders(descriptor.headers ?? {});\n\n if (contentType) {\n headers.set(\"content-type\", contentType);\n }\n if (contentDisposition) {\n headers.set(\"content-disposition\", contentDisposition);\n }\n\n const body = normalizeBody(descriptor.body, contentType);\n\n return {\n headers,\n body,\n };\n}\n\nexport function buildMultipartBody(parts: PartDescriptor[]): MultipartRequestBody {\n return { parts: parts.map(buildBodyPart) };\n}\n"]}
|
|
@@ -15,11 +15,12 @@ export function createRestError(messageOrResponse, response) {
|
|
|
15
15
|
response: toPipelineResponse(resp),
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function toPipelineResponse(
|
|
18
|
+
function toPipelineResponse(errorResponse) {
|
|
19
19
|
return {
|
|
20
|
-
headers: createHttpHeaders(
|
|
21
|
-
request:
|
|
22
|
-
status: statusCodeToNumber(
|
|
20
|
+
headers: createHttpHeaders(errorResponse.headers),
|
|
21
|
+
request: errorResponse.request,
|
|
22
|
+
status: statusCodeToNumber(errorResponse.status) ?? -1,
|
|
23
|
+
...(typeof errorResponse.body === "string" ? { bodyAsText: errorResponse.body } : {}),
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
function statusCodeToNumber(statusCode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restError.js","sourceRoot":"","sources":["../../../src/client/restError.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAWtD,MAAM,UAAU,eAAe,CAC7B,iBAAiD,EACjD,QAAgC;IAEhC,MAAM,IAAI,GAAG,OAAO,iBAAiB,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC;IACnF,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC;IACpD,MAAM,OAAO,GACX,OAAO,iBAAiB,KAAK,QAAQ;QACnC,CAAC,CAAC,iBAAiB;QACnB,CAAC,CAAC,CAAC,aAAa,EAAE,OAAO,IAAI,2BAA2B,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3E,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;QAC5B,UAAU,EAAE,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC;QAC3C,IAAI,EAAE,aAAa,EAAE,IAAI;QACzB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,QAAQ,EAAE,kBAAkB,CAAC,IAAI,CAAC;KACnC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"restError.js","sourceRoot":"","sources":["../../../src/client/restError.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACv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AC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAE3C,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;AACnD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PipelineResponse } from \"../interfaces.js\";\nimport { RestError } from \"../restError.js\";\nimport { createHttpHeaders } from \"../httpHeaders.js\";\nimport type { PathUncheckedResponse } from \"./common.js\";\n\n/**\n * Creates a rest error from a PathUnchecked response\n */\nexport function createRestError(response: PathUncheckedResponse): RestError;\n/**\n * Creates a rest error from an error message and a PathUnchecked response\n */\nexport function createRestError(message: string, response: PathUncheckedResponse): RestError;\nexport function createRestError(\n messageOrResponse: string | PathUncheckedResponse,\n response?: PathUncheckedResponse,\n): RestError {\n const resp = typeof messageOrResponse === \"string\" ? response! : messageOrResponse;\n const internalError = resp.body?.error ?? resp.body;\n const message =\n typeof messageOrResponse === \"string\"\n ? messageOrResponse\n : (internalError?.message ?? `Unexpected status code: ${resp.status}`);\n return new RestError(message, {\n statusCode: statusCodeToNumber(resp.status),\n code: internalError?.code,\n request: resp.request,\n response: toPipelineResponse(resp),\n });\n}\n\nfunction toPipelineResponse(errorResponse: PathUncheckedResponse): PipelineResponse {\n return {\n headers: createHttpHeaders(errorResponse.headers),\n request: errorResponse.request,\n status: statusCodeToNumber(errorResponse.status) ?? -1,\n ...(typeof errorResponse.body === \"string\" ? { bodyAsText: errorResponse.body } : {}),\n };\n}\n\nfunction statusCodeToNumber(statusCode: string): number | undefined {\n const status = Number.parseInt(statusCode);\n\n return Number.isNaN(status) ? undefined : status;\n}\n"]}
|
|
@@ -98,22 +98,23 @@ function buildPipelineRequest(method, url, options = {}) {
|
|
|
98
98
|
"content-type": requestContentType,
|
|
99
99
|
}),
|
|
100
100
|
});
|
|
101
|
-
|
|
101
|
+
const { allowInsecureConnection, abortSignal, onUploadProgress, onDownloadProgress, timeout, responseAsStream, url: _url, method: _method, body: _body, multipartBody: _multiBody, headers: _headers, ...rest } = options;
|
|
102
|
+
const request = createPipelineRequest({
|
|
102
103
|
url,
|
|
103
104
|
method,
|
|
104
105
|
body,
|
|
105
106
|
multipartBody,
|
|
106
107
|
headers,
|
|
107
|
-
allowInsecureConnection
|
|
108
|
-
abortSignal
|
|
109
|
-
onUploadProgress
|
|
110
|
-
onDownloadProgress
|
|
111
|
-
timeout
|
|
108
|
+
allowInsecureConnection,
|
|
109
|
+
abortSignal,
|
|
110
|
+
onUploadProgress,
|
|
111
|
+
onDownloadProgress,
|
|
112
|
+
timeout,
|
|
112
113
|
enableBrowserStreams: true,
|
|
113
|
-
streamResponseStatusCodes:
|
|
114
|
-
? new Set([Number.POSITIVE_INFINITY])
|
|
115
|
-
: undefined,
|
|
114
|
+
streamResponseStatusCodes: responseAsStream ? new Set([Number.POSITIVE_INFINITY]) : undefined,
|
|
116
115
|
});
|
|
116
|
+
Object.assign(request, rest);
|
|
117
|
+
return request;
|
|
117
118
|
}
|
|
118
119
|
/**
|
|
119
120
|
* Prepares the body before sending the request
|
|
@@ -135,7 +136,9 @@ export function getRequestBody(body, contentType = "") {
|
|
|
135
136
|
return { body: body };
|
|
136
137
|
}
|
|
137
138
|
if (ArrayBuffer.isView(body)) {
|
|
138
|
-
return {
|
|
139
|
+
return {
|
|
140
|
+
body: body instanceof Uint8Array ? body : JSON.stringify(body),
|
|
141
|
+
};
|
|
139
142
|
}
|
|
140
143
|
const firstType = contentType.split(";")[0];
|
|
141
144
|
switch (firstType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendRequest.js","sourceRoot":"","sources":["../../../src/client/sendRequest.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAA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G,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,IAAI,SAAS,CAAC,WAAW,CAAC;IAClD,OAAO,IAAI,SAAS,CAAC,GAAG,EAAE;QACxB,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,QAAQ,CAAC,MAAM;QAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n HttpClient,\n HttpMethods,\n MultipartRequestBody,\n PipelineRequest,\n PipelineResponse,\n RequestBodyType,\n} from \"../interfaces.js\";\nimport { isRestError, RestError } from \"../restError.js\";\nimport type { Pipeline } from \"../pipeline.js\";\nimport { createHttpHeaders } from \"../httpHeaders.js\";\nimport { createPipelineRequest } from \"../pipelineRequest.js\";\nimport { getCachedDefaultHttpsClient } from \"./clientHelpers.js\";\nimport { isBlob, isReadableStream } from \"../util/typeGuards.js\";\nimport type { HttpResponse, RequestParameters } from \"./common.js\";\nimport type { PartDescriptor } from \"./multipart.js\";\nimport { buildMultipartBody } from \"./multipart.js\";\n\n/**\n * Helper function to send request used by the client\n * @param method - method to use to send the request\n * @param url - url to send the request to\n * @param pipeline - pipeline with the policies to run when sending the request\n * @param options - request options\n * @param customHttpClient - a custom HttpClient to use when making the request\n * @returns returns and HttpResponse\n */\nexport async function sendRequest(\n method: HttpMethods,\n url: string,\n pipeline: Pipeline,\n options: InternalRequestParameters = {},\n customHttpClient?: HttpClient,\n): Promise<HttpResponse> {\n const httpClient = customHttpClient ?? getCachedDefaultHttpsClient();\n const request = buildPipelineRequest(method, url, options);\n\n try {\n const response = await pipeline.sendRequest(httpClient, request);\n const headers = response.headers.toJSON();\n const stream = response.readableStreamBody ?? response.browserStreamBody;\n const parsedBody =\n options.responseAsStream || stream !== undefined ? undefined : getResponseBody(response);\n const body = stream ?? parsedBody;\n\n if (options?.onResponse) {\n options.onResponse({ ...response, request, rawHeaders: headers, parsedBody });\n }\n\n return {\n request,\n headers,\n status: `${response.status}`,\n body,\n };\n } catch (e: unknown) {\n if (isRestError(e) && e.response && options.onResponse) {\n const { response } = e;\n const rawHeaders = response.headers.toJSON();\n // UNBRANDED DIFFERENCE: onResponse callback does not have a second __legacyError property\n options?.onResponse({ ...response, request, rawHeaders }, e);\n }\n\n throw e;\n }\n}\n\n/**\n * Function to determine the request content type\n * @param options - request options InternalRequestParameters\n * @returns returns the content-type\n */\nfunction getRequestContentType(options: InternalRequestParameters = {}): string | undefined {\n if (options.contentType) {\n return options.contentType;\n }\n const headerContentType = options.headers?.[\"content-type\"];\n if (typeof headerContentType === \"string\") {\n return headerContentType;\n }\n return getContentType(options.body);\n}\n\n/**\n * Function to determine the content-type of a body\n * this is used if an explicit content-type is not provided\n * @param body - body in the request\n * @returns returns the content-type\n */\nfunction getContentType(body: any): string | undefined {\n if (body === undefined) {\n return undefined;\n }\n\n if (ArrayBuffer.isView(body)) {\n return \"application/octet-stream\";\n }\n\n if (isBlob(body) && body.type) {\n return body.type;\n }\n\n if (typeof body === \"string\") {\n try {\n JSON.parse(body);\n return \"application/json\";\n } catch (error: any) {\n // If we fail to parse the body, it is not json\n return undefined;\n }\n }\n // By default return json\n return \"application/json\";\n}\n\nexport interface InternalRequestParameters extends RequestParameters {\n responseAsStream?: boolean;\n}\n\nfunction buildPipelineRequest(\n method: HttpMethods,\n url: string,\n options: InternalRequestParameters = {},\n): PipelineRequest {\n const requestContentType = getRequestContentType(options);\n const { body, multipartBody } = getRequestBody(options.body, requestContentType);\n\n const headers = createHttpHeaders({\n ...(options.headers ? options.headers : {}),\n accept: options.accept ?? options.headers?.accept ?? \"application/json\",\n ...(requestContentType && {\n \"content-type\": requestContentType,\n }),\n });\n\n return createPipelineRequest({\n url,\n method,\n body,\n multipartBody,\n headers,\n allowInsecureConnection: options.allowInsecureConnection,\n abortSignal: options.abortSignal,\n onUploadProgress: options.onUploadProgress,\n onDownloadProgress: options.onDownloadProgress,\n timeout: options.timeout,\n enableBrowserStreams: true,\n streamResponseStatusCodes: options.responseAsStream\n ? new Set([Number.POSITIVE_INFINITY])\n : undefined,\n });\n}\n\ninterface RequestBody {\n body?: RequestBodyType;\n multipartBody?: MultipartRequestBody;\n}\n\n/**\n * Prepares the body before sending the request\n */\nexport function getRequestBody(body?: unknown, contentType: string = \"\"): RequestBody {\n if (body === undefined) {\n return { body: undefined };\n }\n\n if (typeof FormData !== \"undefined\" && body instanceof FormData) {\n return { body };\n }\n\n if (isBlob(body)) {\n return { body };\n }\n\n if (isReadableStream(body)) {\n return { body };\n }\n\n if (typeof body === \"function\") {\n return { body: body as RequestBodyType };\n }\n\n if (ArrayBuffer.isView(body)) {\n return { body: body instanceof Uint8Array ? body : JSON.stringify(body) };\n }\n\n const firstType = contentType.split(\";\")[0];\n\n switch (firstType) {\n case \"application/json\":\n return { body: JSON.stringify(body) };\n case \"multipart/form-data\":\n if (Array.isArray(body)) {\n return { multipartBody: buildMultipartBody(body as PartDescriptor[]) };\n }\n return { body: JSON.stringify(body) };\n case \"text/plain\":\n return { body: String(body) };\n default:\n if (typeof body === \"string\") {\n return { body };\n }\n return { body: JSON.stringify(body) };\n }\n}\n\n/**\n * Prepares the response body\n */\nfunction getResponseBody(response: PipelineResponse): RequestBodyType | undefined {\n // Set the default response type\n const contentType = response.headers.get(\"content-type\") ?? \"\";\n const firstType = contentType.split(\";\")[0];\n const bodyToParse = response.bodyAsText ?? \"\";\n\n if (firstType === \"text/plain\") {\n return String(bodyToParse);\n }\n // Default to \"application/json\" and fallback to string;\n try {\n return bodyToParse ? JSON.parse(bodyToParse) : undefined;\n } catch (error: any) {\n // If we were supposed to get a JSON object and failed to\n // parse, throw a parse error\n if (firstType === \"application/json\") {\n throw createParseError(response, error);\n }\n\n // We are not sure how to handle the response so we return it as\n // plain text.\n return String(bodyToParse);\n }\n}\n\nfunction createParseError(response: PipelineResponse, err: any): RestError {\n const msg = `Error \"${err}\" occurred while parsing the response body - ${response.bodyAsText}.`;\n const errCode = err.code ?? RestError.PARSE_ERROR;\n return new RestError(msg, {\n code: errCode,\n statusCode: response.status,\n request: response.request,\n response: response,\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"sendRequest.js","sourceRoot":"","sources":["../../../src/client/sendRequest.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,MAAmB,EACnB,GAAW,EACX,QAAkB,EAClB,UAAqC,EAAE,EACvC,gBAA6B;IAE7B,MAAM,UAAU,GAAG,gBAAgB,IAAI,2BAA2B,EAAE,CAAC;IACrE,MAAM,OAAO,GAAG,oBAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAE3D,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QACjE,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,kBAAkB,IAAI,QAAQ,CAAC,iBAAiB,CAAC;QACzE,MAAM,UAAU,GACd,OAAO,CAAC,gBAAgB,IAAI,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QA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AC,CAAC;IAC7B,CAAC;IACD,wDAAwD;IACxD,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,yDAAyD;QACzD,6BAA6B;QAC7B,IAAI,SAAS,KAAK,kBAAkB,EAAE,CAAC;YACrC,MAAM,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC1C,CAAC;QAED,gEAAgE;QAChE,cAAc;QACd,OAAO,MAAM,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC;AAED,SAAS,gBAAgB,CAAC,QAA0B,EAAE,GAAQ;IAC5D,MAAM,GAAG,GAAG,UAAU,GAAG,gDAAgD,QAAQ,CAAC,UAAU,GAAG,CAAC;IAChG,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,IAAI,SAAS,CAAC,WAAW,CAAC;IAClD,OAAO,IAAI,SAAS,CAAC,GAAG,EAAE;QACxB,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,QAAQ,CAAC,MAAM;QAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n HttpClient,\n HttpMethods,\n MultipartRequestBody,\n PipelineRequest,\n PipelineResponse,\n RequestBodyType,\n} from \"../interfaces.js\";\nimport { isRestError, RestError } from \"../restError.js\";\nimport type { Pipeline } from \"../pipeline.js\";\nimport { createHttpHeaders } from \"../httpHeaders.js\";\nimport { createPipelineRequest } from \"../pipelineRequest.js\";\nimport { getCachedDefaultHttpsClient } from \"./clientHelpers.js\";\nimport { isBlob, isReadableStream } from \"../util/typeGuards.js\";\nimport type { HttpResponse, RequestParameters } from \"./common.js\";\nimport type { PartDescriptor } from \"./multipart.js\";\nimport { buildMultipartBody } from \"./multipart.js\";\n\n/**\n * Helper function to send request used by the client\n * @param method - method to use to send the request\n * @param url - url to send the request to\n * @param pipeline - pipeline with the policies to run when sending the request\n * @param options - request options\n * @param customHttpClient - a custom HttpClient to use when making the request\n * @returns returns and HttpResponse\n */\nexport async function sendRequest(\n method: HttpMethods,\n url: string,\n pipeline: Pipeline,\n options: InternalRequestParameters = {},\n customHttpClient?: HttpClient,\n): Promise<HttpResponse> {\n const httpClient = customHttpClient ?? getCachedDefaultHttpsClient();\n const request = buildPipelineRequest(method, url, options);\n\n try {\n const response = await pipeline.sendRequest(httpClient, request);\n const headers = response.headers.toJSON();\n const stream = response.readableStreamBody ?? response.browserStreamBody;\n const parsedBody =\n options.responseAsStream || stream !== undefined ? undefined : getResponseBody(response);\n const body = stream ?? parsedBody;\n\n if (options?.onResponse) {\n options.onResponse({ ...response, request, rawHeaders: headers, parsedBody });\n }\n\n return {\n request,\n headers,\n status: `${response.status}`,\n body,\n };\n } catch (e: unknown) {\n if (isRestError(e) && e.response && options.onResponse) {\n const { response } = e;\n const rawHeaders = response.headers.toJSON();\n // UNBRANDED DIFFERENCE: onResponse callback does not have a second __legacyError property\n options?.onResponse({ ...response, request, rawHeaders }, e);\n }\n\n throw e;\n }\n}\n\n/**\n * Function to determine the request content type\n * @param options - request options InternalRequestParameters\n * @returns returns the content-type\n */\nfunction getRequestContentType(options: InternalRequestParameters = {}): string | undefined {\n if (options.contentType) {\n return options.contentType;\n }\n const headerContentType = options.headers?.[\"content-type\"];\n if (typeof headerContentType === \"string\") {\n return headerContentType;\n }\n return getContentType(options.body);\n}\n\n/**\n * Function to determine the content-type of a body\n * this is used if an explicit content-type is not provided\n * @param body - body in the request\n * @returns returns the content-type\n */\nfunction getContentType(body: any): string | undefined {\n if (body === undefined) {\n return undefined;\n }\n\n if (ArrayBuffer.isView(body)) {\n return \"application/octet-stream\";\n }\n\n if (isBlob(body) && body.type) {\n return body.type;\n }\n\n if (typeof body === \"string\") {\n try {\n JSON.parse(body);\n return \"application/json\";\n } catch (error: any) {\n // If we fail to parse the body, it is not json\n return undefined;\n }\n }\n // By default return json\n return \"application/json\";\n}\n\nexport interface InternalRequestParameters extends RequestParameters {\n responseAsStream?: boolean;\n}\n\nfunction buildPipelineRequest(\n method: HttpMethods,\n url: string,\n options: InternalRequestParameters = {},\n): PipelineRequest {\n const requestContentType = getRequestContentType(options);\n const { body, multipartBody } = getRequestBody(options.body, requestContentType);\n\n const headers = createHttpHeaders({\n ...(options.headers ? options.headers : {}),\n accept: options.accept ?? options.headers?.accept ?? \"application/json\",\n ...(requestContentType && {\n \"content-type\": requestContentType,\n }),\n });\n\n const {\n allowInsecureConnection,\n abortSignal,\n onUploadProgress,\n onDownloadProgress,\n timeout,\n responseAsStream,\n url: _url,\n method: _method,\n body: _body,\n multipartBody: _multiBody,\n headers: _headers,\n ...rest\n } = options as InternalRequestParameters & {\n url: string;\n method: string;\n multipartBody: unknown;\n };\n\n const request = createPipelineRequest({\n url,\n method,\n body,\n multipartBody,\n headers,\n allowInsecureConnection,\n abortSignal,\n onUploadProgress,\n onDownloadProgress,\n timeout,\n enableBrowserStreams: true,\n streamResponseStatusCodes: responseAsStream ? new Set([Number.POSITIVE_INFINITY]) : undefined,\n });\n\n Object.assign(request, rest);\n return request;\n}\n\ninterface RequestBody {\n body?: RequestBodyType;\n multipartBody?: MultipartRequestBody;\n}\n\n/**\n * Prepares the body before sending the request\n */\nexport function getRequestBody(body?: unknown, contentType: string = \"\"): RequestBody {\n if (body === undefined) {\n return { body: undefined };\n }\n\n if (typeof FormData !== \"undefined\" && body instanceof FormData) {\n return { body };\n }\n\n if (isBlob(body)) {\n return { body };\n }\n\n if (isReadableStream(body)) {\n return { body };\n }\n\n if (typeof body === \"function\") {\n return { body: body as RequestBodyType };\n }\n\n if (ArrayBuffer.isView(body)) {\n return {\n body: body instanceof Uint8Array ? body : JSON.stringify(body),\n };\n }\n\n const firstType = contentType.split(\";\")[0];\n\n switch (firstType) {\n case \"application/json\":\n return { body: JSON.stringify(body) };\n case \"multipart/form-data\":\n if (Array.isArray(body)) {\n return { multipartBody: buildMultipartBody(body as unknown as PartDescriptor[]) };\n }\n return { body: JSON.stringify(body) };\n case \"text/plain\":\n return { body: String(body) };\n default:\n if (typeof body === \"string\") {\n return { body };\n }\n return { body: JSON.stringify(body) };\n }\n}\n\n/**\n * Prepares the response body\n */\nfunction getResponseBody(response: PipelineResponse): RequestBodyType | undefined {\n // Set the default response type\n const contentType = response.headers.get(\"content-type\") ?? \"\";\n const firstType = contentType.split(\";\")[0];\n const bodyToParse = response.bodyAsText ?? \"\";\n\n if (firstType === \"text/plain\") {\n return String(bodyToParse);\n }\n // Default to \"application/json\" and fallback to string;\n try {\n return bodyToParse ? JSON.parse(bodyToParse) : undefined;\n } catch (error: any) {\n // If we were supposed to get a JSON object and failed to\n // parse, throw a parse error\n if (firstType === \"application/json\") {\n throw createParseError(response, error);\n }\n\n // We are not sure how to handle the response so we return it as\n // plain text.\n return String(bodyToParse);\n }\n}\n\nfunction createParseError(response: PipelineResponse, err: any): RestError {\n const msg = `Error \"${err}\" occurred while parsing the response body - ${response.bodyAsText}.`;\n const errCode = err.code ?? RestError.PARSE_ERROR;\n return new RestError(msg, {\n code: errCode,\n statusCode: response.status,\n request: response.request,\n response: response,\n });\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,OAAO,CAAC;AAE3C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"0.3.
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,OAAO,CAAC;AAE3C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"0.3.6\";\n\nexport const DEFAULT_RETRY_POLICY_COUNT = 3;\n"]}
|
package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type LogPolicyOptions } from "./policies/logPolicy.js";
|
|
2
2
|
import { type Pipeline } from "./pipeline.js";
|
|
3
3
|
import type { Agent, PipelineRetryOptions, ProxySettings, TlsSettings } from "./interfaces.js";
|
|
4
|
-
import {
|
|
4
|
+
import type { RedirectPolicyOptions } from "./policies/redirectPolicy.js";
|
|
5
5
|
import { type UserAgentPolicyOptions } from "./policies/userAgentPolicy.js";
|
|
6
6
|
/**
|
|
7
7
|
* Defines options that are used to configure the HTTP pipeline for
|
package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.js
CHANGED
|
@@ -2,15 +2,10 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { logPolicy } from "./policies/logPolicy.js";
|
|
4
4
|
import { createEmptyPipeline } from "./pipeline.js";
|
|
5
|
-
import { redirectPolicy } from "./policies/redirectPolicy.js";
|
|
6
5
|
import { userAgentPolicy } from "./policies/userAgentPolicy.js";
|
|
7
|
-
import { decompressResponsePolicy } from "./policies/decompressResponsePolicy.js";
|
|
8
6
|
import { defaultRetryPolicy } from "./policies/defaultRetryPolicy.js";
|
|
9
7
|
import { formDataPolicy } from "./policies/formDataPolicy.js";
|
|
10
|
-
import {
|
|
11
|
-
import { proxyPolicy } from "./policies/proxyPolicy.js";
|
|
12
|
-
import { agentPolicy } from "./policies/agentPolicy.js";
|
|
13
|
-
import { tlsPolicy } from "./policies/tlsPolicy.js";
|
|
8
|
+
import { addPlatformPolicies } from "./policies/platformPolicies-web.mjs";
|
|
14
9
|
import { multipartPolicy, multipartPolicyName } from "./policies/multipartPolicy.js";
|
|
15
10
|
/**
|
|
16
11
|
* Create a new pipeline with a default set of customizable policies.
|
|
@@ -18,16 +13,7 @@ import { multipartPolicy, multipartPolicyName } from "./policies/multipartPolicy
|
|
|
18
13
|
*/
|
|
19
14
|
export function createPipelineFromOptions(options) {
|
|
20
15
|
const pipeline = createEmptyPipeline();
|
|
21
|
-
|
|
22
|
-
if (options.agent) {
|
|
23
|
-
pipeline.addPolicy(agentPolicy(options.agent));
|
|
24
|
-
}
|
|
25
|
-
if (options.tlsOptions) {
|
|
26
|
-
pipeline.addPolicy(tlsPolicy(options.tlsOptions));
|
|
27
|
-
}
|
|
28
|
-
pipeline.addPolicy(proxyPolicy(options.proxyOptions));
|
|
29
|
-
pipeline.addPolicy(decompressResponsePolicy());
|
|
30
|
-
}
|
|
16
|
+
addPlatformPolicies(pipeline, options);
|
|
31
17
|
pipeline.addPolicy(formDataPolicy(), { beforePolicies: [multipartPolicyName] });
|
|
32
18
|
pipeline.addPolicy(userAgentPolicy(options.userAgentOptions));
|
|
33
19
|
// The multipart policy is added after policies with no phase, so that
|
|
@@ -35,11 +21,6 @@ export function createPipelineFromOptions(options) {
|
|
|
35
21
|
// properties (e.g., making the boundary constant in recorded tests).
|
|
36
22
|
pipeline.addPolicy(multipartPolicy(), { afterPhase: "Deserialize" });
|
|
37
23
|
pipeline.addPolicy(defaultRetryPolicy(options.retryOptions), { phase: "Retry" });
|
|
38
|
-
if (isNodeLike) {
|
|
39
|
-
// Both XHR and Fetch expect to handle redirects automatically,
|
|
40
|
-
// so only include this policy when we're in Node.
|
|
41
|
-
pipeline.addPolicy(redirectPolicy(options.redirectOptions), { afterPhase: "Retry" });
|
|
42
|
-
}
|
|
43
24
|
pipeline.addPolicy(logPolicy(options.loggingOptions), { afterPhase: "Sign" });
|
|
44
25
|
return pipeline;
|
|
45
26
|
}
|
package/node_modules/@typespec/ts-http-runtime/dist/react-native/createPipelineFromOptions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPipelineFromOptions.js","sourceRoot":"","sources":["../../src/createPipelineFromOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAiB,mBAAmB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"createPipelineFromOptions.js","sourceRoot":"","sources":["../../src/createPipelineFromOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAiB,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGnE,OAAO,EAA+B,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AA4DrF;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAAgC;IACxE,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IAEvC,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEvC,QAAQ,CAAC,SAAS,CAAC,cAAc,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;IAChF,QAAQ,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC9D,sEAAsE;IACtE,gEAAgE;IAChE,qEAAqE;IACrE,QAAQ,CAAC,SAAS,CAAC,eAAe,EAAE,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC;IACrE,QAAQ,CAAC,SAAS,CAAC,kBAAkB,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IACjF,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;IAE9E,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { type LogPolicyOptions, logPolicy } from \"./policies/logPolicy.js\";\nimport { type Pipeline, createEmptyPipeline } from \"./pipeline.js\";\nimport type { Agent, PipelineRetryOptions, ProxySettings, TlsSettings } from \"./interfaces.js\";\nimport type { RedirectPolicyOptions } from \"./policies/redirectPolicy.js\";\nimport { type UserAgentPolicyOptions, userAgentPolicy } from \"./policies/userAgentPolicy.js\";\nimport { defaultRetryPolicy } from \"./policies/defaultRetryPolicy.js\";\nimport { formDataPolicy } from \"./policies/formDataPolicy.js\";\nimport { addPlatformPolicies } from \"#platform/policies\";\nimport { multipartPolicy, multipartPolicyName } from \"./policies/multipartPolicy.js\";\n\n/**\n * Defines options that are used to configure the HTTP pipeline for\n * an SDK client.\n */\nexport interface PipelineOptions {\n /**\n * Options that control how to retry failed requests.\n */\n retryOptions?: PipelineRetryOptions;\n\n /**\n * Options to configure a proxy for outgoing requests.\n */\n proxyOptions?: ProxySettings;\n\n /** Options for configuring Agent instance for outgoing requests */\n agent?: Agent;\n\n /** Options for configuring TLS authentication */\n tlsOptions?: TlsSettings;\n\n /**\n * Options for how redirect responses are handled.\n */\n redirectOptions?: RedirectPolicyOptions;\n\n /**\n * Options for adding user agent details to outgoing requests.\n */\n userAgentOptions?: UserAgentPolicyOptions;\n\n /**\n * Options for setting common telemetry and tracing info to outgoing requests.\n */\n telemetryOptions?: TelemetryOptions;\n}\n\n/**\n * Defines options that are used to configure common telemetry and tracing info\n */\nexport interface TelemetryOptions {\n /**\n * The name of the header to pass the request ID to.\n */\n clientRequestIdHeaderName?: string;\n}\n\n/**\n * Defines options that are used to configure internal options of\n * the HTTP pipeline for an SDK client.\n */\nexport interface InternalPipelineOptions extends PipelineOptions {\n /**\n * Options to configure request/response logging.\n */\n loggingOptions?: LogPolicyOptions;\n}\n\n/**\n * Create a new pipeline with a default set of customizable policies.\n * @param options - Options to configure a custom pipeline.\n */\nexport function createPipelineFromOptions(options: InternalPipelineOptions): Pipeline {\n const pipeline = createEmptyPipeline();\n\n addPlatformPolicies(pipeline, options);\n\n pipeline.addPolicy(formDataPolicy(), { beforePolicies: [multipartPolicyName] });\n pipeline.addPolicy(userAgentPolicy(options.userAgentOptions));\n // The multipart policy is added after policies with no phase, so that\n // policies can be added between it and formDataPolicy to modify\n // properties (e.g., making the boundary constant in recorded tests).\n pipeline.addPolicy(multipartPolicy(), { afterPhase: \"Deserialize\" });\n pipeline.addPolicy(defaultRetryPolicy(options.retryOptions), { phase: \"Retry\" });\n pipeline.addPolicy(logPolicy(options.loggingOptions), { afterPhase: \"Sign\" });\n\n return pipeline;\n}\n"]}
|
|
@@ -3,4 +3,4 @@ import type { HttpClient } from "./interfaces.js";
|
|
|
3
3
|
* Create the correct HttpClient for the current environment.
|
|
4
4
|
*/
|
|
5
5
|
export declare function createDefaultHttpClient(): HttpClient;
|
|
6
|
-
//# sourceMappingURL=defaultHttpClient.d.
|
|
6
|
+
//# sourceMappingURL=defaultHttpClient-react-native.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultHttpClient-react-native.mjs","sourceRoot":"","sources":["../../src/defaultHttpClient-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;GAEG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,mBAAmB,EAAE,CAAC;AAC/B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HttpClient } from \"./interfaces.js\";\nimport { createXhrHttpClient } from \"./xhrHttpClient.js\";\n\n/**\n * Create the correct HttpClient for the current environment.\n */\nexport function createDefaultHttpClient(): HttpClient {\n return createXhrHttpClient();\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
var TextDecoder: (new () => {
|
|
3
|
+
decode(input: Uint8Array): string;
|
|
4
|
+
}) | undefined;
|
|
5
|
+
var TextEncoder: (new () => {
|
|
6
|
+
encode(input: string): Uint8Array<ArrayBuffer>;
|
|
7
|
+
}) | undefined;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Decodes a Uint8Array to a UTF-8 string.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function decodeUtf8(bytes: Uint8Array): string;
|
|
15
|
+
/**
|
|
16
|
+
* Encodes a string to a UTF-8 Uint8Array.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare function encodeUtf8(value: string): Uint8Array<ArrayBuffer>;
|
|
21
|
+
//# sourceMappingURL=encoding-react-native.d.mts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* Decodes a Uint8Array to a UTF-8 string.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export function decodeUtf8(bytes) {
|
|
9
|
+
if (typeof TextDecoder === "undefined") {
|
|
10
|
+
throw new Error("TextDecoder is not available in this environment. Please provide a polyfill.");
|
|
11
|
+
}
|
|
12
|
+
return new TextDecoder().decode(bytes);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Encodes a string to a UTF-8 Uint8Array.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export function encodeUtf8(value) {
|
|
20
|
+
if (typeof TextEncoder === "undefined") {
|
|
21
|
+
throw new Error("TextEncoder is not available in this environment. Please provide a polyfill.");
|
|
22
|
+
}
|
|
23
|
+
return new TextEncoder().encode(value);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=encoding-react-native.mjs.map
|
package/node_modules/@typespec/ts-http-runtime/dist/react-native/encoding-react-native.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encoding-react-native.mjs","sourceRoot":"","sources":["../../src/encoding-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAAiB;IAC1C,IAAI,OAAO,WAAW,KAAK,WAAW,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;IAClG,CAAC;IACD,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,IAAI,OAAO,WAAW,KAAK,WAAW,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;IAClG,CAAC;IACD,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// React Native's type definitions do not include TextDecoder/TextEncoder,\n// but they are available at runtime in the Hermes engine.\n// See https://github.com/facebook/react-native/issues/56325\ndeclare global {\n var TextDecoder: (new () => { decode(input: Uint8Array): string }) | undefined;\n var TextEncoder: (new () => { encode(input: string): Uint8Array<ArrayBuffer> }) | undefined;\n}\n\n/**\n * Decodes a Uint8Array to a UTF-8 string.\n *\n * @internal\n */\nexport function decodeUtf8(bytes: Uint8Array): string {\n if (typeof TextDecoder === \"undefined\") {\n throw new Error(\"TextDecoder is not available in this environment. Please provide a polyfill.\");\n }\n return new TextDecoder().decode(bytes);\n}\n\n/**\n * Encodes a string to a UTF-8 Uint8Array.\n *\n * @internal\n */\nexport function encodeUtf8(value: string): Uint8Array<ArrayBuffer> {\n if (typeof TextEncoder === \"undefined\") {\n throw new Error(\"TextEncoder is not available in this environment. Please provide a polyfill.\");\n }\n return new TextEncoder().encode(value);\n}\n"]}
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
var process: {
|
|
3
|
+
env?: Record<string, string | undefined>;
|
|
4
|
+
emitWarning?: (warning: string) => void;
|
|
5
|
+
} | undefined;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Returns the value of the specified environment variable.
|
|
9
|
+
* In React Native environments, this checks for a globally-defined `process.env`
|
|
10
|
+
* which may be injected by bundlers like Metro.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function getEnvironmentVariable(name: string): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Emits a warning via `process.emitWarning` if available.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare function emitNodeWarning(warning: string): void;
|
|
1
21
|
/**
|
|
2
22
|
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
3
23
|
*/
|
|
@@ -26,4 +46,4 @@ export declare const isNodeRuntime: boolean;
|
|
|
26
46
|
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
27
47
|
*/
|
|
28
48
|
export declare const isReactNative: boolean;
|
|
29
|
-
//# sourceMappingURL=
|
|
49
|
+
//# sourceMappingURL=env-react-native.d.mts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* Returns the value of the specified environment variable.
|
|
5
|
+
* In React Native environments, this checks for a globally-defined `process.env`
|
|
6
|
+
* which may be injected by bundlers like Metro.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export function getEnvironmentVariable(name) {
|
|
11
|
+
return globalThis.process?.env?.[name];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Emits a warning via `process.emitWarning` if available.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export function emitNodeWarning(warning) {
|
|
19
|
+
globalThis.process?.emitWarning?.(warning);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
23
|
+
*/
|
|
24
|
+
export const isBrowser = false;
|
|
25
|
+
/**
|
|
26
|
+
* A constant that indicates whether the environment the code is running is a Web Worker.
|
|
27
|
+
*/
|
|
28
|
+
export const isWebWorker = false;
|
|
29
|
+
/**
|
|
30
|
+
* A constant that indicates whether the environment the code is running is Deno.
|
|
31
|
+
*/
|
|
32
|
+
export const isDeno = false;
|
|
33
|
+
/**
|
|
34
|
+
* A constant that indicates whether the environment the code is running is Bun.sh.
|
|
35
|
+
*/
|
|
36
|
+
export const isBun = false;
|
|
37
|
+
/**
|
|
38
|
+
* A constant that indicates whether the environment the code is running is a Node.js compatible environment.
|
|
39
|
+
*/
|
|
40
|
+
export const isNodeLike = false;
|
|
41
|
+
/**
|
|
42
|
+
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
43
|
+
*/
|
|
44
|
+
export const isNodeRuntime = false;
|
|
45
|
+
/**
|
|
46
|
+
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
47
|
+
*/
|
|
48
|
+
// https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
49
|
+
export const isReactNative = true;
|
|
50
|
+
//# sourceMappingURL=env-react-native.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-react-native.mjs","sourceRoot":"","sources":["../../src/env-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAclC;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY;IACjD,OAAO,UAAU,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC;AAC7C,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAY,KAAK,CAAC;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAY,KAAK,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAY,KAAK,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAY,KAAK,CAAC;AAEpC;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAY,KAAK,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAY,KAAK,CAAC;AAE5C;;GAEG;AACH,4GAA4G;AAC5G,MAAM,CAAC,MAAM,aAAa,GAAY,IAAI,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Bundlers like Metro may inject a `process.env` object into React Native bundles.\n// Declare the minimal shape on globalThis so we can access it type-safely without\n// pulling in @types/node.\n// Using `globalThis.process` (property access) instead of bare `process` avoids\n// ReferenceError when the binding doesn't exist at all.\ndeclare global {\n // eslint-disable-next-line no-var\n var process:\n | { env?: Record<string, string | undefined>; emitWarning?: (warning: string) => void }\n | undefined;\n}\n\n/**\n * Returns the value of the specified environment variable.\n * In React Native environments, this checks for a globally-defined `process.env`\n * which may be injected by bundlers like Metro.\n *\n * @internal\n */\nexport function getEnvironmentVariable(name: string): string | undefined {\n return globalThis.process?.env?.[name];\n}\n\n/**\n * Emits a warning via `process.emitWarning` if available.\n *\n * @internal\n */\nexport function emitNodeWarning(warning: string): void {\n globalThis.process?.emitWarning?.(warning);\n}\n\n/**\n * A constant that indicates whether the environment the code is running is a Web Browser.\n */\nexport const isBrowser: boolean = false;\n\n/**\n * A constant that indicates whether the environment the code is running is a Web Worker.\n */\nexport const isWebWorker: boolean = false;\n\n/**\n * A constant that indicates whether the environment the code is running is Deno.\n */\nexport const isDeno: boolean = false;\n\n/**\n * A constant that indicates whether the environment the code is running is Bun.sh.\n */\nexport const isBun: boolean = false;\n\n/**\n * A constant that indicates whether the environment the code is running is a Node.js compatible environment.\n */\nexport const isNodeLike: boolean = false;\n\n/**\n * A constant that indicates whether the environment the code is running is Node.JS.\n */\nexport const isNodeRuntime: boolean = false;\n\n/**\n * A constant that indicates whether the environment the code is running is in React-Native.\n */\n// https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js\nexport const isReactNative: boolean = true;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FormDataMap } from "./interfaces.js";
|
|
2
|
+
/**
|
|
3
|
+
* Browser and React Native runtimes handle FormData natively,
|
|
4
|
+
* so no conversion from FormData to FormDataMap is needed.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare function convertBodyToFormDataMap(_body: unknown): FormDataMap | undefined;
|
|
9
|
+
//# sourceMappingURL=formData-web.d.mts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* Browser and React Native runtimes handle FormData natively,
|
|
5
|
+
* so no conversion from FormData to FormDataMap is needed.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export function convertBodyToFormDataMap(_body) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=formData-web.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formData-web.mjs","sourceRoot":"","sources":["../../src/formData-web.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAAc;IACrD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { FormDataMap } from \"./interfaces.js\";\n\n/**\n * Browser and React Native runtimes handle FormData natively,\n * so no conversion from FormData to FormDataMap is needed.\n *\n * @internal\n */\nexport function convertBodyToFormDataMap(_body: unknown): FormDataMap | undefined {\n return undefined;\n}\n"]}
|
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
function normalizeName(name) {
|
|
4
4
|
return name.toLowerCase();
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Removes CR and LF characters from a header value to prevent obs-fold
|
|
8
|
+
* (line folding) sequences, as forbidden by RFC 7230 §3.2.4.
|
|
9
|
+
* @param value - The header value to sanitize.
|
|
10
|
+
*/
|
|
11
|
+
function normalizeValue(value) {
|
|
12
|
+
return String(value)
|
|
13
|
+
.trim()
|
|
14
|
+
.replace(/[\r\n]/g, "");
|
|
15
|
+
}
|
|
6
16
|
function* headerIterator(map) {
|
|
7
17
|
for (const entry of map.values()) {
|
|
8
18
|
yield [entry.name, entry.value];
|
|
@@ -25,7 +35,7 @@ class HttpHeadersImpl {
|
|
|
25
35
|
* @param value - The value of the header to set.
|
|
26
36
|
*/
|
|
27
37
|
set(name, value) {
|
|
28
|
-
this._headersMap.set(normalizeName(name), { name, value:
|
|
38
|
+
this._headersMap.set(normalizeName(name), { name, value: normalizeValue(value) });
|
|
29
39
|
}
|
|
30
40
|
/**
|
|
31
41
|
* Get the header value for the provided header name, or undefined if no header exists in this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpHeaders.js","sourceRoot":"","sources":["../../src/httpHeaders.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;AAC5B,CAAC;AAED,QAAQ,CAAC,CAAC,cAAc,CAAC,GAA6B;IACpD,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC;QACjC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;AACH,CAAC;AAED,MAAM,eAAe;IACF,WAAW,CAA2B;IAEvD,YAAY,UAAiD;QAC3D,IAAI,CAAC,WAAW,GAAG,IAAI,GAAG,EAAuB,CAAC;QAClD,IAAI,UAAU,EAAE,CAAC;YACf,KAAK,MAAM,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;gBACjD,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACI,GAAG,CAAC,IAAY,EAAE,KAAgC;QACvD,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"httpHeaders.js","sourceRoot":"","sources":["../../src/httpHeaders.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;AAC5B,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CAAC,KAAgC;IACtD,OAAO,MAAM,CAAC,KAAK,CAAC;SACjB,IAAI,EAAE;SACN,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAC5B,CAAC;AAED,QAAQ,CAAC,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CAAC,YAAY,EAAE,CAAC;YACzB,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC;gBAC9C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;YACnC,CAAC;QACH,CAAC;aAAM,CAAC;YACN,KAAK,MAAM,CAAC,cAAc,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;gBACvD,MAAM,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;YACvC,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;OAEG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,CAAC,MAAM,CAAC,QAAQ,CAAC;QACf,OAAO,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAgC;IAChE,OAAO,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC;AACzC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HttpHeaders, RawHttpHeaders, RawHttpHeadersInput } from \"./interfaces.js\";\n\ninterface HeaderEntry {\n name: string;\n value: string;\n}\n\nfunction normalizeName(name: string): string {\n return name.toLowerCase();\n}\n\n/**\n * Removes CR and LF characters from a header value to prevent obs-fold\n * (line folding) sequences, as forbidden by RFC 7230 §3.2.4.\n * @param value - The header value to sanitize.\n */\nfunction normalizeValue(value: string | number | boolean): string {\n return String(value)\n .trim()\n .replace(/[\\r\\n]/g, \"\");\n}\n\nfunction* headerIterator(map: Map<string, HeaderEntry>): IterableIterator<[string, string]> {\n for (const entry of map.values()) {\n yield [entry.name, entry.value];\n }\n}\n\nclass HttpHeadersImpl implements HttpHeaders {\n private readonly _headersMap: Map<string, HeaderEntry>;\n\n constructor(rawHeaders?: RawHttpHeaders | RawHttpHeadersInput) {\n this._headersMap = new Map<string, HeaderEntry>();\n if (rawHeaders) {\n for (const headerName of Object.keys(rawHeaders)) {\n this.set(headerName, rawHeaders[headerName]);\n }\n }\n }\n\n /**\n * Set a header in this collection with the provided name and value. The name is\n * case-insensitive.\n * @param name - The name of the header to set. This value is case-insensitive.\n * @param value - The value of the header to set.\n */\n public set(name: string, value: string | number | boolean): void {\n this._headersMap.set(normalizeName(name), { name, value: normalizeValue(value) });\n }\n\n /**\n * Get the header value for the provided header name, or undefined if no header exists in this\n * collection with the provided name.\n * @param name - The name of the header. This value is case-insensitive.\n */\n public get(name: string): string | undefined {\n return this._headersMap.get(normalizeName(name))?.value;\n }\n\n /**\n * Get whether or not this header collection contains a header entry for the provided header name.\n * @param name - The name of the header to set. This value is case-insensitive.\n */\n public has(name: string): boolean {\n return this._headersMap.has(normalizeName(name));\n }\n\n /**\n * Remove the header with the provided headerName.\n * @param name - The name of the header to remove.\n */\n public delete(name: string): void {\n this._headersMap.delete(normalizeName(name));\n }\n\n /**\n * Get the JSON object representation of this HTTP header collection.\n */\n public toJSON(options: { preserveCase?: boolean } = {}): RawHttpHeaders {\n const result: RawHttpHeaders = {};\n if (options.preserveCase) {\n for (const entry of this._headersMap.values()) {\n result[entry.name] = entry.value;\n }\n } else {\n for (const [normalizedName, entry] of this._headersMap) {\n result[normalizedName] = entry.value;\n }\n }\n\n return result;\n }\n\n /**\n * Get the string representation of this HTTP header collection.\n */\n public toString(): string {\n return JSON.stringify(this.toJSON({ preserveCase: true }));\n }\n\n /**\n * Iterate over tuples of header [name, value] pairs.\n */\n [Symbol.iterator](): Iterator<[string, string]> {\n return headerIterator(this._headersMap);\n }\n}\n\n/**\n * Creates an object that satisfies the `HttpHeaders` interface.\n * @param rawHeaders - A simple object representing initial headers\n */\nexport function createHttpHeaders(rawHeaders?: RawHttpHeadersInput): HttpHeaders {\n return new HttpHeadersImpl(rawHeaders);\n}\n"]}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface FormData {
|
|
3
|
-
}
|
|
4
|
-
interface Blob {
|
|
5
|
-
}
|
|
6
|
-
interface File {
|
|
7
|
-
}
|
|
8
|
-
interface ReadableStream<R = any> {
|
|
9
|
-
}
|
|
10
|
-
interface TransformStream<I = any, O = any> {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
1
|
export { AbortError } from "./abort-controller/AbortError.js";
|
|
2
|
+
export type { NodeReadableStream, NodeBuffer, WebReadableStream } from "./types-react-native.mjs";
|
|
14
3
|
export { createClientLogger, getLogLevel, setLogLevel, TypeSpecRuntimeLogger, type Debugger, type TypeSpecRuntimeClientLogger, type TypeSpecRuntimeLogLevel, } from "./logger/logger.js";
|
|
15
4
|
export type { BodyPart, FormDataValue, RawHttpHeaders, KeyObject, PxfObject, HttpClient, PipelineRequest, PipelineResponse, SendRequest, TlsSettings, Agent, RequestBodyType, FormDataMap, HttpHeaders, HttpMethods, MultipartRequestBody, TransferProgressEvent, ProxySettings, RawHttpHeadersInput, PipelineRetryOptions, } from "./interfaces.js";
|
|
16
5
|
export { createHttpHeaders } from "./httpHeaders.js";
|
|
@@ -20,8 +9,8 @@ export { type BasicCredential, type BearerTokenCredential, type OAuth2TokenCrede
|
|
|
20
9
|
export { createPipelineRequest, type PipelineRequestOptions } from "./pipelineRequest.js";
|
|
21
10
|
export { type Pipeline, type PipelinePolicy, type AddPolicyOptions, type PipelinePhase, createEmptyPipeline, } from "./pipeline.js";
|
|
22
11
|
export { RestError, isRestError, type RestErrorOptions } from "./restError.js";
|
|
23
|
-
export { stringToUint8Array, uint8ArrayToString, type EncodingType } from "./util/bytesEncoding.
|
|
24
|
-
export { createDefaultHttpClient } from "./defaultHttpClient.
|
|
12
|
+
export { stringToUint8Array, uint8ArrayToString, type EncodingType } from "./util/bytesEncoding-web.mjs";
|
|
13
|
+
export { createDefaultHttpClient } from "./defaultHttpClient-react-native.mjs";
|
|
25
14
|
export { getClient } from "./client/getClient.js";
|
|
26
15
|
export { operationOptionsToRequestParameters } from "./client/operationOptionHelpers.js";
|
|
27
16
|
export { createRestError } from "./client/restError.js";
|
|
@@ -6,8 +6,8 @@ export { createHttpHeaders } from "./httpHeaders.js";
|
|
|
6
6
|
export { createPipelineRequest } from "./pipelineRequest.js";
|
|
7
7
|
export { createEmptyPipeline, } from "./pipeline.js";
|
|
8
8
|
export { RestError, isRestError } from "./restError.js";
|
|
9
|
-
export { stringToUint8Array, uint8ArrayToString } from "./util/bytesEncoding.
|
|
10
|
-
export { createDefaultHttpClient } from "./defaultHttpClient.
|
|
9
|
+
export { stringToUint8Array, uint8ArrayToString } from "./util/bytesEncoding-web.mjs";
|
|
10
|
+
export { createDefaultHttpClient } from "./defaultHttpClient-react-native.mjs";
|
|
11
11
|
export { getClient } from "./client/getClient.js";
|
|
12
12
|
export { operationOptionsToRequestParameters } from "./client/operationOptionHelpers.js";
|
|
13
13
|
export { createRestError } from "./client/restError.js";
|