Comparing version 1.2.18 to 1.2.19
@@ -126,3 +126,5 @@ 'use strict'; | ||
return json.data.concat(getPaginatedJson(json.next)); | ||
return getPaginatedJson(json.next).then(function (data) { | ||
return json.data.concat(data); | ||
}); | ||
}); | ||
@@ -129,0 +131,0 @@ } |
@@ -43,18 +43,10 @@ 'use strict'; | ||
case 0: | ||
if (item.hasOwnProperty('id')) { | ||
_context.next = 2; | ||
break; | ||
} | ||
_context.next = 2; | ||
return fetchPlugins(item.id); | ||
throw Error('"API doesn\'t have an Id: ' + JSON.stringify(item, null, ' ')); | ||
case 2: | ||
_context.next = 4; | ||
return fetchPlugins(item.id); | ||
case 4: | ||
plugins = _context.sent; | ||
return _context.abrupt('return', _extends({}, item, { plugins: plugins })); | ||
case 6: | ||
case 4: | ||
case 'end': | ||
@@ -61,0 +53,0 @@ return _context.stop(); |
{ | ||
"name": "kongfig", | ||
"version": "1.2.18", | ||
"version": "1.2.19", | ||
"description": "A tool for Kong to allow declarative configuration.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/mybuilder/kongfig", |
Sorry, the diff of this file is not supported yet
211330
3175