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

react-amplitude-hooks

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-amplitude-hooks - npm Package Compare versions

Comparing version 0.9.14 to 0.10.0

6

dist/components/LogOnChange.js

@@ -7,6 +7,6 @@ "use strict";

exports.LogOnChange = function (props) {
var _a = Amplitude_1.useAmplitude(undefined, props.instanceName), logEvent = _a.logEvent, amplitudeInstance = _a.amplitudeInstance;
var logEvent = Amplitude_1.useAmplitude(undefined, props.instanceName).logEvent;
React.useEffect(function () {
logEvent(props.eventType, props.eventProperties);
}, [props.eventType, props.eventProperties, props.value, amplitudeInstance]);
}, [props.value]);
return props.children || null;

@@ -18,3 +18,3 @@ };

instanceName: PropTypes.string,
value: PropTypes.any
value: PropTypes.any,
};

@@ -7,6 +7,6 @@ "use strict";

exports.LogOnMount = function (props) {
var _a = Amplitude_1.useAmplitude(undefined, props.instanceName), logEvent = _a.logEvent, amplitudeInstance = _a.amplitudeInstance;
var logEvent = Amplitude_1.useAmplitude(undefined, props.instanceName).logEvent;
React.useEffect(function () {
logEvent(props.eventType, props.eventProperties);
}, [props.eventType, props.eventProperties, amplitudeInstance]);
}, []);
return props.children || null;

@@ -17,3 +17,3 @@ };

eventType: PropTypes.string.isRequired,
instanceName: PropTypes.string
instanceName: PropTypes.string,
};

@@ -54,3 +54,3 @@ {

"types": "dist/index.d.ts",
"version": "0.9.14"
"version": "0.10.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