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

oo-redux-utils

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oo-redux-utils - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

lib/AbstractComponent.js

8

lib/index.js

@@ -18,2 +18,8 @@ "use strict";

});
Object.defineProperty(exports, "AbstractComponent", {
enumerable: true,
get: function get() {
return _AbstractComponent.default;
}
});

@@ -24,3 +30,5 @@ var _OOReduxUtils = _interopRequireDefault(require("./OOReduxUtils"));

var _AbstractComponent = _interopRequireDefault(require("./AbstractComponent"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "oo-redux-utils",
"version": "1.3.2",
"version": "1.3.3",
"description": "Utility functions for Object-oriented Redux",

@@ -5,0 +5,0 @@ "keywords": [

@@ -103,3 +103,3 @@ # Object-oriented Redux Utils

### Use person state in React component
PersonView.js
PersonComponent.js

@@ -110,3 +110,3 @@ // @flow

import { connect } from 'react-redux';
import { OOReduxUtils } from 'oo-redux-utils';
import OOReduxUtils, { AbstractComponent } from 'oo-redux-utils';
import type { DispatchWrapper } from 'oo-redux-utils'

@@ -120,9 +120,9 @@ import ModifyPersonAgeAction from './ModifyPersonAgeAction';

type Props = MappedState & DispatchWrapper;
type OwnProps = {};
type Props = $Exact<{ ...MappedState, ...DispatchWrapper };
class PersonView extends React.Component<Props, {}> {
class PersonComponent extends AbstractComponent<Props, {}> {
modifyPersonAge = (newAge: number) => {
const { dispatch } = this.props;
dispatch({ type: new ModifyPersonAgeAction(newAge)});
this.dispatch(new ModifyPersonAgeAction(newAge));
};

@@ -135,3 +135,3 @@

.
<.... onChange={this.modifyPersonAge} ... />
<ComponentXYZ.... onChange={this.modifyPersonAge} ... />
.

@@ -141,3 +141,3 @@ }

export default connect(mapAppStateToComponentProps)(PersonView);
export default connect<Props, OwnProps, _, _, _, _>(mapAppStateToComponentProps)(PersonComponent);

@@ -144,0 +144,0 @@ ## Full example

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