Socket
Socket
Sign inDemoInstall

nuxt-umami

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-umami - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3-beta.1

79

nuxt.config.ts
export default defineNuxtConfig({
appConfig: {
umami: {
id: '',
host: '',
domains: undefined,
autoTrack: true,
ignoreDnt: true,
ignoreLocalhost: false,
version: 1,
},
},
});
declare module '@nuxt/schema' {
interface AppConfigInput {
umami: {
/**
* Your umami endpoint. This is where you would
* normally load the script from.
* @required true
* @example 'https://ijkml.xyz/'
*/
host: string
/**
* Unique identifier provided by Umami
*
* @required true
* @example `3c255b6d-678a-42dd-8074-272ee5b78484`
*/
id: string
/**
* Configure the tracker to only run on specific domains.
* Provide a comma delimited list of domains (without 'http').
* Leave as `undefined` to run on all domains.
*
* @example `mywebsite.com, mywebsite2.com`
* @default undefined
*/
domains?: string
/**
* Whether to ignore browsers' Do Not Track setting.
*
* Setting this to `false` will totally disable tracking
* on browsers that have the DoNotTrack setting turned on.
* @default true
*/
ignoreDnt?: boolean
/**
* Option to automatically track page views.
*
* @default true
*/
autoTrack?: boolean
/**
* Whether or not to track during development (localhost).
*
* @default false
*/
ignoreLocalhost?: boolean
/**
* Version of Umami used, either `1.x.x` or `2.x.x`
*
* @default 1
*/
version?: 1 | 2
}
}
interface AppConfig {
umami: {
host: string
id: string
autoTrack?: boolean
domains?: string
ignoreDnt?: boolean
ignoreLocalhost?: boolean
version?: 1 | 2
}
}
}

8

package.json
{
"name": "nuxt-umami",
"type": "module",
"version": "2.0.2",
"main": "./nuxt.config.ts",
"version": "2.0.3-beta.1",
"description": "Integrate Umami Analytics into Nuxt",
"author": "ML <me.mlaure@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/ijkml/nuxt-umami/tree/next",
"repository": "https://github.com/ijkml/nuxt-umami/tree/next",
"homepage": "https://github.com/ijkml/nuxt-umami/tree/next",
"keywords": [

@@ -21,2 +20,3 @@ "nuxt",

],
"main": "./nuxt.config.ts",
"files": [

@@ -37,3 +37,3 @@ "utils/",

"release": "bumpp --commit --push --tag && npm publish --access public --tag next",
"release:beta": "bumpp --commit --push --no-tag && npm publish --access public --tag next"
"release:beta": "bumpp prerelease --commit --push --no-tag && npm publish --access public --tag next"
},

@@ -40,0 +40,0 @@ "devDependencies": {

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