Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(invalid-dependency): add invalidAsyncFunction which rejects with an Error #1719

Merged
merged 9 commits into from
Dec 1, 2020
6 changes: 3 additions & 3 deletions clients/client-accessanalyzer/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-acm-pca/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-acm/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-alexa-for-business/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-amplify/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-api-gateway/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-apigatewayv2/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-app-mesh/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-appconfig/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-appflow/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-application-insights/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-appstream/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-appsync/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-athena/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-browser";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
import { invalidFunction } from "@aws-sdk/invalid-dependency";
import { invalidAsyncFunction } 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";
Expand All @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidFunction("Region is missing") as any,
region: invalidAsyncFunction("Region is missing") as any,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
streamCollector,
Expand Down
Loading