[core][client] Stop importing URL from url (#17022)
* [core][client] Stop importing URL from url * fixed new linter new line error in package.json
This commit is contained in:
Родитель
759218914f
Коммит
2bd2e7703a
|
@ -6,8 +6,7 @@
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist-esm/src/index.js",
|
"module": "dist-esm/src/index.js",
|
||||||
"browser": {
|
"browser": {
|
||||||
"./dist-esm/src/base64.js": "./dist-esm/src/base64.browser.js",
|
"./dist-esm/src/base64.js": "./dist-esm/src/base64.browser.js"
|
||||||
"./dist-esm/src/url.js": "./dist-esm/src/url.browser.js"
|
|
||||||
},
|
},
|
||||||
"types": "types/latest/core-client.d.ts",
|
"types": "types/latest/core-client.d.ts",
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
|
|
|
@ -18,7 +18,6 @@ import {
|
||||||
import { getStreamingResponseStatusCodes } from "./interfaceHelpers";
|
import { getStreamingResponseStatusCodes } from "./interfaceHelpers";
|
||||||
import { getRequestUrl } from "./urlHelpers";
|
import { getRequestUrl } from "./urlHelpers";
|
||||||
import { flattenResponse } from "./utils";
|
import { flattenResponse } from "./utils";
|
||||||
import { URL } from "./url";
|
|
||||||
import { getCachedDefaultHttpClient } from "./httpClientCache";
|
import { getCachedDefaultHttpClient } from "./httpClientCache";
|
||||||
import { getOperationRequestInfo } from "./operationHelpers";
|
import { getOperationRequestInfo } from "./operationHelpers";
|
||||||
import { createClientPipeline } from "./pipeline";
|
import { createClientPipeline } from "./pipeline";
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
// Copyright (c) Microsoft Corporation.
|
|
||||||
// Licensed under the MIT license.
|
|
||||||
|
|
||||||
const url = URL;
|
|
||||||
const urlSearchParams = URLSearchParams;
|
|
||||||
|
|
||||||
export { url as URL, urlSearchParams as URLSearchParams };
|
|
|
@ -1,4 +0,0 @@
|
||||||
// Copyright (c) Microsoft Corporation.
|
|
||||||
// Licensed under the MIT license.
|
|
||||||
|
|
||||||
export { URL, URLSearchParams } from "url";
|
|
|
@ -1,6 +1,5 @@
|
||||||
// Copyright (c) Microsoft Corporation.
|
// Copyright (c) Microsoft Corporation.
|
||||||
// Licensed under the MIT license.
|
// Licensed under the MIT license.
|
||||||
import { URL } from "./url";
|
|
||||||
import { OperationSpec, OperationArguments, QueryCollectionFormat } from "./interfaces";
|
import { OperationSpec, OperationArguments, QueryCollectionFormat } from "./interfaces";
|
||||||
import { getOperationArgumentValueFromParameter } from "./operationHelpers";
|
import { getOperationArgumentValueFromParameter } from "./operationHelpers";
|
||||||
import { getPathStringFromParameter } from "./interfaceHelpers";
|
import { getPathStringFromParameter } from "./interfaceHelpers";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче