Skip to content

Commit

Permalink
Update package json azure identity (#22986)
Browse files Browse the repository at this point in the history
* Update package json azure identity

"@azure/identity": "^2.0.1",

* fixup
  • Loading branch information
jay-most authored Sep 9, 2022
1 parent 391c29f commit 6a3d6c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sdk/cosmosdb/cosmos/src/request/request.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { logger } from "@azure/identity";
import { setAuthorizationHeader } from "../auth";
import { Constants, HTTPMethod, jsonStringifyAndEscapeNonASCII, ResourceType } from "../common";
import { CosmosClientOptions } from "../CosmosClientOptions";
import { PartitionKey } from "../documents";
import { CosmosHeaders } from "../queryExecutionContext";
import { FeedOptions, RequestOptions } from "./index";

import { defaultLogger } from "../common/logger";
// ----------------------------------------------------------------------------
// Utility methods
//
Expand Down Expand Up @@ -133,7 +132,7 @@ export async function getHeaders({
headers[Constants.HttpHeaders.DedicatedGatewayPerRequestCacheStaleness] =
options.maxIntegratedCacheStalenessInMs.toString();
} else {
logger.error(
defaultLogger.error(
`RangeError: maxIntegratedCacheStalenessInMs "${options.maxIntegratedCacheStalenessInMs}" is not a valid parameter.`
);
headers[Constants.HttpHeaders.DedicatedGatewayPerRequestCacheStaleness] = "null";
Expand Down

0 comments on commit 6a3d6c0

Please sign in to comment.