@optimiser/common 1.0.249 → 1.0.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aws/awsservices.js +6 -1
- package/package.json +1 -1
package/dist/aws/awsservices.js
CHANGED
|
@@ -158,7 +158,7 @@ var AwsServices = /** @class */ (function () {
|
|
|
158
158
|
case 2:
|
|
159
159
|
err_1 = _a.sent();
|
|
160
160
|
console.error("Error While Creating Signed Url:", err_1);
|
|
161
|
-
|
|
161
|
+
return [3 /*break*/, 3];
|
|
162
162
|
case 3: return [2 /*return*/];
|
|
163
163
|
}
|
|
164
164
|
});
|
|
@@ -264,6 +264,11 @@ var AwsServices = /** @class */ (function () {
|
|
|
264
264
|
};
|
|
265
265
|
AwsServices.prototype.GeneratePreSignedUrlNotAccelerated = function (params) {
|
|
266
266
|
var region = params.region, bucket = params.bucket, path = params.path, _a = params.expires, expires = _a === void 0 ? 60 : _a, _b = params.acl, acl = _b === void 0 ? 'private' : _b, _c = params.contentType, contentType = _c === void 0 ? 'application/octet-stream' : _c, _d = params.accessKeyId, accessKeyId = _d === void 0 ? this.accessKeyId : _d, _e = params.secretAccessKey, secretAccessKey = _e === void 0 ? this.secretAccessKey : _e;
|
|
267
|
+
// added by Mohan ason 28-01-2022. To overwrite acl variable.
|
|
268
|
+
// acl variable will have public-read OR private value. default is private
|
|
269
|
+
if (params.accessType != '' && params.accessType != undefined && params.accessType != null) {
|
|
270
|
+
acl = params.accessType;
|
|
271
|
+
}
|
|
267
272
|
var S3 = new aws_sdk_1.default.S3({
|
|
268
273
|
accessKeyId: accessKeyId,
|
|
269
274
|
secretAccessKey: secretAccessKey,
|