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

microcosm

Package Overview
Dependencies
Maintainers
4
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microcosm - npm Package Compare versions

Comparing version 12.0.0-alpha.0 to 12.0.0-alpha.1

4

addons/action-button.js

@@ -49,2 +49,6 @@ 'use strict';

if (this.props.tag === 'button' && props.type == null) {
props.type = 'button';
}
return react.createElement(this.props.tag, props);

@@ -51,0 +55,0 @@ }

2

addons/action-button.min.js

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

"use strict";function e(e,t){o.PureComponent.apply(this,arguments),this.send=this.props.send||this.context.send,this.click=this.click.bind(this)}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../microcosm.js"),o=require("react");e.contextTypes=e.propTypes={send:o.PropTypes.func},e.defaultProps={tag:"button"},t.inherit(e,o.PureComponent,{click:function(e){var o=this.send(this.props.action,this.props.value);return o&&o instanceof t.Action&&o.onDone(this.props.onDone).onUpdate(this.props.onUpdate).onCancel(this.props.onCancel).onError(this.props.onError),this.props.onClick&&this.props.onClick(e,o),o},render:function(){var e=t.merge({},this.props,{onClick:this.click});return delete e.tag,delete e.action,delete e.value,delete e.onDone,delete e.onUpdate,delete e.onCancel,delete e.onError,delete e.send,o.createElement(this.props.tag,e)}}),exports.default=e;
"use strict";function e(e,t){o.PureComponent.apply(this,arguments),this.send=this.props.send||this.context.send,this.click=this.click.bind(this)}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../microcosm.js"),o=require("react");e.contextTypes=e.propTypes={send:o.PropTypes.func},e.defaultProps={tag:"button"},t.inherit(e,o.PureComponent,{click:function(e){var o=this.send(this.props.action,this.props.value);return o&&o instanceof t.Action&&o.onDone(this.props.onDone).onUpdate(this.props.onUpdate).onCancel(this.props.onCancel).onError(this.props.onError),this.props.onClick&&this.props.onClick(e,o),o},render:function(){var e=t.merge({},this.props,{onClick:this.click});return delete e.tag,delete e.action,delete e.value,delete e.onDone,delete e.onUpdate,delete e.onCancel,delete e.onError,delete e.send,"button"===this.props.tag&&null==e.type&&(e.type="button"),o.createElement(this.props.tag,e)}}),exports.default=e;
{
"name": "microcosm",
"version": "12.0.0-alpha.0",
"version": "12.0.0-alpha.1",
"description": "Flux with actions at center stage. Write optimistic updates, cancel requests, and track changes with ease.",

@@ -5,0 +5,0 @@ "main": "microcosm.js",

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