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

react-use-intercom

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-intercom - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

11

package.json

@@ -7,3 +7,3 @@ {

"homepage": "https://github.com/devrnt/react-use-intercom#readme",
"version": "0.3.0",
"version": "0.3.1",
"license": "MIT",

@@ -52,3 +52,4 @@ "main": "dist/index.js",

"peerDependencies": {
"react": ">=16"
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},

@@ -73,7 +74,7 @@ "husky": {

"bundlesize": "^0.18.0",
"cypress": "4.6.0",
"cypress": "4.9.0",
"dotenv": "^8.2.0",
"husky": "^4.2.5",
"jsdom": "^16.2.2",
"np": "^6.2.3",
"np": "^6.2.5",
"react": "^16.13.1",

@@ -84,3 +85,3 @@ "react-dom": "^16.13.1",

"tslib": "^2.0.0",
"typescript": "^3.9.3"
"typescript": "^3.9.5"
},

@@ -87,0 +88,0 @@ "resolutions": {

@@ -5,2 +5,3 @@ # react-use-intercom

<img alt="version" src="https://img.shields.io/npm/v/react-use-intercom.svg" />
<img alt="downloads" src="https://badgen.net/npm/dt/react-use-intercom" />
<img alt="minzipped size" src="https://badgen.net/bundlephobia/minzip/react-use-intercom">

@@ -76,3 +77,3 @@ [![Known Vulnerabilities](https://snyk.io/test/github/devrnt/react-use-intercom/badge.svg)](https://snyk.io/test/github/devrnt/react-use-intercom)

const App = () => {
const [unreadMessagesCount, unreadMessagesCount] = React.useState(0);
const [unreadMessagesCount, setUnreadMessagesCount] = React.useState(0);

@@ -83,4 +84,3 @@ const onHide = () => console.log('Intercom did hide the Messenger');

console.log('Intercom has a new unread message');
unreadMessagesCount(amount);
console.log('New amount of unread messages: ', unreadMessagesCount);
setUnreadMessagesCount(amount);
};

@@ -226,3 +226,3 @@

## Troubleshoot
* I'm seeing "Please wrap your component with IntercomProvider.` in the console.
* I'm seeing "Please wrap your component with IntercomProvider." in the console.
> Make sure `IntercomProvider` is initialized before calling `useIntercom()`. You only need to initialize `IntercomProvider` once. It is advised to initialize `IntercomProvider` as high as possible in your application tree.

@@ -229,0 +229,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