[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",
|
||||
"module": "dist-esm/src/index.js",
|
||||
"browser": {
|
||||
"./dist-esm/src/base64.js": "./dist-esm/src/base64.browser.js",
|
||||
"./dist-esm/src/url.js": "./dist-esm/src/url.browser.js"
|
||||
"./dist-esm/src/base64.js": "./dist-esm/src/base64.browser.js"
|
||||
},
|
||||
"types": "types/latest/core-client.d.ts",
|
||||
"typesVersions": {
|
||||
|
|
|
@ -18,7 +18,6 @@ import {
|
|||
import { getStreamingResponseStatusCodes } from "./interfaceHelpers";
|
||||
import { getRequestUrl } from "./urlHelpers";
|
||||
import { flattenResponse } from "./utils";
|
||||
import { URL } from "./url";
|
||||
import { getCachedDefaultHttpClient } from "./httpClientCache";
|
||||
import { getOperationRequestInfo } from "./operationHelpers";
|
||||
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.
|
||||
// Licensed under the MIT license.
|
||||
import { URL } from "./url";
|
||||
import { OperationSpec, OperationArguments, QueryCollectionFormat } from "./interfaces";
|
||||
import { getOperationArgumentValueFromParameter } from "./operationHelpers";
|
||||
import { getPathStringFromParameter } from "./interfaceHelpers";
|
||||
|
|
Загрузка…
Ссылка в новой задаче