Comparing version 0.6.3 to 0.6.4
@@ -33,3 +33,3 @@ "use strict"; | ||
var _loop_1 = function(entry) { | ||
p.then(function () { return _this.executeSingle(scope, entry); }); | ||
p = p.then(function () { return _this.executeSingle(scope, entry); }); | ||
}; | ||
@@ -36,0 +36,0 @@ for (var _i = 0, _a = scope.response.data; _i < _a.length; _i++) { |
{ | ||
"name": "api-core", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "Model-based dynamic multi-level APIs for any provider, plus multiple consumption channels", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -49,5 +49,5 @@ import {QueryStep, ApiQueryScope, ApiQuery} from "./ApiQuery"; | ||
if(Array.isArray(scope.response.data)) { | ||
const p = Promise.resolve(); | ||
let p = Promise.resolve(); | ||
for(let entry of scope.response.data) { | ||
p.then(() => this.executeSingle(scope, entry)) | ||
p = p.then(() => this.executeSingle(scope, entry)) | ||
} | ||
@@ -54,0 +54,0 @@ p.then(() => resolve(scope), reject) |
Sorry, the diff of this file is not supported yet
681824