aws-sdk-wrap
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -79,6 +79,10 @@ const assert = require('assert'); | ||
get: getService, | ||
sqs: sqs(call), | ||
sqs: sqs({ | ||
call, | ||
getService, | ||
logger | ||
}), | ||
errors | ||
}; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwiZ2V0IiwiQVdTIiwic3FzIiwiZXJyb3JzIiwibG9va3VwQ2FjaGUiLCJNYXAiLCJnZXRBdHRyIiwib2JqIiwia2V5IiwiaGFzIiwic2V0IiwiT2JqZWN0IiwiZW50cmllcyIsInJlZHVjZSIsInByZXYiLCJrIiwidiIsImFzc2lnbiIsInRvTG93ZXJDYXNlIiwibW9kdWxlIiwiZXhwb3J0cyIsImNvbmZpZyIsImxvZ2dlciIsInNlcnZpY2VzIiwiZ2V0U2VydmljZSIsInNlcnZpY2UiLCJzZXJ2aWNlTG93ZXIiLCJ1bmRlZmluZWQiLCJTZXJ2aWNlIiwic3BsaXQiLCJlIiwiVHlwZUVycm9yIiwiY2FsbCIsImFjdGlvbiIsInBhcmFtcyIsImV4cGVjdGVkRXJyb3JDb2RlcyIsIkFycmF5IiwiaXNBcnJheSIsImV2ZXJ5Iiwic3BsaXRJbmRleCIsImluZGV4T2YiLCJzbGljZSIsImZ1bmNOYW1lIiwicHJvbWlzZSIsImNhdGNoIiwiY29kZSIsImVycm9yIiwibWVzc2FnZSIsImVycm9yTmFtZSIsImVycm9yRGV0YWlscyIsInJlcXVlc3RQYXJhbXMiLCJ1cGRhdGVHbG9iYWxDb25maWciLCJjZmciLCJ1cGRhdGUiXSwibWFwcGluZ3MiOiJBQUFBLE1BQU1BLE1BQU0sR0FBR0MsT0FBTyxDQUFDLFFBQUQsQ0FBdEI7O0FBQ0EsTUFBTUMsR0FBRyxHQUFHRCxP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gJ0JhZCBBY3Rpb24gUHJvdmlkZWQuJyk7XG4gICAgY29uc3Qgc2VydmljZSA9IGFjdGlvbi5zbGljZSgwLCBzcGxpdEluZGV4KTtcbiAgICBjb25zdCBmdW5jTmFtZSA9IGFjdGlvbi5zbGljZShzcGxpdEluZGV4ICsgMSk7XG4gICAgcmV0dXJuIGdldFNlcnZpY2Uoc2VydmljZSlbZnVuY05hbWVdKHBhcmFtcykucHJvbWlzZSgpLmNhdGNoKChlKSA9PiB7XG4gICAgICBpZiAoZXhwZWN0ZWRFcnJvckNvZGVzLmluZGV4T2YoZS5jb2RlKSAhPT0gLTEpIHtcbiAgICAgICAgcmV0dXJuIGUuY29kZTtcbiAgICAgIH1cbiAgICAgIGlmIChsb2dnZXIgIT09IG51bGwpIHtcbiAgICAgICAgbG9nZ2VyLmVycm9yKHtcbiAgICAgICAgICBtZXNzYWdlOiBgUmVxdWVzdCBmYWlsZWQgZm9yICR7c2VydmljZX0uJHtmdW5jTmFtZX0oKWAsXG4gICAgICAgICAgZXJyb3JOYW1lOiBnZXQoZSwgJ2NvbnN0cnVjdG9yLm5hbWUnKSxcbiAgICAgICAgICBlcnJvckRldGFpbHM6IGUsXG4gICAgICAgICAgcmVxdWVzdFBhcmFtczogcGFyYW1zXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgICAgdGhyb3cgZTtcbiAgICB9KTtcbiAgfTtcblxuICByZXR1cm4ge1xuICAgIHVwZGF0ZUdsb2JhbENvbmZpZzogKGNmZykgPT4gQVdTLmNvbmZpZy51cGRhdGUoY2ZnKSxcbiAgICBjYWxsLFxuICAgIGdldDogZ2V0U2VydmljZSxcbiAgICBzcXM6IHNxcyh7IGNhbGwsIGdldFNlcnZpY2UsIGxvZ2dlciB9KSxcbiAgICBlcnJvcnNcbiAgfTtcbn07XG4iXX0= |
@@ -21,6 +21,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
const sendBatch = async (sqsBatch, queueUrl, call, { | ||
const sendBatch = async (sqsBatch, queueUrl, { | ||
call, | ||
getService, | ||
maxRetries, | ||
backoffFunction, | ||
delaySeconds | ||
delaySeconds, | ||
logger | ||
}) => { | ||
@@ -50,2 +53,9 @@ const pending = sqsBatch.reduce((p, msg) => { | ||
result.Successful.forEach(e => delete pending[e.Id]); | ||
if (Object.keys(pending).length !== 0 && logger !== null) { | ||
logger.warn(`Failed to submit (some) message(s). Retrying: [${Object.values(pending).map(({ | ||
Id, | ||
MessageBody | ||
}) => `(Id=${Id}, MD5=${getService('util.crypto').md5(MessageBody, 'hex')})`).join(', ')}]`); | ||
} | ||
} | ||
@@ -56,3 +66,7 @@ | ||
module.exports = call => ({ | ||
module.exports = ({ | ||
call, | ||
getService, | ||
logger | ||
}) => ({ | ||
sendMessageBatch: async (msgs, queueUrl, { | ||
@@ -65,6 +79,9 @@ batchSize = 10, | ||
assert(batchSize <= 10, 'AWS sqs:sendMessageBatch restriction'); | ||
const result = await Promise.all(chunk(msgs, batchSize).map(sqsBatch => sendBatch(sqsBatch, queueUrl, call, { | ||
const result = await Promise.all(chunk(msgs, batchSize).map(sqsBatch => sendBatch(sqsBatch, queueUrl, { | ||
call, | ||
getService, | ||
maxRetries, | ||
backoffFunction, | ||
delaySeconds | ||
delaySeconds, | ||
logger | ||
}))); | ||
@@ -79,2 +96,2 @@ | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3Nxcy5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwidXRpbCIsImNodW5rIiwib2JqZWN0SGFzaCIsIlNlbmRNZXNzYWdlQmF0Y2hFcnJvciIsInNsZWVwIiwicHJvbWlzaWZ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PT4gKHtcbiAgc2VuZE1lc3NhZ2VCYXRjaDogYXN5bmMgKG1zZ3MsIHF1ZXVlVXJsLCB7XG4gICAgYmF0Y2hTaXplID0gMTAsXG4gICAgbWF4UmV0cmllcyA9IDEwLFxuICAgIGJhY2tvZmZGdW5jdGlvbiA9IChjb3VudCkgPT4gMzAgKiAoY291bnQgKiogMiksXG4gICAgZGVsYXlTZWNvbmRzID0gbnVsbFxuICB9ID0ge30pID0+IHtcbiAgICBhc3NlcnQoYmF0Y2hTaXplIDw9IDEwLCAnQVdTIHNxczpzZW5kTWVzc2FnZUJhdGNoIHJlc3RyaWN0aW9uJyk7XG4gICAgY29uc3QgcmVzdWx0ID0gYXdhaXQgUHJvbWlzZS5hbGwoY2h1bmsobXNncywgYmF0Y2hTaXplKVxuICAgICAgLm1hcCgoc3FzQmF0Y2gpID0+IHNlbmRCYXRjaChzcXNCYXRjaCwgcXVldWVVcmwsIHtcbiAgICAgICAgY2FsbCxcbiAgICAgICAgZ2V0U2VydmljZSxcbiAgICAgICAgbWF4UmV0cmllcyxcbiAgICAgICAgYmFja29mZkZ1bmN0aW9uLFxuICAgICAgICBkZWxheVNlY29uZHMsXG4gICAgICAgIGxvZ2dlclxuICAgICAgfSkpKTtcbiAgICBpZiAobXNncy5sZW5ndGggIT09IHJlc3VsdC5yZWR1Y2UoKHAsIGMpID0+IHAgKyBjLnJlZHVjZSgocHJldiwgY3VyKSA9PiBwcmV2ICsgY3VyLlN1Y2Nlc3NmdWwubGVuZ3RoLCAwKSwgMCkpIHtcbiAgICAgIHRocm93IG5ldyBTZW5kTWVzc2FnZUJhdGNoRXJyb3IocmVzdWx0KTtcbiAgICB9XG4gICAgcmV0dXJuIHJlc3VsdDtcbiAgfVxufSk7XG4iXX0= |
{ | ||
"name": "aws-sdk-wrap", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Wrapper around aws-sdk", | ||
@@ -41,8 +41,8 @@ "main": "lib/index.js", | ||
"@blackflux/eslint-plugin-rules": "1.3.7", | ||
"@blackflux/robo-config-plugin": "2.5.12", | ||
"aws-sdk": "2.519.0", | ||
"@blackflux/robo-config-plugin": "2.6.1", | ||
"aws-sdk": "2.523.0", | ||
"babel-eslint": "10.0.3", | ||
"chai": "4.2.0", | ||
"coveralls": "3.0.6", | ||
"eslint": "6.2.2", | ||
"eslint": "6.3.0", | ||
"eslint-config-airbnb-base": "14.0.0", | ||
@@ -53,4 +53,4 @@ "eslint-plugin-import": "2.18.2", | ||
"eslint-plugin-mocha": "6.1.0", | ||
"js-gardener": "2.0.78", | ||
"node-tdd": "2.1.0", | ||
"js-gardener": "2.0.82", | ||
"node-tdd": "2.5.0", | ||
"nyc": "14.1.1", | ||
@@ -57,0 +57,0 @@ "semantic-release": "15.13.24" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30000
154