can-event-queue
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -72,3 +72,14 @@ var canDev = require("can-util/js/dev/dev"); | ||
//!steal-remove-start | ||
//!steal-remove-start | ||
if (!event.reasonLog) { | ||
event.reasonLog = [ canReflect.getName(this), "dispatched", '"' + event + '"', "with" ].concat(args); | ||
} | ||
if (!event.makeMeta) { | ||
event.makeMeta = function makeMeta(handler, context, args) { | ||
return { | ||
log: [ canReflect.getName(handler), "called because" ].concat(args[0].reasonLog), | ||
}; | ||
}; | ||
} | ||
var meta = ensureMeta(this); | ||
@@ -102,3 +113,3 @@ if (typeof meta._log === "function") { | ||
getHandlers(this).delete([key, "event", queueName || "mutate", handler]); | ||
} | ||
} | ||
}; | ||
@@ -105,0 +116,0 @@ props.on = props.addEventListener; |
{ | ||
"name": "can-event-queue", | ||
"main": "./can-event-queue.js", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A event mixin that uses queues to dispatch handlers", | ||
@@ -6,0 +6,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
33868
17
821
3