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

next-plausible

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-plausible - npm Package Compare versions

Comparing version 3.7.2 to 3.8.0

4

dist/index.d.ts

@@ -24,2 +24,6 @@ import React, { ReactNode } from 'react';

/**
* Set this to true if you want to enable custom properties for pageviews as described https://plausible.io/docs/custom-pageview-props.
*/
pageviewProps?: boolean;
/**
* Set this to true if you want to enable localhost tracking as described https://plausible.io/docs/script-extensions.

@@ -26,0 +30,0 @@ */

3

dist/index.esm.js

@@ -49,2 +49,3 @@ import React, { useCallback } from 'react';

'tagged-events',
'pageview-props',
];

@@ -144,3 +145,3 @@ const getScriptPath = (options, ...modifiers) => {

? proxyOptions.scriptName
: getRemoteScriptName(props.selfHosted) }), props.trackLocalhost ? 'local' : null, props.manualPageviews ? 'manual' : null, props.trackOutboundLinks ? 'outbound-links' : null, props.exclude ? 'exclusions' : null, props.trackFileDownloads ? 'file-downloads' : null, props.taggedEvents ? 'tagged-events' : null), integrity: props.integrity, crossOrigin: props.integrity ? 'anonymous' : undefined }, props.scriptProps))),
: getRemoteScriptName(props.selfHosted) }), props.trackLocalhost ? 'local' : null, props.manualPageviews ? 'manual' : null, props.pageviewProps ? 'pageview-props' : null, props.trackOutboundLinks ? 'outbound-links' : null, props.exclude ? 'exclusions' : null, props.trackFileDownloads ? 'file-downloads' : null, props.taggedEvents ? 'tagged-events' : null), integrity: props.integrity, crossOrigin: props.integrity ? 'anonymous' : undefined }, props.scriptProps))),
enabled && (React.createElement(Script, { id: "next-plausible-init", dangerouslySetInnerHTML: {

@@ -147,0 +148,0 @@ __html: `window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }`,

@@ -58,2 +58,3 @@ 'use strict';

'tagged-events',
'pageview-props',
];

@@ -153,3 +154,3 @@ const getScriptPath = (options, ...modifiers) => {

? proxyOptions.scriptName
: getRemoteScriptName(props.selfHosted) }), props.trackLocalhost ? 'local' : null, props.manualPageviews ? 'manual' : null, props.trackOutboundLinks ? 'outbound-links' : null, props.exclude ? 'exclusions' : null, props.trackFileDownloads ? 'file-downloads' : null, props.taggedEvents ? 'tagged-events' : null), integrity: props.integrity, crossOrigin: props.integrity ? 'anonymous' : undefined }, props.scriptProps))),
: getRemoteScriptName(props.selfHosted) }), props.trackLocalhost ? 'local' : null, props.manualPageviews ? 'manual' : null, props.pageviewProps ? 'pageview-props' : null, props.trackOutboundLinks ? 'outbound-links' : null, props.exclude ? 'exclusions' : null, props.trackFileDownloads ? 'file-downloads' : null, props.taggedEvents ? 'tagged-events' : null), integrity: props.integrity, crossOrigin: props.integrity ? 'anonymous' : undefined }, props.scriptProps))),
enabled && (React__default["default"].createElement(Script__default["default"], { id: "next-plausible-init", dangerouslySetInnerHTML: {

@@ -156,0 +157,0 @@ __html: `window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }`,

{
"name": "next-plausible",
"version": "3.7.2",
"version": "3.8.0",
"files": [

@@ -5,0 +5,0 @@ "dist"

@@ -65,3 +65,3 @@ # Next-Plausible · [![npm version](https://img.shields.io/npm/v/next-plausible.svg?style=flat)](https://www.npmjs.com/package/next-plausible)

| Name | Description |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `domain` | The domain of the site you want to monitor. |

@@ -74,2 +74,3 @@ | `customDomain` | Set this if you use a custom domain to serve the analytics script. Defaults to https://plausible.io. See https://plausible.io/docs/custom-domain for more details. |

| `manualPageviews` | Set this to `true` if you want to disable automatic pageview events as described [here](https://plausible.io/docs/script-extensions#plausiblemanualjs). |
| `pageviewProps` | Set this to `true` if you want to enable custom properties for pageviews as described [here](https://plausible.io/docs/custom-pageview-props). |
| `exclude` | Set this if you want to exclude a set of pages from being tracked. See https://plausible.io/docs/excluding-pages for more details. |

@@ -76,0 +77,0 @@ | `selfHosted` | Set this to `true` if you are self hosting your Plausible instance. Otherwise you will get a 404 when requesting the script. |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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