@voodoo.io/aws-utils
Advanced tools
Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "@voodoo.io/aws-utils", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "AWS utils methods - using homemade retry system", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -106,3 +106,3 @@ /** | ||
try { | ||
const data = await utils.retry(this.cli.query.bind(this.cli), [params], this.retryMax); | ||
const data = await utils.retry(this.cli.query.bind(this.cli), [params], true, this.retryMax); | ||
@@ -359,2 +359,9 @@ if(!data.Items) return resolve(response); | ||
const errObj = { | ||
from: CLASS_NAME, | ||
params: { | ||
dynamo_table: dynamoTable, | ||
entry_param: params | ||
} | ||
}; | ||
this.cli.update(param, async (err) => { | ||
@@ -364,22 +371,10 @@ if (err) { | ||
try { | ||
await utils.retry(this.cli.update.bind(this.cli), [param], this.retryMax); | ||
await utils.retry(this.cli.update.bind(this.cli), [param], true, this.retryMax); | ||
return resolve() | ||
} catch (err) { | ||
err.more_infos_updateItem = { | ||
from: CLASS_NAME, | ||
params:{ | ||
dynamo_table: dynamoTable, | ||
entry_param: params | ||
} | ||
}; | ||
err.more_infos_updateItem = errObj; | ||
return reject(err) | ||
} | ||
} | ||
err.more_infos_updateItem = { | ||
from: CLASS_NAME, | ||
params: { | ||
dynamo_table: dynamoTable, | ||
entry_param: params | ||
} | ||
}; | ||
err.more_infos_updateItem = errObj; | ||
return reject(err) | ||
@@ -386,0 +381,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
67062
1589