Skip to content

Commit

Permalink
fix: codegen for using pure JS hasher in RN (aws#998)
Browse files Browse the repository at this point in the history
The @aws-crypto/sha256-browser package doesn't work properly in ReactNative. So we use replace it will pure JS hasher(@aws-crypto/sha256-js) instead.
Codegen for smithy-lang/smithy-typescript#144
  • Loading branch information
AllanZhengYP authored and trivikr committed Mar 24, 2020
1 parent f223d56 commit 12414f8
Show file tree
Hide file tree
Showing 436 changed files with 654 additions and 0 deletions.
1 change: 1 addition & 0 deletions clients/client-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-accessanalyzer/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-acm-pca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-acm-pca/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-acm/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-alexa-for-business/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-alexa-for-business/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-amplify/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-api-gateway/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-apigatewaymanagementapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-apigatewaymanagementapi/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-apigatewayv2/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-app-mesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-app-mesh/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-appconfig/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-application-auto-scaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-application-auto-scaling/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-application-discovery-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-application-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-application-insights/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-appstream/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-appsync/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-athena/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-auto-scaling-plans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-auto-scaling-plans/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
1 change: 1 addition & 0 deletions clients/client-auto-scaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"sideEffects": false,
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0-alpha.0",
"@aws-crypto/sha256-js": "^1.0.0-alpha.0",
"@aws-sdk/config-resolver": "^1.0.0-alpha.13",
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.6",
"@aws-sdk/fetch-http-handler": "^1.0.0-alpha.8",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-auto-scaling/runtimeConfig.rn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
import { Sha256 } from "@aws-crypto/sha256-js";
import { streamCollector } from "@aws-sdk/stream-collector-rn";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { name, version } from "./package.json";
Expand All @@ -8,6 +9,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
requestHandler: new FetchHttpHandler({ bufferBody: true }),
sha256: Sha256,
streamCollector,
urlParser: parseUrl,
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`,
Expand Down
Loading

0 comments on commit 12414f8

Please sign in to comment.