-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@aws-sdk/s3
/ aws-sdk/clients/s3
→ @aws-lite/s3
Remove Node.js >= 18 conditional checks for a bunch of unit tests broken by AWS SDK v3
- Loading branch information
Showing
8 changed files
with
664 additions
and
731 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
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,13 @@ | ||
let s3 | ||
|
||
module.exports = async function getS3 () { | ||
if (s3) return s3 | ||
// eslint-disable-next-line | ||
let awsLite = require('@aws-lite/client') | ||
s3 = await awsLite({ | ||
autoloadPlugins: false, | ||
region: process.env.AWS_REGION || 'us-west-2', | ||
plugins: [ '@aws-lite/s3' ], | ||
}) | ||
return s3 | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.