Comparing version 0.6.2 to 0.6.3
@@ -16,6 +16,6 @@ "use strict"; | ||
var next = function (scope) { | ||
var step = _this.steps.shift(); | ||
var step = _this.steps[scope.step]; | ||
if (step) { | ||
scope.step++; | ||
if (_this.steps.length) { | ||
if (scope.step < _this.steps.length) { | ||
step.execute(scope).then(next).catch(reject); | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "api-core", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "Model-based dynamic multi-level APIs for any provider, plus multiple consumption channels", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -37,6 +37,6 @@ import {ApiEdgeQueryContext} from "../edge/ApiEdgeQueryContext"; | ||
let next = (scope: ApiQueryScope) => { | ||
let step = this.steps.shift(); | ||
let step = this.steps[scope.step]; | ||
if(step) { | ||
scope.step++; | ||
if (this.steps.length) { | ||
if (scope.step < this.steps.length) { | ||
step.execute(scope).then(next).catch(reject); | ||
@@ -43,0 +43,0 @@ } |
Sorry, the diff of this file is not supported yet
681806