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

@awey/react-chart-container

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awey/react-chart-container - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

14

lib/index.js

@@ -1,2 +0,2 @@

import require$$0, { useState, useEffect, useMemo, useRef, useCallback } from "react";
import require$$0, { useRef, useEffect, useState, useMemo, useCallback } from "react";
import { addListener, removeListener } from "resize-detector";

@@ -972,2 +972,8 @@ import { deepEqual } from "fast-equals";

};
const useUnmount = (fn) => {
const fnRef = useRef(fn);
fnRef.current = fn;
const effect = () => () => fnRef.current();
useEffect(effect, []);
};
const useWatch = (state, callback) => {

@@ -1036,6 +1042,6 @@ const [prevState, setPrevState] = useState(state);

});
return () => {
props.onDestroy && props.onDestroy();
};
}, [onReady, props]);
useUnmount(() => {
props.onDestroy && props.onDestroy();
});
const onResize = useMemo(() => props.onResize, [props.onResize]);

@@ -1042,0 +1048,0 @@ const handleResize = useCallback(() => {

{
"name": "@awey/react-chart-container",
"description": "A chart container component that can be used to wrap various charts. It will handle 'init ', 'update', and 'resize' of chart appropriatly.",
"version": "1.1.3",
"version": "1.1.4",
"type": "module",

@@ -6,0 +6,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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