New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dapperlabs/react-analytics

Package Overview
Dependencies
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dapperlabs/react-analytics - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

6

dist/index.js

@@ -172,9 +172,7 @@ 'use strict';

var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (!window.analytics) return;
if (!userId) return window.analytics.reset();
if (!window.analytics || !userId) return;
window.analytics.identify(userId, properties);
}, []);
var alias = React.useCallback(function (userId, previousUserId) {
if (!window.analytics) return;
if (!userId) return window.analytics.reset();
if (!window.analytics || !userId) return;
window.analytics.alias(userId, previousUserId);

@@ -181,0 +179,0 @@ }, []);

{
"name": "@dapperlabs/react-analytics",
"version": "0.4.0",
"version": "0.5.0",
"description": "A utility to connect react projects to segment",

@@ -5,0 +5,0 @@ "repository": "github:dapperlabs/react-analytics",

@@ -17,4 +17,3 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';

const identify = useCallback((userId, properties = {}) => {
if (!window.analytics) return;
if (!userId) return window.analytics.reset();
if (!window.analytics || !userId) return;
window.analytics.identify(userId, properties);

@@ -24,4 +23,3 @@ }, []);

const alias = useCallback((userId, previousUserId) => {
if (!window.analytics) return;
if (!userId) return window.analytics.reset();
if (!window.analytics || !userId) return;
window.analytics.alias(userId, previousUserId);

@@ -28,0 +26,0 @@ }, []);

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