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

vue-global-events

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-global-events - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

dist/vue-global-events.cjs.js
/**
* 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)

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