Skip to content

Commit e151745

Browse files
author
Saro
committed
1 parent 8400b96 commit e151745

File tree

3 files changed

+967
-5
lines changed

3 files changed

+967
-5
lines changed

lib/s3.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use strict';
22

3-
var AWS = require('aws-sdk');
3+
var AWS = require('aws-sdk'),
4+
{
5+
S3
6+
} = require("@aws-sdk/client-s3");
47
var CoreObject = require('core-object');
58
var RSVP = require('rsvp');
69
var fs = require('fs');
@@ -44,7 +47,7 @@ module.exports = CoreObject.extend({
4447
AWS.config.endpoint = new AWS.Endpoint(endpoint);
4548
}
4649

47-
this._client = plugin.readConfig('s3Client') || new AWS.S3(config);
50+
this._client = plugin.readConfig('s3Client') || new S3(config);
4851
},
4952

5053
upload: function(options) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test": "node tests/runner.js && ./node_modules/.bin/eslint index.js lib/* tests/**/*.js"
1919
},
2020
"dependencies": {
21-
"aws-sdk": "^2.667.0",
21+
"@aws-sdk/client-s3": "^3.385.0",
2222
"core-object": "^3.0.0",
2323
"ember-cli-deploy-plugin": "^0.2.9",
2424
"mime-types": "^2.1.27",

0 commit comments

Comments
 (0)