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

collapsible-react-component

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collapsible-react-component - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

6

dist/Collapsible.js
import { jsx } from 'react/jsx-runtime';
import { useRef, useCallback } from 'react';
import { useRef, useReducer, useCallback } from 'react';
import styles from './Collapsible.module.css.js';

@@ -13,2 +13,5 @@ import { revealTypes } from './revealTypes.js';

var stateRef = useRef({ open: open, transitioning: false });
var _d = useReducer(function (counter) {
return counter + 1;
}, 0), forceRender = _d[1];
if (lastOpenRef.current !== open) {

@@ -28,2 +31,3 @@ lastOpenRef.current = open;

stateRef.current = { open: open, transitioning: false };
forceRender();
}

@@ -30,0 +34,0 @@ }, [open, onTransitionEnd]);

2

package.json
{
"name": "collapsible-react-component",
"version": "3.0.3",
"version": "3.0.4",
"description": "Collapses and expands content with an animation.",

@@ -5,0 +5,0 @@ "type": "module",

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