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

vue-scrollto

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-scrollto - npm Package Compare versions

Comparing version 2.18.2 to 2.19.0

2

package.json
{
"name": "vue-scrollto",
"version": "2.18.2",
"version": "2.19.0",
"description": "Adds a directive that listens for click events and scrolls to elements.",

@@ -5,0 +5,0 @@ "main": "vue-scrollto.js",

@@ -53,3 +53,3 @@ import scrollTo from './scrollTo'

export default {
const directiveHooks = {
bind(el, binding) {

@@ -65,5 +65,14 @@ getBinding(el).binding = binding

getBinding(el).binding = binding
},
}
}
export default {
bind: directiveHooks.bind,
unbind: directiveHooks.unbind,
update: directiveHooks.update,
beforeMount: directiveHooks.bind,
unmounted: directiveHooks.unbind,
updated: directiveHooks.update,
scrollTo,
bindings,
}

@@ -7,3 +7,4 @@ import VueScrollTo from './directive'

Vue.directive('scroll-to', VueScrollTo)
Vue.prototype.$scrollTo = VueScrollTo.scrollTo
const properties = Vue.config.globalProperties || Vue.prototype
properties.$scrollTo = VueScrollTo.scrollTo
}

@@ -15,3 +16,3 @@

window.VueScrollTo.scroller = scroller
window.Vue.use(install)
if (window.Vue.use) window.Vue.use(install)
}

@@ -18,0 +19,0 @@

/*!
* vue-scrollto v2.18.2
* vue-scrollto v2.19.0
* (c) 2019 Randjelovic Igor

@@ -487,3 +487,3 @@ * @license MIT

var VueScrollTo = {
var directiveHooks = {
bind: function bind(el, binding) {

@@ -501,3 +501,11 @@ getBinding(el).binding = binding;

getBinding(el).binding = binding;
},
}
};
var VueScrollTo = {
bind: directiveHooks.bind,
unbind: directiveHooks.unbind,
update: directiveHooks.update,
beforeMount: directiveHooks.bind,
unmounted: directiveHooks.unbind,
updated: directiveHooks.update,
scrollTo: _scroller,

@@ -510,3 +518,4 @@ bindings: bindings

Vue.directive('scroll-to', VueScrollTo);
Vue.prototype.$scrollTo = VueScrollTo.scrollTo;
var properties = Vue.config.globalProperties || Vue.prototype;
properties.$scrollTo = VueScrollTo.scrollTo;
};

@@ -518,3 +527,3 @@

window.VueScrollTo.scroller = scroller;
window.Vue.use(install);
if (window.Vue.use) window.Vue.use(install);
}

@@ -521,0 +530,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