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

can-queues

Package Overview
Dependencies
Maintainers
7
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-queues - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

16

dom-order-queue-test.js

@@ -51,1 +51,17 @@ var QUnit = require('steal-qunit');

});
QUnit.test("Functions call multiple times retain their element", function(assert) {
var queue = new DomOrderQueue("dom");
var element = createElement("span");
var fn = function(){
assert.ok(true, "called this function");
};
fn[canSymbol.for("can.element")] = element;
queue.enqueue(fn, null, {});
queue.enqueue(fn, null, {});
var otherFn = function(){};
otherFn[canSymbol.for("can.element")] = createElement("li");
queue.enqueue(otherFn, null, {});
queue.flush();
});

@@ -79,2 +79,11 @@ "use strict";

task.args = args;
if(!meta) {
meta = {};
}
if(!meta.element) {
meta.element = fn[canElementSymbol];
}
task.meta = meta;

@@ -81,0 +90,0 @@ }

2

package.json
{
"name": "can-queues",
"version": "1.3.0",
"version": "1.3.1",
"description": "A light weight JavaScript task queue",

@@ -5,0 +5,0 @@ "homepage": "",

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