Comparing version 2.12.1 to 2.12.2-1
{ | ||
"name": "ralltiir", | ||
"version": "2.12.1", | ||
"version": "2.12.2-1", | ||
"discription": "前端极速浏览框架,目标是提升用户体验,提供沉浸式浏览方式。", | ||
@@ -16,10 +16,2 @@ "scripts": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ralltiir/ralltiir.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ralltiir/ralltiir/issues" | ||
}, | ||
"homepage": "https://ralltiir.github.io/ralltiir/", | ||
"main": "./src/index.js", | ||
@@ -26,0 +18,0 @@ "files": [ |
@@ -0,0 +0,0 @@ # Ralltiir |
@@ -373,3 +373,9 @@ /** | ||
logger.log('action redirecting to: ' + url); | ||
exports.emit('redirecting', url); | ||
// exports.emit('redirecting', url); | ||
var cancled = exports.emit('redirecting', url, query, options); | ||
if (cancled) { | ||
return; | ||
} | ||
url = resolveUrl(url); | ||
@@ -448,2 +454,8 @@ _.assign(stageData, data); | ||
exports.reset = function (url, query, options, data) { | ||
var cancled = exports.emit('reseting', url, query, options); | ||
if (cancled) { | ||
return; | ||
} | ||
if (isIndexPage) { | ||
@@ -490,2 +502,3 @@ indexPageUrl = url; | ||
var options = anchor.getAttribute('data-sf-options'); | ||
var allowVisited = anchor.getAttribute('data-visited'); | ||
@@ -509,3 +522,5 @@ if (link) { | ||
exports.redirect(url, null, options, extra); | ||
dom.addClass(anchor, config.visitedClassName); | ||
if (allowVisited !== "off") { | ||
dom.addClass(anchor, config.visitedClassName); | ||
} | ||
} | ||
@@ -512,0 +527,0 @@ } |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -26,3 +26,2 @@ /** | ||
register: register, | ||
postMessage: postMessage, | ||
unRegister: unRegister, | ||
@@ -70,16 +69,2 @@ isRegistered: isRegistered, | ||
function postMessage(msg, target) { | ||
assert(target, 'message target should be set explicitly'); | ||
serviceInstances.forEach(function (service) { | ||
if (!_.isFunction(service.onMessage)) { | ||
return; | ||
} | ||
if (target === '*' || target === service.name) { | ||
setTimeout(function () { | ||
service.onMessage(msg); | ||
}); | ||
} | ||
}); | ||
} | ||
function isRegistered(pathPattern) { | ||
@@ -86,0 +71,0 @@ return urlEntries.has(pathPattern); |
@@ -149,13 +149,2 @@ /** | ||
/** | ||
* Traverse all items available | ||
* | ||
* @param {Function} cb(value, key) The callback to iterate with | ||
*/ | ||
forEach: function (cb) { | ||
this.list.forEach(function (item) { | ||
cb(item.value, item.key); | ||
}); | ||
}, | ||
size: function () { | ||
@@ -162,0 +151,0 @@ return this.list.length; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -169,2 +169,5 @@ /** | ||
var listeners = events[event]; | ||
var ret = true; | ||
var eventCancled = false; | ||
// 内联arguments的转化 提升性能 | ||
@@ -180,3 +183,6 @@ var args = []; | ||
try { | ||
listeners[i].apply(this, args); | ||
ret = listeners[i].apply(this, args); | ||
if (ret === false) { | ||
eventCancled = true; | ||
} | ||
} | ||
@@ -189,4 +195,3 @@ catch (e) { | ||
} | ||
return this; | ||
return eventCancled; | ||
}; | ||
@@ -193,0 +198,0 @@ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
1
129440
37
3968
2
2
1