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

can-event-queue

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-event-queue - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

18

can-event-queue-test.js
var QUnit = require('steal-qunit');
var eventQueue = require("can-event-queue");
var queues = require("can-queues");
QUnit.module('can-event-queue',{

@@ -37,5 +37,5 @@ setup: function(){ },

eventQueue.start();
queues.batch.start();
obj.dispatch("first",[1,2]);
eventQueue.stop();
queues.batch.stop();

@@ -76,7 +76,7 @@ });

});
eventQueue.start();
queues.batch.start();
obj.dispatch("first");
obj.dispatch("second");
obj.dispatch("third");
eventQueue.stop();
queues.batch.stop();

@@ -92,6 +92,6 @@ });

obj.on("first", function(){
eventQueue.start();
queues.batch.start();
obj.dispatch("second");
obj.dispatch("third");
eventQueue.stop();
queues.batch.stop();

@@ -112,6 +112,6 @@ eventQueue.flush();

});
eventQueue.start();
queues.batch.start();
obj.dispatch("first");
eventQueue.stop();
queues.batch.stop();
});

@@ -67,6 +67,3 @@ var canDev = require("can-util/js/dev/dev");

if(handlersByType.onKeyValue) {
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, function(){
// TODO
return {};
});
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, event.makeMeta, event.reasonLog);
}

@@ -77,6 +74,3 @@ if(handlersByType.event) {

var eventAndArgs = [event].concat(args);
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, function(){
// TODO
return {};
});
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, event.makeMeta, event.reasonLog);
}

@@ -83,0 +77,0 @@ queues.batch.stop();

@@ -1,2 +0,2 @@

/*can-event-queue@0.1.0#can-event-queue*/
/*can-event-queue@0.1.1#can-event-queue*/
define([

@@ -58,5 +58,3 @@ 'require',

if (handlersByType.onKeyValue) {
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, function () {
return {};
});
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, event.makeMeta, event.reasonLog);
}

@@ -66,5 +64,3 @@ if (handlersByType.event) {

var eventAndArgs = [event].concat(args);
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, function () {
return {};
});
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, event.makeMeta, event.reasonLog);
}

@@ -71,0 +67,0 @@ queues.batch.stop();

@@ -1,2 +0,2 @@

/*can-event-queue@0.1.0#can-event-queue*/
/*can-event-queue@0.1.1#can-event-queue*/
var canDev = require('can-util/js/dev/dev');

@@ -47,5 +47,3 @@ var assign = require('can-util/js/assign/assign');

if (handlersByType.onKeyValue) {
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, function () {
return {};
});
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, event.makeMeta, event.reasonLog);
}

@@ -55,5 +53,3 @@ if (handlersByType.event) {

var eventAndArgs = [event].concat(args);
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, function () {
return {};
});
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, event.makeMeta, event.reasonLog);
}

@@ -60,0 +56,0 @@ queues.batch.stop();

@@ -130,3 +130,3 @@ /*[global-shim-start]*/

/*can-event-queue@0.1.0#can-event-queue*/
/*can-event-queue@0.1.1#can-event-queue*/
define('can-event-queue', [

@@ -188,5 +188,3 @@ 'require',

if (handlersByType.onKeyValue) {
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, function () {
return {};
});
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, event.makeMeta, event.reasonLog);
}

@@ -196,5 +194,3 @@ if (handlersByType.event) {

var eventAndArgs = [event].concat(args);
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, function () {
return {};
});
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, event.makeMeta, event.reasonLog);
}

@@ -201,0 +197,0 @@ queues.batch.stop();

{
"name": "can-event-queue",
"main": "./can-event-queue.js",
"version": "0.1.1",
"version": "0.1.2",
"description": "A event mixin that uses queues to dispatch handlers",

@@ -45,4 +45,4 @@ "homepage": "",

"dependencies": {
"can-key-tree": "0.0.2",
"can-queues": "^0.1.1",
"can-key-tree": "<2.0.0",
"can-queues": "<2.0.0",
"can-reflect": "^1.4.5",

@@ -49,0 +49,0 @@ "can-symbol": "^1.2.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