Skip to content

Commit

Permalink
Merge pull request #174 from Canner/hotfix/suppress-aws-sdk-warninig-…
Browse files Browse the repository at this point in the history
…with-env

Change the way to suppress the aws-sdk warning
  • Loading branch information
kokokuo authored May 24, 2023
2 parents b97e18c + 189bd99 commit 885720c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/extension-driver-snowflake/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// suppress the warning message from aws-sdk: Please migrate your code to use AWS SDK for JavaScript (v3).
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('aws-sdk/lib/maintenance_mode_message').suppress = true;
// since in aws-sdk, they only check if AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE exists, but not the value
// setting it to a string value of 1 should work
process.env['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE'] = '1';

export * from './lib/snowflakeDataSource';
import { SnowflakeDataSource } from './lib/snowflakeDataSource';
Expand Down

0 comments on commit 885720c

Please sign in to comment.