Comparing version 2.13.9-0 to 2.13.10-1
{ | ||
"name": "ralltiir", | ||
"version": "2.13.9-0", | ||
"version": "2.13.10-1", | ||
"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'); | ||
@@ -242,3 +243,3 @@ var _ = require('@searchfe/underscore'); | ||
var cancled = exports.emit('redirecting', url, query, options, target); | ||
var cancled = exports.emit('redirecting', url, query, options, target, data); | ||
if (cancled) { | ||
@@ -269,3 +270,3 @@ return; | ||
exports.emit('redirectFailed', e); | ||
throw e; | ||
// throw e; | ||
} | ||
@@ -272,0 +273,0 @@ }; |
@@ -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 = {}; |
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
125930
3954
1