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

analytics-utils

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analytics-utils - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

dist/getUrlParams.js

@@ -5,5 +5,7 @@ 'use strict';

var inBrowser = require('./inBrowser');
module.exports = getUrlParams;
function getUrlParams(url) {
if (typeof window === 'undefined') {
if (!inBrowser) {
return {};

@@ -10,0 +12,0 @@ }

'use strict';
var inBrowser = require('./inBrowser');
module.exports = isExternalReferrer;
function isExternalReferrer() {
if (typeof document !== 'undefined' && document.referrer) {
if (inBrowser && document.referrer) {
var port = window.document.location.port;

@@ -7,0 +9,0 @@ var ref = document.referrer.split('/')[2];

'use strict';
var isInBrowser = require('./isInBrowser');
var inBrowser = require('./inBrowser');
module.exports = removeUTMFromUrl;
function removeUTMFromUrl() {
if (isInBrowser) {
if (inBrowser) {
var _window = window,

@@ -9,0 +9,0 @@ history = _window.history,

@@ -0,4 +1,5 @@

import inBrowser from './inBrowser'
export default function getUrlParams(url) {
if (typeof window === 'undefined') {
if (!inBrowser) {
return {}

@@ -5,0 +6,0 @@ }

@@ -0,4 +1,5 @@

import inBrowser from './inBrowser'
export default function isExternalReferrer() {
if (typeof document !== 'undefined' && document.referrer) {
if (inBrowser && document.referrer) {
const port = window.document.location.port

@@ -5,0 +6,0 @@ let ref = document.referrer.split('/')[2]

@@ -1,5 +0,5 @@

import isInBrowser from './isInBrowser'
import inBrowser from './inBrowser'
export default function removeUTMFromUrl () {
if (isInBrowser) {
if (inBrowser) {
const { history, location } = window

@@ -6,0 +6,0 @@ if (location.search.indexOf('utm_') !== -1 && history && history.replaceState) {

{
"name": "analytics-utils",
"version": "0.0.2",
"version": "0.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

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