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.0 to 1.0.1

dist/mounty.modern.js

2

dist/mounty.es.js

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

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

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

var t=function(t){function e(){t.apply(this,arguments),this.state={active:this.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.componentDidMount=function(){this.state.active&&this.enter()},e.prototype.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())},e.prototype.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)})},e.prototype.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)})},e.prototype.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},e}(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},module.exports=t;
//# sourceMappingURL=mounty.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.mounty=e(t.react)}(this,function(t){var e=function(t){function e(){t.apply(this,arguments),this.state={active:this.props.in,ready:!1,entering:!1,entered:!1,exiting:!1,exited:!1}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.componentDidMount=function(){this.state.active&&this.enter()},e.prototype.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())},e.prototype.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)})},e.prototype.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)})},e.prototype.render=function(){return!this.state.active&&this.props.shouldUnmount?null:this.props.children(this.state)},e}(t.Component);return e.defaultProps={ready:!1,timeout:0,shouldUnmount:!1},e});
!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});
//# sourceMappingURL=mounty.umd.js.map
{
"name": "mounty",
"version": "1.0.0",
"version": "1.0.1",
"description": "A tiny React transition manager with mount/unmount support and a familiar API.",

@@ -39,11 +39,11 @@ "source": "index.tsx",

"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/jest": "^25.1.1",
"@types/react": "^16.9.11",
"@types/react-dom": "^16.9.3",
"@types/jest": "^25.1.2",
"@types/react": "^16.9.19",
"@types/react-dom": "^16.9.5",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"jest": "^25.1.0",
"microbundle": "^0.11.0",
"microbundle": "^0.12.0-next.8",
"ts-jest": "^25.2.0",
"ts-node": "^8.4.1",
"ts-node": "^8.6.2",
"typescript": "^3.7.5"

@@ -66,5 +66,5 @@ },

"dependencies": {
"react": "^16.11.0",
"react-dom": "^16.11.0"
"react": "^16.12.0",
"react-dom": "^16.12.0"
}
}

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