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

mounty

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mounty - npm Package Compare versions

Comparing version 1.0.1 to 1.1.1

2

dist/index.d.ts

@@ -20,3 +20,3 @@ import * as React from "react";

};
export default class Mounty extends React.Component<MountyProps, MountyState> {
export declare class Mounty extends React.Component<MountyProps, MountyState> {
static defaultProps: {

@@ -23,0 +23,0 @@ ready: boolean;

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

import{Component as t}from"react";var e=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).state={active:e.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.state.active&&this.enter()},o.componentDidUpdate=function(){var t=this.state,e=t.active,n=t.ready,i=this.props.in;t.entering||t.exiting||(!i&&n&&e?this.exit():!i||n||e||this.enter())},o.enter=function(){var t=this,e=this.props,n=e.timeout,i=e.onEntering,o=e.onEntered;this.setState({active:!0,entered:!1,exited:!1},function(){setTimeout(function(){t.setState({ready:!0,entering:!0},function(){i&&i(),setTimeout(function(){t.setState({entering:!1,entered:!0},function(){o&&o()})},n)})},10)})},o.exit=function(){var t=this,e=this.props,n=e.timeout,i=e.onExiting,o=e.onExited;this.setState({ready:!1,exiting:!0,exited:!1,entered:!1},function(){i&&i(),setTimeout(function(){t.setState({active:!1,exiting:!1,exited:!0},function(){o&&o()})},n)})},o.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},i}(t);e.defaultProps={ready:!1,timeout:0,shouldUnmount:!1};export default e;
import{Component as t}from"react";var e=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).state={active:e.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.state.active&&this.enter()},o.componentDidUpdate=function(){var t=this.state,e=t.active,n=t.ready,i=this.props.in;t.entering||t.exiting||(!i&&n&&e?this.exit():!i||n||e||this.enter())},o.enter=function(){var t=this,e=this.props,n=e.timeout,i=e.onEntering,o=e.onEntered;this.setState({active:!0,entered:!1,exited:!1},function(){setTimeout(function(){t.setState({ready:!0,entering:!0},function(){i&&i(),setTimeout(function(){t.setState({entering:!1,entered:!0},function(){o&&o()})},n)})},10)})},o.exit=function(){var t=this,e=this.props,n=e.timeout,i=e.onExiting,o=e.onExited;this.setState({ready:!1,exiting:!0,exited:!1,entered:!1},function(){i&&i(),setTimeout(function(){t.setState({active:!1,exiting:!1,exited:!0},function(){o&&o()})},n)})},o.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},i}(t);e.defaultProps={ready:!1,timeout:0,shouldUnmount:!1};export{e as Mounty};
//# sourceMappingURL=mounty.es.js.map

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

var t=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).state={active:e.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.state.active&&this.enter()},o.componentDidUpdate=function(){var t=this.state,e=t.active,n=t.ready,i=this.props.in;t.entering||t.exiting||(!i&&n&&e?this.exit():!i||n||e||this.enter())},o.enter=function(){var t=this,e=this.props,n=e.timeout,i=e.onEntering,o=e.onEntered;this.setState({active:!0,entered:!1,exited:!1},function(){setTimeout(function(){t.setState({ready:!0,entering:!0},function(){i&&i(),setTimeout(function(){t.setState({entering:!1,entered:!0},function(){o&&o()})},n)})},10)})},o.exit=function(){var t=this,e=this.props,n=e.timeout,i=e.onExiting,o=e.onExited;this.setState({ready:!1,exiting:!0,exited:!1,entered:!1},function(){i&&i(),setTimeout(function(){t.setState({active:!1,exiting:!1,exited:!0},function(){o&&o()})},n)})},o.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},i}(require("react").Component);t.defaultProps={ready:!1,timeout:0,shouldUnmount:!1},module.exports=t;
var t=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).state={active:e.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.state.active&&this.enter()},o.componentDidUpdate=function(){var t=this.state,e=t.active,n=t.ready,i=this.props.in;t.entering||t.exiting||(!i&&n&&e?this.exit():!i||n||e||this.enter())},o.enter=function(){var t=this,e=this.props,n=e.timeout,i=e.onEntering,o=e.onEntered;this.setState({active:!0,entered:!1,exited:!1},function(){setTimeout(function(){t.setState({ready:!0,entering:!0},function(){i&&i(),setTimeout(function(){t.setState({entering:!1,entered:!0},function(){o&&o()})},n)})},10)})},o.exit=function(){var t=this,e=this.props,n=e.timeout,i=e.onExiting,o=e.onExited;this.setState({ready:!1,exiting:!0,exited:!1,entered:!1},function(){i&&i(),setTimeout(function(){t.setState({active:!1,exiting:!1,exited:!0},function(){o&&o()})},n)})},o.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},i}(require("react").Component);t.defaultProps={ready:!1,timeout:0,shouldUnmount:!1},exports.Mounty=t;
//# sourceMappingURL=mounty.js.map

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

import{Component as t}from"react";var e=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).state={active:e.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.state.active&&this.enter()},o.componentDidUpdate=function(){var t=this.state,e=t.active,n=t.ready,i=this.props.in;t.entering||t.exiting||(!i&&n&&e?this.exit():!i||n||e||this.enter())},o.enter=function(){var t=this,e=this.props,n=e.timeout,i=e.onEntering,o=e.onEntered;this.setState({active:!0,entered:!1,exited:!1},function(){setTimeout(function(){t.setState({ready:!0,entering:!0},function(){i&&i(),setTimeout(function(){t.setState({entering:!1,entered:!0},function(){o&&o()})},n)})},10)})},o.exit=function(){var t=this,e=this.props,n=e.timeout,i=e.onExiting,o=e.onExited;this.setState({ready:!1,exiting:!0,exited:!1,entered:!1},function(){i&&i(),setTimeout(function(){t.setState({active:!1,exiting:!1,exited:!0},function(){o&&o()})},n)})},o.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},i}(t);e.defaultProps={ready:!1,timeout:0,shouldUnmount:!1};export default e;
import{Component as t}from"react";var e=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).state={active:e.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.state.active&&this.enter()},o.componentDidUpdate=function(){var t=this.state,e=t.active,n=t.ready,i=this.props.in;t.entering||t.exiting||(!i&&n&&e?this.exit():!i||n||e||this.enter())},o.enter=function(){var t=this,e=this.props,n=e.timeout,i=e.onEntering,o=e.onEntered;this.setState({active:!0,entered:!1,exited:!1},function(){setTimeout(function(){t.setState({ready:!0,entering:!0},function(){i&&i(),setTimeout(function(){t.setState({entering:!1,entered:!0},function(){o&&o()})},n)})},10)})},o.exit=function(){var t=this,e=this.props,n=e.timeout,i=e.onExiting,o=e.onExited;this.setState({ready:!1,exiting:!0,exited:!1,entered:!1},function(){i&&i(),setTimeout(function(){t.setState({active:!1,exiting:!1,exited:!0},function(){o&&o()})},n)})},o.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},i}(t);e.defaultProps={ready:!1,timeout:0,shouldUnmount:!1};export{e as Mounty};
//# sourceMappingURL=mounty.modern.js.map

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):(t=t||self).mounty=e(t.react)}(this,function(t){var e=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).state={active:e.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.state.active&&this.enter()},o.componentDidUpdate=function(){var t=this.state,e=t.active,n=t.ready,i=this.props.in;t.entering||t.exiting||(!i&&n&&e?this.exit():!i||n||e||this.enter())},o.enter=function(){var t=this,e=this.props,n=e.timeout,i=e.onEntering,o=e.onEntered;this.setState({active:!0,entered:!1,exited:!1},function(){setTimeout(function(){t.setState({ready:!0,entering:!0},function(){i&&i(),setTimeout(function(){t.setState({entering:!1,entered:!0},function(){o&&o()})},n)})},10)})},o.exit=function(){var t=this,e=this.props,n=e.timeout,i=e.onExiting,o=e.onExited;this.setState({ready:!1,exiting:!0,exited:!1,entered:!1},function(){i&&i(),setTimeout(function(){t.setState({active:!1,exiting:!1,exited:!0},function(){o&&o()})},n)})},o.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},i}(t.Component);return e.defaultProps={ready:!1,timeout:0,shouldUnmount:!1},e});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e((t=t||self).mounty={},t.react)}(this,function(t,e){var n=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).state={active:e.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.state.active&&this.enter()},o.componentDidUpdate=function(){var t=this.state,e=t.active,n=t.ready,i=this.props.in;t.entering||t.exiting||(!i&&n&&e?this.exit():!i||n||e||this.enter())},o.enter=function(){var t=this,e=this.props,n=e.timeout,i=e.onEntering,o=e.onEntered;this.setState({active:!0,entered:!1,exited:!1},function(){setTimeout(function(){t.setState({ready:!0,entering:!0},function(){i&&i(),setTimeout(function(){t.setState({entering:!1,entered:!0},function(){o&&o()})},n)})},10)})},o.exit=function(){var t=this,e=this.props,n=e.timeout,i=e.onExiting,o=e.onExited;this.setState({ready:!1,exiting:!0,exited:!1,entered:!1},function(){i&&i(),setTimeout(function(){t.setState({active:!1,exiting:!1,exited:!0},function(){o&&o()})},n)})},o.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},i}(e.Component);n.defaultProps={ready:!1,timeout:0,shouldUnmount:!1},t.Mounty=n});
//# sourceMappingURL=mounty.umd.js.map
{
"name": "mounty",
"version": "1.0.1",
"version": "1.1.1",
"description": "A tiny React transition manager with mount/unmount support and a familiar API.",

@@ -5,0 +5,0 @@ "source": "index.tsx",

@@ -16,3 +16,3 @@ # mounty

```javascript
import Mounty from "mounty";
import { Mounty } from "mounty";

@@ -19,0 +19,0 @@ function App() {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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