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

react-microsoft-clarity

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-microsoft-clarity - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

15

index.d.ts

@@ -22,2 +22,17 @@ export module clarity {

): void;
/**
* Cookie Consent
*/
export function consent(): void;
/**
* Setup custom tags
* @param key The tag name that identifies the kind of information you're sending
* @param value The value attached to the tag
*/
export function setTag(
key: string,
value: string
): void;

@@ -24,0 +39,0 @@ /**

@@ -24,2 +24,10 @@ var clarityInit = require("./src/react-clarity");

function consent() {
clarity("consent");
}
function setTag(key, value) {
clarity("set", key, value);
}
function upgrade(reason) {

@@ -34,4 +42,6 @@ clarity("upgrade", reason);

identify,
consent,
setTag,
upgrade,
},
};

2

package.json
{
"name": "react-microsoft-clarity",
"version": "1.1.2",
"version": "1.2.0",
"description": "A simple small component to implement Microsoft Clarity into your React Application",

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

@@ -19,2 +19,8 @@ # react-microsoft-clarity

// Cookie consent
clarity.consent();
// Setup a custom tag
clarity.setTag('key', 'value');
// Upgrade session

@@ -21,0 +27,0 @@ clarity.upgrade('upgradeReason');

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