Comparing version 1.1.2 to 1.1.3
@@ -34,3 +34,3 @@ 'use strict'; | ||
var chunks; | ||
var chunks, models; | ||
return regeneratorRuntime.wrap(function _callee2$(_context2) { | ||
@@ -41,6 +41,7 @@ while (1) { | ||
chunks = (0, _chunk2.default)(Keys, MAX_BATCH_GET); | ||
_context2.next = 3; | ||
models = []; | ||
_context2.next = 4; | ||
return Promise.all(chunks.map(function () { | ||
var _ref2 = _asyncToGenerator(regeneratorRuntime.mark(function _callee(chunk) { | ||
var params, models, data; | ||
var params, data; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -55,9 +56,8 @@ while (1) { | ||
}; | ||
models = []; | ||
case 2: | ||
_context.next = 4; | ||
case 1: | ||
_context.next = 3; | ||
return performBatchGet(client, params); | ||
case 4: | ||
case 3: | ||
data = _context.sent; | ||
@@ -70,9 +70,9 @@ | ||
case 6: | ||
case 5: | ||
if (Object.keys(params.RequestItems).length > 0) { | ||
_context.next = 2; | ||
_context.next = 1; | ||
break; | ||
} | ||
case 7: | ||
case 6: | ||
case 'end': | ||
@@ -90,6 +90,6 @@ return _context.stop(); | ||
case 3: | ||
case 4: | ||
return _context2.abrupt('return', models); | ||
case 4: | ||
case 5: | ||
case 'end': | ||
@@ -96,0 +96,0 @@ return _context2.stop(); |
{ | ||
"name": "dynaql", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Dynamo library to make interacting with dynamo easier", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"prepublish": "babel src --out-dir dist" | ||
"build": "babel src --out-dir dist" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -16,2 +16,3 @@ import chunk from '../lib/chunk' | ||
let chunks = chunk(Keys, MAX_BATCH_GET) | ||
let models = [] | ||
@@ -27,3 +28,2 @@ await Promise.all(chunks.map(async (chunk) => { | ||
let models = [] | ||
do { | ||
@@ -30,0 +30,0 @@ let data = await performBatchGet(client, params) |
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
27583