🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-redux-mvc

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-redux-mvc - npm Package Compare versions

Comparing version

to
0.4.17

8

lib/controller.js

@@ -74,5 +74,6 @@ 'use strict';exports.__esModule = true;exports.default = undefined;var _promise = require('babel-runtime/core-js/promise');var _promise2 = _interopRequireDefault(_promise);var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);var _class, _temp;var _react = require('react');

onInit = function () {return _promise2.default.resolve();};this.Model = Model;this.checkSettings();this.storeKey = this.constructor.storeKey;this.actions = this.constructor.actions;this.propTypes = this.constructor.propTypes;} /**
* проверяет, чтобы все необходимое было установлено
*/ //действия которые надо обернуть dispatch-ем
onInit = function () {return _promise2.default.resolve();};this.Model = Model; // this.checkSettings();
this.storeKey = this.constructor.storeKey;this.actions = this.constructor.actions;this.propTypes = this.constructor.propTypes;} /**
* проверяет, чтобы все необходимое было установлено
*/ //действия которые надо обернуть dispatch-ем
//propsType bind to connected component

@@ -100,3 +101,2 @@ Controller.prototype.checkSettings = function checkSettings() {if (!this.constructor.storeKey) {throw new Error('Store key in ' + this.name + ' must be defined');}}; /**

isWaiting = function isWaiting(prop) {

@@ -103,0 +103,0 @@ if (this.Model) {

@@ -16,2 +16,5 @@ 'use strict';exports.__esModule = true;var _keys = require('babel-runtime/core-js/object/keys');var _keys2 = _interopRequireDefault(_keys);var _extends2 = require('babel-runtime/helpers/extends');var _extends3 = _interopRequireDefault(_extends2);var _assign = require('babel-runtime/core-js/object/assign');var _assign2 = _interopRequireDefault(_assign);var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);var _react = require('react');

this.reset(data);
};Model.prototype.
onInit = function onInit() {
return this;
};

@@ -23,2 +26,3 @@

this._createShape();
this.onInit();
}Model.prototype.

@@ -25,0 +29,0 @@

{
"name": "react-redux-mvc",
"version": "0.4.16",
"version": "0.4.17",
"description": "Implementation of MVC pattern based on React-Redux bunch",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -21,3 +21,3 @@ import {PropTypes} from 'react';

this.Model = Model;
this.checkSettings();
// this.checkSettings();
this.storeKey = this.constructor.storeKey;

@@ -24,0 +24,0 @@ this.actions = this.constructor.actions;

@@ -17,2 +17,5 @@ import {PropTypes} from 'react';

}
onInit() {
return this;
}

@@ -23,2 +26,3 @@ constructor (props, options = {}) {

this._createShape();
this.onInit();
}

@@ -25,0 +29,0 @@