can-queues
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -161,7 +161,11 @@ var QUnit = require( 'steal-qunit' ); | ||
QUnit.equal( "Test enqueuing:", area ); | ||
QUnit.equal( "fnName", name ); | ||
if (name) { | ||
QUnit.equal( "fnName", name ); | ||
} | ||
canDev.log = function ( area, name ) { | ||
QUnit.equal( "Test running :", area ); | ||
QUnit.equal( "fnName", name ); | ||
if (name) { | ||
QUnit.equal( "fnName", name ); | ||
} | ||
}; | ||
@@ -187,2 +191,8 @@ }; | ||
function setFnName(fn, fnName) { | ||
if (!fn.name) { | ||
fn.name = fnName; | ||
} | ||
} | ||
var callbackOrder = []; | ||
@@ -192,9 +202,14 @@ var map, fullName, mapFullName; | ||
// var map = new DefineMap( {first: "Justin", last: "Meyer", fullName: ""}); //map:1 | ||
function derivedChild_queueUpdate () { | ||
callbackOrder.push( "derivedChild_queueUpdate" ); | ||
fullName.queueUpdate(); | ||
} | ||
setFnName(derivedChild_queueUpdate, 'derivedChild_queueUpdate'); | ||
map = { | ||
name: "map", | ||
notifyHandlers: [ | ||
function derivedChild_queueUpdate () { | ||
callbackOrder.push( "derivedChild_queueUpdate" ); | ||
fullName.queueUpdate(); | ||
} | ||
derivedChild_queueUpdate | ||
], | ||
@@ -237,2 +252,8 @@ dispatch: function () { | ||
setFnName(fullName.queueUpdate, "queueUpdate"); | ||
setFnName(fullName.update, "update"); | ||
setFnName(fullName.mutateHandlers[0], 'fullName_setFullNameProperty'); | ||
mapFullName = { | ||
@@ -243,3 +264,3 @@ name: "map.fullName", | ||
var stack = queues.stack(); | ||
setFnName(this.mutateHandlers[0], "mapFullName_handler"); | ||
QUnit.deepEqual( stack.map( function ( task ) { | ||
@@ -246,0 +267,0 @@ return task.meta.stack.name + " " +task.context.name + " " + |
{ | ||
"name": "can-queues", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A light weight JavaScript task queue", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231522
788
1