Skip to content

Commit

Permalink
fix(endpoint): undo changes to endpoint v1 resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Oct 14, 2022
1 parent 147b366 commit ac6dcdc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface EndpointsInputConfig {
}

interface PreviouslyResolved {
regionInfoProvider?: RegionInfoProvider;
regionInfoProvider: RegionInfoProvider;
urlParser: UrlParser;
region: Provider<string>;
useFipsEndpoint: Provider<boolean>;
Expand Down Expand Up @@ -56,7 +56,7 @@ export const resolveEndpointsConfig = <T>(
tls: input.tls ?? true,
endpoint: endpoint
? normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint)
: () => getEndpointFromRegion({ ...input, regionInfoProvider: input.regionInfoProvider!, useDualstackEndpoint, useFipsEndpoint }),
: () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }),
isCustomEndpoint: !!endpoint,
useDualstackEndpoint,
};
Expand Down

0 comments on commit ac6dcdc

Please sign in to comment.