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

redux-zero

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-zero - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

4

CHANGELOG.md
# Changelog
### 4.1.1
- Fixes drawback from the latest release by making `connect` HOC and `Connect` component provide the store as a prop
### 4.1.0

@@ -4,0 +8,0 @@

8

package.json
{
"name": "redux-zero",
"version": "4.1.0",
"version": "4.1.1",
"description": "",

@@ -11,3 +11,3 @@ "main": "dist/redux-zero.js",

"test": "jest",
"format": "prettier --write --no-semi '{src,__tests__}/**/*.ts' '{src,__tests__}/**/*.tsx'",
"format": "prettier --write --no-semi 'src/**/*.ts' 'src/**/*.tsx'",
"check": "npm run compile && npm run lint && npm run test",

@@ -38,3 +38,3 @@ "clean": "rimraf dist coverage",

"setupFiles": [
"<rootDir>/__tests__/testSetup.js"
"<rootDir>/testSetup.js"
],

@@ -45,3 +45,3 @@ "transform": {

"testMatch": [
"**/__tests__/*.(ts|tsx)"
"<rootDir>/src/**/*.spec.(ts|tsx)"
]

@@ -48,0 +48,0 @@ },

@@ -83,3 +83,3 @@ 'use strict';

Connect.prototype.render = function () {
return this.props.children(this.state);
return this.props.children(__assign({ store: this.context.store }, this.state));
};

@@ -86,0 +86,0 @@ Connect.contextTypes = {

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t["redux-zero"]={},t.React)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function r(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function o(t,e,n){return"object"==typeof t?null:new Error("Invalid prop "+e+" supplied to "+n)}var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state=e.getProps(),e.update=function(){var t=e.getProps();r(t,e.state)||e.setState(t)},e}return n(e,t),e.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},e.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},e.prototype.getProps=function(){return(0,this.props.mapToProps)(this.context.store&&this.context.store.getState()||{},this.props)},e.prototype.render=function(){return this.props.children(this.state)},e.contextTypes={store:o},e}(e.Component),s=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.getChildContext=function(){return{store:this.props.store}},r.prototype.render=function(){var t=this.props.children;return e.Children.only(t)},r.childContextTypes={store:o},r}(e.Component);t.connect=function(t){return function(n){return function(r){return e.createElement(u,{mapToProps:t},function(t){return e.createElement(n,p({},t,r))})}}},t.Provider=s,t.Connect=u,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t["redux-zero"]={},t.React)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function r(t,e,n){return"object"==typeof t?null:new Error("Invalid prop "+e+" supplied to "+n)}var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},p=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state=e.getProps(),e.update=function(){var t=e.getProps();o(t,e.state)||e.setState(t)},e}return n(e,t),e.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},e.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},e.prototype.getProps=function(){return(0,this.props.mapToProps)(this.context.store&&this.context.store.getState()||{},this.props)},e.prototype.render=function(){return this.props.children(p({store:this.context.store},this.state))},e.contextTypes={store:r},e}(e.Component),u=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return n(o,t),o.prototype.getChildContext=function(){return{store:this.props.store}},o.prototype.render=function(){var t=this.props.children;return e.Children.only(t)},o.childContextTypes={store:r},o}(e.Component);t.connect=function(t){return function(n){return function(o){return e.createElement(s,{mapToProps:t},function(t){return e.createElement(n,p({},t,o))})}}},t.Provider=u,t.Connect=s,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=index.min.js.map

@@ -34,3 +34,3 @@ <h1 align="center">

This assumes that you’re using [npm](https://www.npmjs.com/) with a module bundler like [Webpack](http://webpack.github.io)
This assumes that you’re using [npm](https://www.npmjs.com/) with a module bundler like [Webpack](https://webpack.js.org/)

@@ -37,0 +37,0 @@ ## How

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