Comparing version 2.13.4-2 to 2.13.4-3
{ | ||
"name": "ralltiir", | ||
"version": "2.13.4-2", | ||
"version": "2.13.4-3", | ||
"discription": "前端极速浏览框架,目标是提升用户体验,提供沉浸式浏览方式。", | ||
@@ -31,4 +31,3 @@ "scripts": { | ||
"@searchfe/assert": "^1.0.0", | ||
"@searchfe/promise": "^1.0.3", | ||
"@searchfe/sandbox": "^1.5.5", | ||
"@searchfe/sandbox": "^1.5.4", | ||
"@searchfe/underscore": "^1.0.1" | ||
@@ -35,0 +34,0 @@ }, |
@@ -12,3 +12,2 @@ /** | ||
var cache = require('./utils/cache'); | ||
var Promise = require('@searchfe/promise'); | ||
var assert = require('@searchfe/assert'); | ||
@@ -15,0 +14,0 @@ var logger = require('./utils/logger'); |
@@ -78,6 +78,2 @@ /** | ||
}, | ||
promise: { | ||
type: 'value', | ||
module: require('@searchfe/promise') | ||
}, | ||
map: { | ||
@@ -84,0 +80,0 @@ type: 'value', |
@@ -9,3 +9,2 @@ /** | ||
var _ = require('@searchfe/underscore'); | ||
var Promise = require('@searchfe/promise'); | ||
@@ -122,3 +121,21 @@ return function dispatchFactory(location) { | ||
lastAbortCallback = abortCallback; | ||
return Promise.mapSeries(queue, function (cb) { | ||
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) { | ||
if (typeof cb !== 'function') { | ||
@@ -125,0 +142,0 @@ return; |
@@ -9,3 +9,2 @@ /** | ||
var _ = require('@searchfe/underscore'); | ||
var Promise = require('@searchfe/promise'); | ||
var Url = require('./url'); | ||
@@ -12,0 +11,0 @@ var exports = {}; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
125721
3950
1