Skip to content

Commit 8795472

Browse files
authored
[sort-imports] update core-http with respect to sort-imports rule (Azure#19037)
* updated with respect to ```sort-imports``` rule * prettier
1 parent cecb3a9 commit 8795472

File tree

76 files changed

+299
-304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+299
-304
lines changed

sdk/core/core-http/src/createSpanLegacy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// were a part of the GA'd library and can't be removed until the next major
66
// release. They currently get called always, even if tracing is not enabled.
77

8-
import { createSpanFunction as coreTracingCreateSpanFunction, Span } from "@azure/core-tracing";
8+
import { Span, createSpanFunction as coreTracingCreateSpanFunction } from "@azure/core-tracing";
99
import { OperationOptions } from "./operationOptions";
1010

1111
/**
@@ -27,9 +27,9 @@ export interface SpanConfig {
2727

2828
/**
2929
* This function is only here for compatibility. Use createSpanFunction in core-tracing.
30-
*
30+
*
3131
* @deprecated This function is only here for compatibility. Use createSpanFunction in core-tracing.
32-
* @hidden
32+
* @hidden
3333
3434
* @param spanConfig - The name of the operation being performed.
3535
* @param tracingOptions - The options for the underlying http request.

sdk/core/core-http/src/credentials/accessTokenRefresher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { AccessToken, TokenCredential, GetTokenOptions } from "@azure/core-auth";
4+
import { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
55

66
/**
77
* Helps the core-http token authentication policies with requesting a new token if we're not currently waiting for a new token.

sdk/core/core-http/src/credentials/apiKeyCredentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Licensed under the MIT license.
33

44
import { HttpHeaders } from "../httpHeaders";
5-
import { WebResourceLike } from "../webResource";
65
import { ServiceClientCredentials } from "./serviceClientCredentials";
6+
import { WebResourceLike } from "../webResource";
77

88
/**
99
* Describes the options to be provided while creating an instance of ApiKeyCredentials

sdk/core/core-http/src/credentials/basicAuthenticationCredentials.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { HttpHeaders } from "../httpHeaders";
54
import * as base64 from "../util/base64";
65
import { Constants } from "../util/constants";
7-
import { WebResourceLike } from "../webResource";
6+
import { HttpHeaders } from "../httpHeaders";
87
import { ServiceClientCredentials } from "./serviceClientCredentials";
8+
import { WebResourceLike } from "../webResource";
9+
910
const HeaderConstants = Constants.HeaderConstants;
1011
const DEFAULT_AUTHORIZATION_SCHEME = "Basic";
1112

sdk/core/core-http/src/credentials/topicCredentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { ApiKeyCredentials, ApiKeyCredentialOptions } from "./apiKeyCredentials";
4+
import { ApiKeyCredentialOptions, ApiKeyCredentials } from "./apiKeyCredentials";
55

66
/**
77
* A {@link TopicCredentials} object used for Azure Event Grid.

sdk/core/core-http/src/httpClientCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { HttpClient } from "./httpClient";
54
import { DefaultHttpClient } from "./defaultHttpClient";
5+
import { HttpClient } from "./httpClient";
66

77
let cachedHttpClient: HttpClient | undefined;
88

sdk/core/core-http/src/httpOperationResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { WebResourceLike } from "./webResource";
54
import { HttpHeadersLike } from "./httpHeaders";
5+
import { WebResourceLike } from "./webResource";
66

77
/**
88
* The properties on an HTTP response which will always be present.

sdk/core/core-http/src/nodeFetchHttpClient.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import * as tough from "tough-cookie";
54
import * as http from "http";
65
import * as https from "https";
7-
import node_fetch from "node-fetch";
8-
import FormData from "form-data";
9-
import { AbortError, AbortController } from "@azure/abort-controller";
10-
11-
import { HttpOperationResponse } from "./httpOperationResponse";
6+
import * as tough from "tough-cookie";
7+
import { AbortController, AbortError } from "@azure/abort-controller";
8+
import { HttpHeaders, HttpHeadersLike } from "./httpHeaders";
9+
import { ProxyAgent, createProxyAgent, isUrlHttps } from "./proxyAgent";
10+
import { Readable, Transform } from "stream";
1211
import { TransferProgressEvent, WebResourceLike } from "./webResource";
13-
import { createProxyAgent, ProxyAgent, isUrlHttps } from "./proxyAgent";
12+
import FormData from "form-data";
1413
import { HttpClient } from "./httpClient";
15-
import { Readable, Transform } from "stream";
16-
import { HttpHeaders, HttpHeadersLike } from "./httpHeaders";
14+
import { HttpOperationResponse } from "./httpOperationResponse";
1715
import { RestError } from "./restError";
1816
import { logger } from "./log";
17+
import node_fetch from "node-fetch";
1918

2019
interface AgentCache {
2120
httpAgent?: http.Agent;

sdk/core/core-http/src/operationOptions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
3+
4+
import { RequestOptionsBase, TransferProgressEvent } from "./webResource";
35
import { AbortSignalLike } from "@azure/abort-controller";
4-
import { OperationTracingOptions } from "@azure/core-tracing";
5-
import { TransferProgressEvent, RequestOptionsBase } from "./webResource";
66
import { HttpOperationResponse } from "./httpOperationResponse";
7+
import { OperationTracingOptions } from "@azure/core-tracing";
78

89
/**
910
* The base options type for all operations.

sdk/core/core-http/src/operationParameter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { QueryCollectionFormat } from "./queryCollectionFormat";
54
import { Mapper } from "./serializer";
5+
import { QueryCollectionFormat } from "./queryCollectionFormat";
66

77
/**
88
* A path which describes how to access a particular property in a given object data source. May be a single property name, an array that denotes nested property names, or a set of multiple named properties with paths in the case of complex object values.

0 commit comments

Comments
 (0)