plausible-tracker
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -5,4 +5,11 @@ # Changelog | ||
### [0.3.4](https://github.com/Maronato/plausible-tracker/compare/v0.3.4...v0.3.5) (2022-01-25) | ||
### [0.3.6](https://github.com/Maronato/plausible-tracker/compare/v0.3.5...v0.3.6) (2022-06-06) | ||
### Bug Fixes | ||
* **tracker:** Don't access localStorage if it is not available #31 ([#31](https://github.com/plausible/plausible-tracker/pull/31)) | ||
* **tracker:** Accept number and boolean as event props ([#27](https://github.com/plausible/plausible-tracker/pull/27)) | ||
### [0.3.5](https://github.com/Maronato/plausible-tracker/compare/v0.3.4...v0.3.5) (2022-01-25) | ||
### Changes | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "plausible-tracker", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Official frontend tracker to interact with Plausible Analytics", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
@@ -25,3 +25,3 @@ import type { PlausibleOptions } from './tracker'; | ||
*/ | ||
readonly props?: { readonly [propName: string]: string }; | ||
readonly props?: { readonly [propName: string]: string | number | boolean }; | ||
}; | ||
@@ -52,4 +52,9 @@ | ||
const canAccessLocalStorage = | ||
typeof window.localStorage?.getItem === 'function'; | ||
const shouldIgnoreCurrentBrowser = | ||
canAccessLocalStorage && | ||
localStorage.getItem('plausible_ignore') === 'true'; | ||
if (shouldIgnoreCurrentBrowser) { | ||
@@ -56,0 +61,0 @@ return console.warn( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
31417
7
414
1