forked from smithy-lang/smithy-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename defaultClientConfiguration to defaultExtensionConfiguration
- Loading branch information
1 parent
a6d8ea5
commit 48a5cd2
Showing
9 changed files
with
60 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@smithy/smithy-client": patch | ||
"@smithy/types": patch | ||
--- | ||
|
||
Rename defaultClientConfiguration to defaultExtensionConfiguration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
packages/smithy-client/src/extensions/defaultClientConfiguration.ts
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
packages/smithy-client/src/extensions/defaultExtensionConfiguration.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import type { DefaultExtensionConfiguration } from "@smithy/types"; | ||
|
||
import { getChecksumConfiguration, resolveChecksumRuntimeConfig } from "./checksum"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export type DefaultExtensionConfigType = Parameters<typeof getChecksumConfiguration>[0]; | ||
|
||
/** | ||
* @internal | ||
* | ||
* Helper function to resolve default extension configuration from runtime config | ||
*/ | ||
export const getDefaultExtensionConfiguration = (runtimeConfig: DefaultExtensionConfigType) => { | ||
return { | ||
...getChecksumConfiguration(runtimeConfig), | ||
}; | ||
}; | ||
|
||
/** | ||
* @deprecated use getDefaultExtensionConfiguration | ||
* | ||
* Helper function to resolve default extension configuration from runtime config | ||
*/ | ||
export const getDefaultClientConfiguration = getDefaultExtensionConfiguration; | ||
|
||
/** | ||
* @internal | ||
* | ||
* Helper function to resolve runtime config from default extension configuration | ||
*/ | ||
export const resolveDefaultRuntimeConfig = (config: DefaultExtensionConfiguration) => { | ||
return { | ||
...resolveChecksumRuntimeConfig(config), | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./defaultClientConfiguration"; | ||
export * from "./defaultExtensionConfiguration"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/types/src/extensions/defaultExtensionConfiguration.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ChecksumConfiguration } from "./checksum"; | ||
|
||
/** | ||
* @internal | ||
* | ||
* Default extension configuration consisting various configurations for modifying a service client | ||
*/ | ||
export interface DefaultExtensionConfiguration extends ChecksumConfiguration {} | ||
|
||
type GetDefaultConfigurationType = (runtimeConfig: any) => DefaultExtensionConfiguration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./defaultClientConfiguration"; | ||
export * from "./defaultExtensionConfiguration"; | ||
export { AlgorithmId, ChecksumAlgorithm, ChecksumConfiguration } from "./checksum"; |