Skip to content

Commit

Permalink
fix(url-parser): merge browser and node url parser, add rn url parser (
Browse files Browse the repository at this point in the history
…#1903)

* feat(url-parser-native): add rn specific url parser

* feat(url-parser): deprecate url-parser-node and url-parser-browser

Given both browsers and Node10 support global WHATWG URL(), so merge them
to the same package.
  • Loading branch information
AllanZhengYP authored Jan 14, 2021
1 parent f41e199 commit 99be092
Show file tree
Hide file tree
Showing 1,282 changed files with 1,272 additions and 3,935 deletions.
4 changes: 2 additions & 2 deletions clients/client-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@aws-sdk/protocol-http": "3.2.0",
"@aws-sdk/smithy-client": "3.2.0",
"@aws-sdk/types": "3.1.0",
"@aws-sdk/url-parser-browser": "3.1.0",
"@aws-sdk/url-parser-node": "3.1.0",
"@aws-sdk/url-parser": "3.0.0",
"@aws-sdk/url-parser-native": "3.0.0",
"@aws-sdk/util-base64-browser": "3.1.0",
"@aws-sdk/util-base64-node": "3.1.0",
"@aws-sdk/util-body-length-browser": "3.1.0",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-accessanalyzer/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidProvider } from "@aws-sdk/invalid-dependency";
import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry";
import { parseUrl } from "@aws-sdk/url-parser-browser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
Expand All @@ -31,7 +30,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { parseUrl } from "@aws-sdk/url-parser-native";
import { ClientDefaults } from "./AccessAnalyzerClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand Down
2 changes: 2 additions & 0 deletions clients/client-accessanalyzer/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";

/**
* @internal
Expand All @@ -10,4 +11,5 @@ export const ClientSharedValues = {
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "AccessAnalyzer",
urlParser: parseUrl,
};
2 changes: 0 additions & 2 deletions clients/client-accessanalyzer/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
Expand All @@ -33,7 +32,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new NodeHttpHandler(),
sha256: Hash.bind(null, "sha256"),
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
4 changes: 2 additions & 2 deletions clients/client-acm-pca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@aws-sdk/protocol-http": "3.2.0",
"@aws-sdk/smithy-client": "3.2.0",
"@aws-sdk/types": "3.1.0",
"@aws-sdk/url-parser-browser": "3.1.0",
"@aws-sdk/url-parser-node": "3.1.0",
"@aws-sdk/url-parser": "3.0.0",
"@aws-sdk/url-parser-native": "3.0.0",
"@aws-sdk/util-base64-browser": "3.1.0",
"@aws-sdk/util-base64-node": "3.1.0",
"@aws-sdk/util-body-length-browser": "3.1.0",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-acm-pca/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidProvider } from "@aws-sdk/invalid-dependency";
import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry";
import { parseUrl } from "@aws-sdk/url-parser-browser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
Expand All @@ -31,7 +30,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
2 changes: 1 addition & 1 deletion clients/client-acm-pca/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { parseUrl } from "@aws-sdk/url-parser-native";
import { ClientDefaults } from "./ACMPCAClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand Down
2 changes: 2 additions & 0 deletions clients/client-acm-pca/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";

/**
* @internal
Expand All @@ -10,4 +11,5 @@ export const ClientSharedValues = {
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "ACM PCA",
urlParser: parseUrl,
};
2 changes: 0 additions & 2 deletions clients/client-acm-pca/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
Expand All @@ -33,7 +32,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new NodeHttpHandler(),
sha256: Hash.bind(null, "sha256"),
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
4 changes: 2 additions & 2 deletions clients/client-acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@aws-sdk/protocol-http": "3.2.0",
"@aws-sdk/smithy-client": "3.2.0",
"@aws-sdk/types": "3.1.0",
"@aws-sdk/url-parser-browser": "3.1.0",
"@aws-sdk/url-parser-node": "3.1.0",
"@aws-sdk/url-parser": "3.0.0",
"@aws-sdk/url-parser-native": "3.0.0",
"@aws-sdk/util-base64-browser": "3.1.0",
"@aws-sdk/util-base64-node": "3.1.0",
"@aws-sdk/util-body-length-browser": "3.1.0",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-acm/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidProvider } from "@aws-sdk/invalid-dependency";
import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry";
import { parseUrl } from "@aws-sdk/url-parser-browser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
Expand All @@ -31,7 +30,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
2 changes: 1 addition & 1 deletion clients/client-acm/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { parseUrl } from "@aws-sdk/url-parser-native";
import { ClientDefaults } from "./ACMClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand Down
2 changes: 2 additions & 0 deletions clients/client-acm/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";

/**
* @internal
Expand All @@ -10,4 +11,5 @@ export const ClientSharedValues = {
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "ACM",
urlParser: parseUrl,
};
2 changes: 0 additions & 2 deletions clients/client-acm/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
Expand All @@ -33,7 +32,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new NodeHttpHandler(),
sha256: Hash.bind(null, "sha256"),
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
4 changes: 2 additions & 2 deletions clients/client-alexa-for-business/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@aws-sdk/protocol-http": "3.2.0",
"@aws-sdk/smithy-client": "3.2.0",
"@aws-sdk/types": "3.1.0",
"@aws-sdk/url-parser-browser": "3.1.0",
"@aws-sdk/url-parser-node": "3.1.0",
"@aws-sdk/url-parser": "3.0.0",
"@aws-sdk/url-parser-native": "3.0.0",
"@aws-sdk/util-base64-browser": "3.1.0",
"@aws-sdk/util-base64-node": "3.1.0",
"@aws-sdk/util-body-length-browser": "3.1.0",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-alexa-for-business/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidProvider } from "@aws-sdk/invalid-dependency";
import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry";
import { parseUrl } from "@aws-sdk/url-parser-browser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
Expand All @@ -31,7 +30,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { parseUrl } from "@aws-sdk/url-parser-native";
import { ClientDefaults } from "./AlexaForBusinessClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand Down
2 changes: 2 additions & 0 deletions clients/client-alexa-for-business/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";

/**
* @internal
Expand All @@ -10,4 +11,5 @@ export const ClientSharedValues = {
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "Alexa For Business",
urlParser: parseUrl,
};
2 changes: 0 additions & 2 deletions clients/client-alexa-for-business/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
Expand All @@ -33,7 +32,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new NodeHttpHandler(),
sha256: Hash.bind(null, "sha256"),
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
4 changes: 2 additions & 2 deletions clients/client-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@aws-sdk/protocol-http": "3.2.0",
"@aws-sdk/smithy-client": "3.2.0",
"@aws-sdk/types": "3.1.0",
"@aws-sdk/url-parser-browser": "3.1.0",
"@aws-sdk/url-parser-node": "3.1.0",
"@aws-sdk/url-parser": "3.0.0",
"@aws-sdk/url-parser-native": "3.0.0",
"@aws-sdk/util-base64-browser": "3.1.0",
"@aws-sdk/util-base64-node": "3.1.0",
"@aws-sdk/util-body-length-browser": "3.1.0",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-amplify/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidProvider } from "@aws-sdk/invalid-dependency";
import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry";
import { parseUrl } from "@aws-sdk/url-parser-browser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
Expand All @@ -31,7 +30,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
2 changes: 1 addition & 1 deletion clients/client-amplify/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { parseUrl } from "@aws-sdk/url-parser-native";
import { ClientDefaults } from "./AmplifyClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand Down
2 changes: 2 additions & 0 deletions clients/client-amplify/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";

/**
* @internal
Expand All @@ -10,4 +11,5 @@ export const ClientSharedValues = {
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "Amplify",
urlParser: parseUrl,
};
2 changes: 0 additions & 2 deletions clients/client-amplify/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
Expand All @@ -33,7 +32,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new NodeHttpHandler(),
sha256: Hash.bind(null, "sha256"),
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
4 changes: 2 additions & 2 deletions clients/client-amplifybackend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@aws-sdk/protocol-http": "3.2.0",
"@aws-sdk/smithy-client": "3.2.0",
"@aws-sdk/types": "3.1.0",
"@aws-sdk/url-parser-browser": "3.1.0",
"@aws-sdk/url-parser-node": "3.1.0",
"@aws-sdk/url-parser": "3.0.0",
"@aws-sdk/url-parser-native": "3.0.0",
"@aws-sdk/util-base64-browser": "3.1.0",
"@aws-sdk/util-base64-node": "3.1.0",
"@aws-sdk/util-body-length-browser": "3.1.0",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-amplifybackend/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidProvider } from "@aws-sdk/invalid-dependency";
import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry";
import { parseUrl } from "@aws-sdk/url-parser-browser";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
Expand All @@ -31,7 +30,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { parseUrl } from "@aws-sdk/url-parser-native";
import { ClientDefaults } from "./AmplifyBackendClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand Down
2 changes: 2 additions & 0 deletions clients/client-amplifybackend/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";

/**
* @internal
Expand All @@ -10,4 +11,5 @@ export const ClientSharedValues = {
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
serviceId: "AmplifyBackend",
urlParser: parseUrl,
};
2 changes: 0 additions & 2 deletions clients/client-amplifybackend/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
Expand All @@ -33,7 +32,6 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
requestHandler: new NodeHttpHandler(),
sha256: Hash.bind(null, "sha256"),
streamCollector,
urlParser: parseUrl,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
};
4 changes: 2 additions & 2 deletions clients/client-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@aws-sdk/protocol-http": "3.2.0",
"@aws-sdk/smithy-client": "3.2.0",
"@aws-sdk/types": "3.1.0",
"@aws-sdk/url-parser-browser": "3.1.0",
"@aws-sdk/url-parser-node": "3.1.0",
"@aws-sdk/url-parser": "3.0.0",
"@aws-sdk/url-parser-native": "3.0.0",
"@aws-sdk/util-base64-browser": "3.1.0",
"@aws-sdk/util-base64-node": "3.1.0",
"@aws-sdk/util-body-length-browser": "3.1.0",
Expand Down
Loading

0 comments on commit 99be092

Please sign in to comment.