Skip to content

Commit 7719aeb

Browse files
committed
Add getObject function
1 parent 666ce10 commit 7719aeb

File tree

4 files changed

+48
-5
lines changed

4 files changed

+48
-5
lines changed

lib/mock/s3.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ function s3_mock() {
3636
},
3737
putObject(params, callback) {
3838
return s3.putObject(params, wcb(callback));
39+
},
40+
getObject(params, callback) {
41+
return s3.getObject(params, wcb(callback));
3942
}
4043
};
4144
}

lib/util/s3_setup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ module.exports.get_s3 = function(config) {
8484
},
8585
putObject(params, callback) {
8686
return s3.putObject(params, callback);
87+
},
88+
getObject(params, callback) {
89+
return s3.getObject(params, callback);
8790
}
8891
};
8992
};

package-lock.json

Lines changed: 40 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mapbox/node-pre-gyp",
33
"description": "Node.js native addon binary install tool",
4-
"version": "2.0.2-dev.1",
4+
"version": "2.0.2-dev.2",
55
"keywords": [
66
"native",
77
"addon",
@@ -23,7 +23,6 @@
2323
"node": ">=18"
2424
},
2525
"dependencies": {
26-
"aws-sdk": "^2.1087.0",
2726
"consola": "^3.2.3",
2827
"detect-libc": "^2.0.0",
2928
"https-proxy-agent": "^7.0.5",
@@ -35,6 +34,7 @@
3534
"devDependencies": {
3635
"@mapbox/cloudfriend": "^9.0.0",
3736
"@mapbox/eslint-config-mapbox": "^5.0.1",
37+
"aws-sdk": "^2.1087.0",
3838
"codecov": "^3.8.3",
3939
"eslint": "^8.57.0",
4040
"eslint-plugin-n": "^17.9.0",

0 commit comments

Comments
 (0)