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

@devboldly/react-use-google-analytics-embed-api

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devboldly/react-use-google-analytics-embed-api - npm Package Compare versions

Comparing version 0.0.40 to 0.0.41

4

dist/hooks/useAnalyticsApi.js

@@ -45,3 +45,5 @@ "use strict";

var aborted = false;
var randNum = Math.random() * 1000000;
var authorizedListener = function (isAuthorized) {
console.log('useAnalyticsApi calling setAuthorized', randNum, 'aborted?', aborted);
if (!aborted) {

@@ -53,2 +55,3 @@ setAuthorized(isAuthorized);

var readyListener = function () {
console.log('useAnalyticsApi calling setGapi and setHookReady', randNum, 'aborted?', aborted);
if (!aborted) {

@@ -61,2 +64,3 @@ setGapi(exports.apiSingleton.gapi);

return function () {
aborted = true;
exports.apiStateEmitter.off('authorized', authorizedListener);

@@ -63,0 +67,0 @@ exports.apiStateEmitter.off('ready', readyListener);

3

dist/hooks/useAuthorize.js

@@ -30,3 +30,3 @@ "use strict";

var authorizedListener = function (isAuthorized) {
console.log('Calling setAuthorized', randNum, 'aborted?', aborted);
console.log('useAuthorize calling setAuthorized', randNum, 'aborted?', aborted);
if (!aborted) {

@@ -39,2 +39,3 @@ setAuthorized(isAuthorized);

return function () {
aborted = true;
console.log('Removing setAuthorized listener...', randNum);

@@ -41,0 +42,0 @@ useAnalyticsApi_1.apiStateEmitter.off('authorized', authorizedListener);

{
"name": "@devboldly/react-use-google-analytics-embed-api",
"version": "0.0.40",
"version": "0.0.41",
"author": "Dev Boldly <devboldly@gmail.com>",

@@ -5,0 +5,0 @@ "description": "React hook for loading the Google Analytics Embed API.",

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