Skip to content

Commit

Permalink
Call emitWarningIfUnsupportedVersion from getRuntimeConfig (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jul 26, 2021
1 parent ff0efc2 commit 1027aa8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { ${clientConfigName} } from "${clientModuleName}";
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";

/**
* @internal
*/
export const getRuntimeConfig = (config: ${clientConfigName} = {}) => {
emitWarningIfUnsupportedVersion(process.version);
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
Expand Down

0 comments on commit 1027aa8

Please sign in to comment.