Socket
Socket
Sign inDemoInstall

vue-piwik

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-piwik - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

8

dist/vue-piwik.common.js
/*!
* vue-piwik v0.1.5
* vue-piwik v0.1.6
* (c) 2018 Dennis Ruhe

@@ -47,2 +47,6 @@ * Released under the MIT License.

if (options.requireConsent) {
piwik.requireConsent();
}
// Register first page view

@@ -54,2 +58,4 @@ piwik.trackPageView();

options.router.afterEach(function (to, from) {
// Unfortunately the window location is not yet updated here
// We need to make our own ulr using the data provided by the router
var loc = window.location;

@@ -56,0 +62,0 @@ var url = loc.protocol + '://' + loc.host + to.path;

/*!
* vue-piwik v0.1.5
* vue-piwik v0.1.6
* (c) 2018 Dennis Ruhe

@@ -43,2 +43,6 @@ * Released under the MIT License.

if (options.requireConsent) {
piwik.requireConsent();
}
// Register first page view

@@ -50,2 +54,4 @@ piwik.trackPageView();

options.router.afterEach(function (to, from) {
// Unfortunately the window location is not yet updated here
// We need to make our own ulr using the data provided by the router
var loc = window.location;

@@ -52,0 +58,0 @@ var url = loc.protocol + '://' + loc.host + to.path;

/*!
* vue-piwik v0.1.5
* vue-piwik v0.1.6
* (c) 2018 Dennis Ruhe

@@ -49,2 +49,6 @@ * Released under the MIT License.

if (options.requireConsent) {
piwik.requireConsent();
}
// Register first page view

@@ -56,2 +60,4 @@ piwik.trackPageView();

options.router.afterEach(function (to, from) {
// Unfortunately the window location is not yet updated here
// We need to make our own ulr using the data provided by the router
var loc = window.location;

@@ -58,0 +64,0 @@ var url = loc.protocol + '://' + loc.host + to.path;

4

dist/vue-piwik.min.js
/*!
* vue-piwik v0.1.5
* vue-piwik v0.1.6
* (c) 2018 Dennis Ruhe

@@ -7,2 +7,2 @@ * Released under the MIT License.

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.VuePiwik=e.VuePiwik||{})}(this,function(e){"use strict";e.default=function(o,i){var e,n,t;void 0===i&&(i={}),(e=i,n=e.host+"/piwik.js",t=new Promise(function(e,t){var o=document.createElement("script");o.async=!0,o.defer=!0,o.src=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(o),o.onload=e,o.onerror=t}),t.catch(function(e){console.error("Error loading script",e)}),t).then(function(){var e=i.host,t=i.siteId,n=window.Piwik.getTracker(e+"/piwik.php",t);(o.prototype.$piwik=n).trackPageView(),i.router&&i.router.afterEach(function(e,t){var o=window.location,i=o.protocol+"://"+o.host+e.path;n.setCustomUrl(i),n.trackPageView(e.name)})})},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.VuePiwik=e.VuePiwik||{})}(this,function(e){"use strict";e.default=function(o,n){var e,i,t;void 0===n&&(n={}),(e=n,i=e.host+"/piwik.js",t=new Promise(function(e,t){var o=document.createElement("script");o.async=!0,o.defer=!0,o.src=i,(document.head||document.getElementsByTagName("head")[0]).appendChild(o),o.onload=e,o.onerror=t}),t.catch(function(e){console.error("Error loading script",e)}),t).then(function(){var e=n.host,t=n.siteId,i=window.Piwik.getTracker(e+"/piwik.php",t);o.prototype.$piwik=i,n.requireConsent&&i.requireConsent(),i.trackPageView(),n.router&&n.router.afterEach(function(e,t){var o=window.location,n=o.protocol+"://"+o.host+e.path;i.setCustomUrl(n),i.trackPageView(e.name)})})},Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "vue-piwik",
"version": "0.1.5",
"version": "0.1.6",
"description": "Link your Piwik/Matomo installation",

@@ -5,0 +5,0 @@ "author": "Dennis Ruhe <dennis@amazingsystems.nl>",

@@ -12,2 +12,6 @@ import bootstrap from './bootstrap'

if (options.requireConsent) {
piwik.requireConsent()
}
// Register first page view

@@ -19,2 +23,4 @@ piwik.trackPageView()

options.router.afterEach((to, from) => {
// Unfortunately the window location is not yet updated here
// We need to make our own ulr using the data provided by the router
const loc = window.location

@@ -21,0 +27,0 @@ const url = loc.protocol + '://' + loc.host + to.path

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