vue-global-events
Advanced tools
Comparing version 1.0.0 to 1.0.1
/** | ||
* vue-global-events v1.0.0 | ||
* vue-global-events v1.0.1 | ||
* (c) 2017 Damian Dulisz, Eduardo San Martin Morote | ||
@@ -36,3 +36,3 @@ * @license MIT | ||
document.addEventListener( | ||
event.replace(nonEventNameCharsRE), | ||
event.replace(nonEventNameCharsRE, ''), | ||
handler, | ||
@@ -39,0 +39,0 @@ extractEventOptions(event) |
/** | ||
* vue-global-events v1.0.0 | ||
* vue-global-events v1.0.1 | ||
* (c) 2017 Damian Dulisz, Eduardo San Martin Morote | ||
@@ -34,3 +34,3 @@ * @license MIT | ||
document.addEventListener( | ||
event.replace(nonEventNameCharsRE), | ||
event.replace(nonEventNameCharsRE, ''), | ||
handler, | ||
@@ -37,0 +37,0 @@ extractEventOptions(event) |
/** | ||
* vue-global-events v1.0.0 | ||
* vue-global-events v1.0.1 | ||
* (c) 2017 Damian Dulisz, Eduardo San Martin Morote | ||
@@ -40,3 +40,3 @@ * @license MIT | ||
document.addEventListener( | ||
event.replace(nonEventNameCharsRE), | ||
event.replace(nonEventNameCharsRE, ''), | ||
handler, | ||
@@ -43,0 +43,0 @@ extractEventOptions(event) |
/** | ||
* vue-global-events v1.0.0 | ||
* vue-global-events v1.0.1 | ||
* (c) 2017 Damian Dulisz, Eduardo San Martin Morote | ||
@@ -7,2 +7,2 @@ * @license MIT | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.VueGlobalEvents=t()}(this,function(){"use strict";function e(e){return e.match(t)[0].split("").reduce(function(e,t){return e[r[t]]=!0,e},{})}var t=/^[~!&]*/,n=/\W+/,r={"!":"capture","~":"once","&":"passive"};return{render:function(e){return e()},mounted:function(){var t=this;this._listeners=Object.create(null),Object.keys(this.$listeners).forEach(function(r){var i=t.$listeners[r];document.addEventListener(r.replace(n),i,e(r)),t._listeners[r]=i})},beforeDestroy:function(){var e=this;for(var t in e._listeners)document.removeEventListener(t,e._listeners[t])}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.VueGlobalEvents=t()}(this,function(){"use strict";function e(e){return e.match(t)[0].split("").reduce(function(e,t){return e[r[t]]=!0,e},{})}var t=/^[~!&]*/,n=/\W+/,r={"!":"capture","~":"once","&":"passive"};return{render:function(e){return e()},mounted:function(){var t=this;this._listeners=Object.create(null),Object.keys(this.$listeners).forEach(function(r){var i=t.$listeners[r];document.addEventListener(r.replace(n,""),i,e(r)),t._listeners[r]=i})},beforeDestroy:function(){var e=this;for(var t in e._listeners)document.removeEventListener(t,e._listeners[t])}}}); |
{ | ||
"name": "vue-global-events", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Component to register global events", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-global-events.cjs.js", |
@@ -25,3 +25,3 @@ const modifiersRE = /^[~!&]*/ | ||
document.addEventListener( | ||
event.replace(nonEventNameCharsRE), | ||
event.replace(nonEventNameCharsRE, ''), | ||
handler, | ||
@@ -28,0 +28,0 @@ extractEventOptions(event) |
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
9508
0