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.0-1 to 2.12.0

src/lang/.set-immediate.js.swp

2

package.json
{
"name": "ralltiir",
"version": "2.12.0-1",
"version": "2.12.0",
"discription": "前端极速浏览框架,目标是提升用户体验,提供沉浸式浏览方式。",

@@ -5,0 +5,0 @@ "scripts": {

@@ -26,2 +26,3 @@ /**

register: register,
postMessage: postMessage,
unRegister: unRegister,

@@ -69,2 +70,16 @@ 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) {

@@ -71,0 +86,0 @@ return urlEntries.has(pathPattern);

@@ -149,2 +149,13 @@ /**

/**
* 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 () {

@@ -151,0 +162,0 @@ return this.list.length;

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