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.1.0 to 1.1.1

7

dist/vue-global-events.cjs.js
/**
* vue-global-events v1.1.0
* (c) 2019 Damian Dulisz <damian.dulisz@gmail.com>, Eduardo San Martin Morote <posva13@gmail.com>
* vue-global-events v1.1.1
* (c) 2019 Damian Dulisz <damian.dulisz@gmail.com>
* @license MIT

@@ -79,3 +79,4 @@ */

event.replace(nonEventNameCharsRE, ''),
this$1._listeners[event]
this$1._listeners[event],
extractEventOptions(event)
);

@@ -82,0 +83,0 @@ }

/**
* vue-global-events v1.1.0
* (c) 2019 Damian Dulisz <damian.dulisz@gmail.com>, Eduardo San Martin Morote <posva13@gmail.com>
* vue-global-events v1.1.1
* (c) 2019 Damian Dulisz <damian.dulisz@gmail.com>
* @license MIT

@@ -77,3 +77,4 @@ */

event.replace(nonEventNameCharsRE, ''),
this$1._listeners[event]
this$1._listeners[event],
extractEventOptions(event)
);

@@ -80,0 +81,0 @@ }

/**
* vue-global-events v1.1.0
* (c) 2019 Damian Dulisz <damian.dulisz@gmail.com>, Eduardo San Martin Morote <posva13@gmail.com>
* vue-global-events v1.1.1
* (c) 2019 Damian Dulisz <damian.dulisz@gmail.com>
* @license MIT

@@ -83,3 +83,4 @@ */

event.replace(nonEventNameCharsRE, ''),
this$1._listeners[event]
this$1._listeners[event],
extractEventOptions(event)
);

@@ -86,0 +87,0 @@ }

/**
* vue-global-events v1.1.0
* (c) 2019 Damian Dulisz <damian.dulisz@gmail.com>, Eduardo San Martin Morote <posva13@gmail.com>
* vue-global-events v1.1.1
* (c) 2019 Damian Dulisz <damian.dulisz@gmail.com>
* @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";var e;var t=/^[~!&]*/,n=/\W+/,r={"!":"capture","~":"once","&":"passive"};function i(n){var i=n.match(t)[0];return(null==e?e=/msie|trident/.test(window.navigator.userAgent.toLowerCase()):e)?i.indexOf("!")>-1:i.split("").reduce(function(e,t){return e[r[t]]=!0,e},{})}return{name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:Function,default:function(e){return!0}}},render:function(e){return e()},mounted:function(){var e=this;this._listeners=Object.create(null),Object.keys(this.$listeners).forEach(function(t){var r=e.$listeners[t],o=function(n){e.filter(n,r,t)&&r(n)};window[e.target].addEventListener(t.replace(n,""),o,i(t)),e._listeners[t]=o})},beforeDestroy:function(){var e=this;for(var t in e._listeners)window[e.target].removeEventListener(t.replace(n,""),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";var n;var r=/^[~!&]*/,i=/\W+/,o={"!":"capture","~":"once","&":"passive"};function s(e){var t=e.match(r)[0];return(null==n?n=/msie|trident/.test(window.navigator.userAgent.toLowerCase()):n)?-1<t.indexOf("!"):t.split("").reduce(function(e,t){return e[o[t]]=!0,e},{})}return{name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:Function,default:function(e){return!0}}},render:function(e){return e()},mounted:function(){var r=this;this._listeners=Object.create(null),Object.keys(this.$listeners).forEach(function(t){var n=r.$listeners[t],e=function(e){r.filter(e,n,t)&&n(e)};window[r.target].addEventListener(t.replace(i,""),e,s(t)),r._listeners[t]=e})},beforeDestroy:function(){var e=this;for(var t in e._listeners)window[e.target].removeEventListener(t.replace(i,""),e._listeners[t],s(t))}}});
{
"name": "vue-global-events",
"version": "1.1.0",
"version": "1.1.1",
"description": "Component to register global events",

@@ -5,0 +5,0 @@ "main": "dist/vue-global-events.cjs.js",

@@ -61,3 +61,4 @@ import { isIE } from './utils'

event.replace(nonEventNameCharsRE, ''),
this._listeners[event]
this._listeners[event],
extractEventOptions(event)
)

@@ -64,0 +65,0 @@ }

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