raptor-dom
Advanced tools
Comparing version 0.2.3-beta to 0.2.4-beta
@@ -1,3 +0,11 @@ | ||
'use strict'; | ||
var raptorPubsub; | ||
try { | ||
raptorPubsub = require.resolve('raptor-pubsub'); | ||
} | ||
catch(e) {} | ||
if (raptorPubsub) { | ||
raptorPubsub = require(raptorPubsub); | ||
} | ||
function getNode(el) { | ||
@@ -15,11 +23,4 @@ if (typeof el === 'string') { | ||
function _beforeRemove(referenceEl) { | ||
var raptorPubsub; | ||
try { | ||
raptorPubsub = require.resolve('raptor-pubsub'); | ||
} | ||
catch(e) {} | ||
if (raptorPubsub) { | ||
raptorPubsub = require(raptorPubsub); | ||
raptorPubsub.publish('dom/beforeRemove', { el: referenceEl }); | ||
raptorPubsub.emit('dom/beforeRemove', { el: referenceEl }); | ||
} | ||
@@ -26,0 +27,0 @@ } |
@@ -24,3 +24,3 @@ { | ||
}, | ||
"version": "0.2.3-beta" | ||
"version": "0.2.4-beta" | ||
} |
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
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
223
0
8611