@azure/core-rest-pipeline
Advanced tools
Comparing version 1.16.4-alpha.20240826.2 to 1.17.0-alpha.20240828.1
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * Defines the default token refresh buffer duration. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const SDK_VERSION = "1.16.4"; | ||
export const DEFAULT_RETRY_POLICY_COUNT = 3; | ||
//# sourceMappingURL=constants.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { logPolicy } from "./policies/logPolicy.js"; | ||
@@ -4,0 +4,0 @@ import { createEmptyPipeline } from "./pipeline.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createFetchHttpClient } from "./fetchHttpClient.js"; | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ import { RestError } from "./restError.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
function normalizeName(name) { | ||
@@ -4,0 +4,0 @@ return name.toLowerCase(); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export { createEmptyPipeline, } from "./pipeline.js"; | ||
@@ -4,0 +4,0 @@ export { createPipelineFromOptions, } from "./createPipelineFromOptions.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export {}; | ||
//# sourceMappingURL=interfaces.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createClientLogger } from "@azure/logger"; | ||
export const logger = createClientLogger("core-rest-pipeline"); | ||
//# sourceMappingURL=log.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import * as http from "node:http"; | ||
@@ -4,0 +4,0 @@ import * as https from "node:https"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
const ValidPhaseNames = new Set(["Deserialize", "Serialize", "Retry", "Sign"]); | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createHttpHeaders } from "./httpHeaders.js"; | ||
@@ -4,0 +4,0 @@ import { randomUUID } from "@azure/core-util"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTokenCycler } from "../util/tokenCycler.js"; | ||
@@ -4,0 +4,0 @@ import { logger as coreLogger } from "../log.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTokenCycler } from "../util/tokenCycler.js"; | ||
@@ -4,0 +4,0 @@ import { logger as coreLogger } from "../log.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/* | ||
@@ -4,0 +4,0 @@ * NOTE: When moving this file, please update "browser" section in package.json |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { throttlingRetryStrategy } from "../retryStrategies/throttlingRetryStrategy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isNodeLike, stringToUint8Array } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { createHttpHeaders } from "../httpHeaders.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { logger as coreLogger } from "../log.js"; | ||
@@ -4,0 +4,0 @@ import { Sanitizer } from "../util/sanitizer.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { randomUUID, stringToUint8Array } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { concat } from "../util/concat.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the ndJsonPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const proxyPolicyName = "proxyPolicy"; | ||
@@ -4,0 +4,0 @@ const errorMessage = "proxyPolicy is not supported in browser environment"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export * from "./proxyPolicy.common.js"; | ||
//# sourceMappingURL=proxyPolicy-browser.mjs.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the redirectPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { delay } from "../util/helpers.js"; | ||
@@ -4,0 +4,0 @@ import { createClientLogger } from "@azure/logger"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the setClientRequestIdPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { throttlingRetryStrategy } from "../retryStrategies/throttlingRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * Name of the TLS Policy |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTracingClient, } from "@azure/core-tracing"; | ||
@@ -4,0 +4,0 @@ import { SDK_VERSION } from "../constants.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getUserAgentHeaderName, getUserAgentValue } from "../util/userAgent.js"; | ||
@@ -4,0 +4,0 @@ const UserAgentHeaderName = getUserAgentHeaderName(); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isError } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { custom } from "./util/inspect.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getRandomIntegerInclusive } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { isThrottlingRetryResponse } from "./throttlingRetryStrategy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export {}; | ||
//# sourceMappingURL=retryStrategy.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { parseHeaderValueAsNumber } from "../util/helpers.js"; | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getRawContent } from "./file.js"; | ||
@@ -4,0 +4,0 @@ import { isNodeReadableStream, isWebReadableStream } from "./typeGuards.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export * from "./concat.common.js"; | ||
//# sourceMappingURL=concat-browser.mjs.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isNodeLike } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { isNodeReadableStream } from "./typeGuards.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ const StandardAbortMessage = "The operation was aborted."; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const custom = {}; | ||
//# sourceMappingURL=inspect.common.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export * from "./inspect.common.js"; | ||
//# sourceMappingURL=inspect-browser.mjs.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isObject } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ const RedactedString = "REDACTED"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { delay } from "./helpers.js"; | ||
@@ -84,4 +84,9 @@ // Default options for the cycler if none are provided | ||
var _a; | ||
return (!cycler.isRefreshing && | ||
((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now()); | ||
if (cycler.isRefreshing) { | ||
return false; | ||
} | ||
if ((token === null || token === void 0 ? void 0 : token.refreshAfterTimestamp) && token.refreshAfterTimestamp < Date.now()) { | ||
return true; | ||
} | ||
return ((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now(); | ||
}, | ||
@@ -88,0 +93,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export function isNodeReadableStream(x) { | ||
@@ -4,0 +4,0 @@ return Boolean(x && typeof x["pipe"] === "function"); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getHeaderName, setPlatformSpecificData } from "./userAgentPlatform.js"; | ||
@@ -4,0 +4,0 @@ import { SDK_VERSION } from "../constants.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * @internal |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ import { createHttpHeaders } from "./httpHeaders.js"; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.ExpiringAccessTokenCache = exports.DefaultTokenRefreshBufferMs = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.DEFAULT_RETRY_POLICY_COUNT = exports.SDK_VERSION = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.createPipelineFromOptions = createPipelineFromOptions; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.createDefaultHttpClient = createDefaultHttpClient; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.createFetchHttpClient = createFetchHttpClient; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.createHttpHeaders = createHttpHeaders; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.createFileFromStream = exports.createFile = exports.auxiliaryAuthenticationHeaderPolicyName = exports.auxiliaryAuthenticationHeaderPolicy = exports.ndJsonPolicyName = exports.ndJsonPolicy = exports.bearerTokenAuthenticationPolicyName = exports.bearerTokenAuthenticationPolicy = exports.formDataPolicyName = exports.formDataPolicy = exports.tlsPolicyName = exports.tlsPolicy = exports.userAgentPolicyName = exports.userAgentPolicy = exports.defaultRetryPolicy = exports.tracingPolicyName = exports.tracingPolicy = exports.retryPolicy = exports.throttlingRetryPolicyName = exports.throttlingRetryPolicy = exports.systemErrorRetryPolicyName = exports.systemErrorRetryPolicy = exports.redirectPolicyName = exports.redirectPolicy = exports.getDefaultProxySettings = exports.proxyPolicyName = exports.proxyPolicy = exports.multipartPolicyName = exports.multipartPolicy = exports.logPolicyName = exports.logPolicy = exports.setClientRequestIdPolicyName = exports.setClientRequestIdPolicy = exports.exponentialRetryPolicyName = exports.exponentialRetryPolicy = exports.decompressResponsePolicyName = exports.decompressResponsePolicy = exports.isRestError = exports.RestError = exports.createPipelineRequest = exports.createHttpHeaders = exports.createDefaultHttpClient = exports.createPipelineFromOptions = exports.createEmptyPipeline = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=interfaces.js.map |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.logger = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.getBodyLength = getBodyLength; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.createEmptyPipeline = createEmptyPipeline; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.createPipelineRequest = createPipelineRequest; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.auxiliaryAuthenticationHeaderPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.bearerTokenAuthenticationPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.decompressResponsePolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.defaultRetryPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.exponentialRetryPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.formDataPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.logPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.multipartPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.ndJsonPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.proxyPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.globalNoProxyList = exports.proxyPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.redirectPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.retryPolicy = retryPolicy; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.setClientRequestIdPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.systemErrorRetryPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.throttlingRetryPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.tlsPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.tracingPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.userAgentPolicyName = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.RestError = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.exponentialRetryStrategy = exponentialRetryStrategy; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=retryStrategy.js.map |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.isThrottlingRetryResponse = isThrottlingRetryResponse; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.concat = concat; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.concat = concat; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.getRawContent = getRawContent; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.delay = delay; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.custom = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.custom = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.Sanitizer = void 0; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -88,4 +88,9 @@ exports.DEFAULT_CYCLER_OPTIONS = void 0; | ||
var _a; | ||
return (!cycler.isRefreshing && | ||
((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now()); | ||
if (cycler.isRefreshing) { | ||
return false; | ||
} | ||
if ((token === null || token === void 0 ? void 0 : token.refreshAfterTimestamp) && token.refreshAfterTimestamp < Date.now()) { | ||
return true; | ||
} | ||
return ((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now(); | ||
}, | ||
@@ -92,0 +97,0 @@ /** |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.isNodeReadableStream = isNodeReadableStream; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.getUserAgentHeaderName = getUserAgentHeaderName; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.getHeaderName = getHeaderName; |
"use strict"; | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ exports.createXhrHttpClient = createXhrHttpClient; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * Defines the default token refresh buffer duration. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const SDK_VERSION = "1.16.4"; | ||
export const DEFAULT_RETRY_POLICY_COUNT = 3; | ||
//# sourceMappingURL=constants.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { logPolicy } from "./policies/logPolicy.js"; | ||
@@ -4,0 +4,0 @@ import { createEmptyPipeline } from "./pipeline.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createNodeHttpClient } from "./nodeHttpClient.js"; | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ import { RestError } from "./restError.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
function normalizeName(name) { | ||
@@ -4,0 +4,0 @@ return name.toLowerCase(); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export { createEmptyPipeline, } from "./pipeline.js"; | ||
@@ -4,0 +4,0 @@ export { createPipelineFromOptions, } from "./createPipelineFromOptions.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export {}; | ||
//# sourceMappingURL=interfaces.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createClientLogger } from "@azure/logger"; | ||
export const logger = createClientLogger("core-rest-pipeline"); | ||
//# sourceMappingURL=log.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import * as http from "node:http"; | ||
@@ -4,0 +4,0 @@ import * as https from "node:https"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
const ValidPhaseNames = new Set(["Deserialize", "Serialize", "Retry", "Sign"]); | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createHttpHeaders } from "./httpHeaders.js"; | ||
@@ -4,0 +4,0 @@ import { randomUUID } from "@azure/core-util"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTokenCycler } from "../util/tokenCycler.js"; | ||
@@ -4,0 +4,0 @@ import { logger as coreLogger } from "../log.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTokenCycler } from "../util/tokenCycler.js"; | ||
@@ -4,0 +4,0 @@ import { logger as coreLogger } from "../log.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the decompressResponsePolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { throttlingRetryStrategy } from "../retryStrategies/throttlingRetryStrategy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isNodeLike, stringToUint8Array } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { createHttpHeaders } from "../httpHeaders.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { logger as coreLogger } from "../log.js"; | ||
@@ -4,0 +4,0 @@ import { Sanitizer } from "../util/sanitizer.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { randomUUID, stringToUint8Array } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { concat } from "../util/concat.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the ndJsonPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const proxyPolicyName = "proxyPolicy"; | ||
@@ -4,0 +4,0 @@ const errorMessage = "proxyPolicy is not supported in browser environment"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { HttpsProxyAgent } from "https-proxy-agent"; | ||
@@ -4,0 +4,0 @@ import { HttpProxyAgent } from "http-proxy-agent"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the redirectPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { delay } from "../util/helpers.js"; | ||
@@ -4,0 +4,0 @@ import { createClientLogger } from "@azure/logger"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the setClientRequestIdPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { throttlingRetryStrategy } from "../retryStrategies/throttlingRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * Name of the TLS Policy |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTracingClient, } from "@azure/core-tracing"; | ||
@@ -4,0 +4,0 @@ import { SDK_VERSION } from "../constants.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getUserAgentHeaderName, getUserAgentValue } from "../util/userAgent.js"; | ||
@@ -4,0 +4,0 @@ const UserAgentHeaderName = getUserAgentHeaderName(); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isError } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { custom } from "./util/inspect.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getRandomIntegerInclusive } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { isThrottlingRetryResponse } from "./throttlingRetryStrategy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export {}; | ||
//# sourceMappingURL=retryStrategy.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { parseHeaderValueAsNumber } from "../util/helpers.js"; | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getRawContent } from "./file.js"; | ||
@@ -4,0 +4,0 @@ import { isNodeReadableStream, isWebReadableStream } from "./typeGuards.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { __asyncGenerator, __asyncValues, __await } from "tslib"; | ||
@@ -4,0 +4,0 @@ import { Readable } from "node:stream"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isNodeLike } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { isNodeReadableStream } from "./typeGuards.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ const StandardAbortMessage = "The operation was aborted."; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const custom = {}; | ||
//# sourceMappingURL=inspect.common.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { inspect } from "node:util"; | ||
export const custom = inspect.custom; | ||
//# sourceMappingURL=inspect.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isObject } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ const RedactedString = "REDACTED"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { delay } from "./helpers.js"; | ||
@@ -84,4 +84,9 @@ // Default options for the cycler if none are provided | ||
var _a; | ||
return (!cycler.isRefreshing && | ||
((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now()); | ||
if (cycler.isRefreshing) { | ||
return false; | ||
} | ||
if ((token === null || token === void 0 ? void 0 : token.refreshAfterTimestamp) && token.refreshAfterTimestamp < Date.now()) { | ||
return true; | ||
} | ||
return ((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now(); | ||
}, | ||
@@ -88,0 +93,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export function isNodeReadableStream(x) { | ||
@@ -4,0 +4,0 @@ return Boolean(x && typeof x["pipe"] === "function"); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getHeaderName, setPlatformSpecificData } from "./userAgentPlatform.js"; | ||
@@ -4,0 +4,0 @@ import { SDK_VERSION } from "../constants.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import * as os from "node:os"; | ||
@@ -4,0 +4,0 @@ import * as process from "node:process"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ import { createHttpHeaders } from "./httpHeaders.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * Defines the default token refresh buffer duration. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const SDK_VERSION = "1.16.4"; | ||
export const DEFAULT_RETRY_POLICY_COUNT = 3; | ||
//# sourceMappingURL=constants.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { logPolicy } from "./policies/logPolicy.js"; | ||
@@ -4,0 +4,0 @@ import { createEmptyPipeline } from "./pipeline.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createXhrHttpClient } from "./xhrHttpClient.js"; | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ import { RestError } from "./restError.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
function normalizeName(name) { | ||
@@ -4,0 +4,0 @@ return name.toLowerCase(); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export { createEmptyPipeline, } from "./pipeline.js"; | ||
@@ -4,0 +4,0 @@ export { createPipelineFromOptions, } from "./createPipelineFromOptions.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export {}; | ||
//# sourceMappingURL=interfaces.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createClientLogger } from "@azure/logger"; | ||
export const logger = createClientLogger("core-rest-pipeline"); | ||
//# sourceMappingURL=log.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import * as http from "node:http"; | ||
@@ -4,0 +4,0 @@ import * as https from "node:https"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
const ValidPhaseNames = new Set(["Deserialize", "Serialize", "Retry", "Sign"]); | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createHttpHeaders } from "./httpHeaders.js"; | ||
@@ -4,0 +4,0 @@ import { randomUUID } from "@azure/core-util"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTokenCycler } from "../util/tokenCycler.js"; | ||
@@ -4,0 +4,0 @@ import { logger as coreLogger } from "../log.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTokenCycler } from "../util/tokenCycler.js"; | ||
@@ -4,0 +4,0 @@ import { logger as coreLogger } from "../log.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the decompressResponsePolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { throttlingRetryStrategy } from "../retryStrategies/throttlingRetryStrategy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isNodeLike, stringToUint8Array } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { createHttpHeaders } from "../httpHeaders.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { logger as coreLogger } from "../log.js"; | ||
@@ -4,0 +4,0 @@ import { Sanitizer } from "../util/sanitizer.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { randomUUID, stringToUint8Array } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { concat } from "../util/concat.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the ndJsonPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const proxyPolicyName = "proxyPolicy"; | ||
@@ -4,0 +4,0 @@ const errorMessage = "proxyPolicy is not supported in browser environment"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export * from "./proxyPolicy.common.js"; | ||
//# sourceMappingURL=proxyPolicy-react-native.mjs.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the redirectPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { delay } from "../util/helpers.js"; | ||
@@ -4,0 +4,0 @@ import { createClientLogger } from "@azure/logger"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * The programmatic identifier of the setClientRequestIdPolicy. |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { exponentialRetryStrategy } from "../retryStrategies/exponentialRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { throttlingRetryStrategy } from "../retryStrategies/throttlingRetryStrategy.js"; | ||
@@ -4,0 +4,0 @@ import { retryPolicy } from "./retryPolicy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
/** | ||
@@ -4,0 +4,0 @@ * Name of the TLS Policy |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { createTracingClient, } from "@azure/core-tracing"; | ||
@@ -4,0 +4,0 @@ import { SDK_VERSION } from "../constants.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getUserAgentHeaderName, getUserAgentValue } from "../util/userAgent.js"; | ||
@@ -4,0 +4,0 @@ const UserAgentHeaderName = getUserAgentHeaderName(); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isError } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { custom } from "./util/inspect.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getRandomIntegerInclusive } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { isThrottlingRetryResponse } from "./throttlingRetryStrategy.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export {}; | ||
//# sourceMappingURL=retryStrategy.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { parseHeaderValueAsNumber } from "../util/helpers.js"; | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getRawContent } from "./file.js"; | ||
@@ -4,0 +4,0 @@ import { isNodeReadableStream, isWebReadableStream } from "./typeGuards.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export * from "./concat.common.js"; | ||
//# sourceMappingURL=concat-react-native.mjs.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isNodeLike } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ import { isNodeReadableStream } from "./typeGuards.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ const StandardAbortMessage = "The operation was aborted."; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export const custom = {}; | ||
//# sourceMappingURL=inspect.common.js.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export * from "./inspect.common.js"; | ||
//# sourceMappingURL=inspect-react-native.mjs.map |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { isObject } from "@azure/core-util"; | ||
@@ -4,0 +4,0 @@ const RedactedString = "REDACTED"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { delay } from "./helpers.js"; | ||
@@ -84,4 +84,9 @@ // Default options for the cycler if none are provided | ||
var _a; | ||
return (!cycler.isRefreshing && | ||
((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now()); | ||
if (cycler.isRefreshing) { | ||
return false; | ||
} | ||
if ((token === null || token === void 0 ? void 0 : token.refreshAfterTimestamp) && token.refreshAfterTimestamp < Date.now()) { | ||
return true; | ||
} | ||
return ((_a = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a !== void 0 ? _a : 0) - options.refreshWindowInMs < Date.now(); | ||
}, | ||
@@ -88,0 +93,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
export function isNodeReadableStream(x) { | ||
@@ -4,0 +4,0 @@ return Boolean(x && typeof x["pipe"] === "function"); |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { getHeaderName, setPlatformSpecificData } from "./userAgentPlatform.js"; | ||
@@ -4,0 +4,0 @@ import { SDK_VERSION } from "../constants.js"; |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { Platform } from "react-native"; | ||
@@ -4,0 +4,0 @@ /** |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// Licensed under the MIT License. | ||
import { AbortError } from "@azure/abort-controller"; | ||
@@ -4,0 +4,0 @@ import { createHttpHeaders } from "./httpHeaders.js"; |
{ | ||
"name": "@azure/core-rest-pipeline", | ||
"version": "1.16.4-alpha.20240826.2", | ||
"version": "1.17.0-alpha.20240828.1", | ||
"description": "Isomorphic client library for making HTTP requests in node.js and browser.", | ||
@@ -94,3 +94,3 @@ "sdk-type": "client", | ||
"@azure/abort-controller": "^2.0.0", | ||
"@azure/core-auth": "^1.4.0", | ||
"@azure/core-auth": ">=1.8.0-alpha <1.8.0-alphb", | ||
"@azure/core-tracing": "^1.0.1", | ||
@@ -97,0 +97,0 @@ "@azure/core-util": "^1.9.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1997593
20428
+ Added@azure/core-auth@1.8.0-alpha.20240912.4(transitive)
- Removed@azure/core-auth@1.8.0(transitive)