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

react-transition-state

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-transition-state - npm Package Compare versions

Comparing version 1.2.0-alpha.4 to 1.2.0-alpha.5

5

dist/cjs/index.js

@@ -20,3 +20,4 @@ 'use strict';

isEnter: _state < PRE_EXIT,
isMounted: _state !== UNMOUNTED
isMounted: _state !== UNMOUNTED,
isResolved: _state === ENTERED || _state > EXITING
};

@@ -154,3 +155,3 @@ };

unmountOnExit = _ref2.unmountOnExit,
onChange = _ref2.onChange;
onChange = _ref2.onStateChange;

@@ -157,0 +158,0 @@ var _useState = react.useState(initialStateMap),

2

dist/es/hooks/useTransitionMap.js

@@ -39,3 +39,3 @@ import { useState, useRef, useCallback } from 'react';

unmountOnExit = _ref2.unmountOnExit,
onChange = _ref2.onChange;
onChange = _ref2.onStateChange;

@@ -42,0 +42,0 @@ var _useState = useState(initialStateMap),

@@ -14,3 +14,4 @@ var PRE_ENTER = 0;

isEnter: _state < PRE_EXIT,
isMounted: _state !== UNMOUNTED
isMounted: _state !== UNMOUNTED,
isResolved: _state === ENTERED || _state > EXITING
};

@@ -17,0 +18,0 @@ };

{
"name": "react-transition-state",
"version": "1.2.0-alpha.4",
"version": "1.2.0-alpha.5",
"description": "Zero dependency, 0.7KB react-transition-group alternative.",

@@ -5,0 +5,0 @@ "author": "Zheng Song",

@@ -14,2 +14,3 @@ export type TransitionState =

isEnter: boolean;
isResolved: boolean;
}

@@ -35,3 +36,3 @@

singleEnter?: boolean;
onChange?: (event: { key: K; current: State }) => void;
onStateChange?: (event: { key: K; current: State }) => void;
}

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