Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ralltiir

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ralltiir - npm Package Compare versions

Comparing version 2.12.1 to 2.12.2-1

10

package.json
{
"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

19

src/action.js

@@ -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 @@ /**

@@ -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 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc