Comparing version 2.13.6 to 2.13.7
{ | ||
"name": "ralltiir", | ||
"version": "2.13.6", | ||
"version": "2.13.7", | ||
"discription": "前端极速浏览框架,目标是提升用户体验,提供沉浸式浏览方式。", | ||
@@ -31,2 +31,3 @@ "scripts": { | ||
"@searchfe/assert": "^1.0.0", | ||
"@searchfe/promise": "^1.0.3", | ||
"@searchfe/sandbox": "^1.5.4", | ||
@@ -33,0 +34,0 @@ "@searchfe/underscore": "^1.0.1" |
@@ -13,2 +13,3 @@ /** | ||
var assert = require('@searchfe/assert'); | ||
var Promise = require('@searchfe/promise'); | ||
var logger = require('./utils/logger'); | ||
@@ -15,0 +16,0 @@ var _ = require('@searchfe/underscore'); |
@@ -80,3 +80,3 @@ /** | ||
type: 'value', | ||
module: window.Promise | ||
module: require('@searchfe/promise') | ||
}, | ||
@@ -83,0 +83,0 @@ map: { |
@@ -9,2 +9,3 @@ /** | ||
var _ = require('@searchfe/underscore'); | ||
var Promise = require('@searchfe/promise'); | ||
@@ -121,21 +122,3 @@ return function dispatchFactory(location) { | ||
lastAbortCallback = abortCallback; | ||
var mapSeries = function (iterable, iteratee) { | ||
var ret = Promise.resolve('init'); | ||
var result = []; | ||
iterable.forEach(function (item, idx) { | ||
ret = ret | ||
.then(function () { | ||
return iteratee(item, idx, iterable); | ||
}) | ||
.then(function (x) { | ||
return result.push(x); | ||
}); | ||
}); | ||
return ret.then(function () { | ||
return result; | ||
}); | ||
}; | ||
return mapSeries(queue, function (cb) { | ||
return Promise.mapSeries(queue, function (cb) { | ||
if (typeof cb !== 'function') { | ||
@@ -142,0 +125,0 @@ return; |
@@ -9,2 +9,3 @@ /** | ||
var _ = require('@searchfe/underscore'); | ||
var Promise = require('@searchfe/promise'); | ||
var Url = require('./url'); | ||
@@ -11,0 +12,0 @@ var exports = {}; |
125839
3953