Comparing version 1.4.0 to 1.4.2
@@ -5,5 +5,5 @@ /** | ||
*/ | ||
/*globals Promise */ | ||
'use strict'; | ||
var debug = require('debug')('Fluxible'); | ||
var isPromise = require('is-promise'); | ||
@@ -21,3 +21,2 @@ var FluxibleContext = require('./FluxibleContext'); | ||
if (payload.err) { | ||
debug('Action returned error', payload.actionName, payload.err); | ||
throw payload.err; | ||
@@ -43,3 +42,2 @@ } | ||
function Fluxible(options) { | ||
debug('Fluxible instance instantiated', options); | ||
options = options || {}; | ||
@@ -143,3 +141,2 @@ | ||
Fluxible.prototype.registerStore = function registerStore() { | ||
debug(arguments[0].storeName + ' store registered'); | ||
this._dispatcher.registerStore.apply(this._dispatcher, arguments); | ||
@@ -155,3 +152,2 @@ }; | ||
Fluxible.prototype.dehydrate = function dehydrate(context) { | ||
debug('dehydrate', context); | ||
var self = this; | ||
@@ -184,3 +180,2 @@ var state = { | ||
Fluxible.prototype.rehydrate = function rehydrate(obj, callback) { | ||
debug('rehydrate', obj); | ||
var self = this; | ||
@@ -187,0 +182,0 @@ if (__DEV__) { |
@@ -7,3 +7,2 @@ /** | ||
var debug = require('debug')('Fluxible:Context'); | ||
var isPromise = require('is-promise'); | ||
@@ -148,5 +147,2 @@ var generateUUID = require('../utils/generateUUID'); | ||
if (debug.enabled) { | ||
debug('Executing action ' + actionContext.stack.join('.') + ' with payload', payload); | ||
} | ||
return callAction(actionContext, action, payload, done); | ||
@@ -264,9 +260,8 @@ } | ||
if (__DEV__) { | ||
console.warn('When calling executeAction from a component,' + | ||
'a callback isn\'t allowed. See our docs for more info:' + | ||
console.warn('When calling executeAction from a component, ' + | ||
'a callback isn\'t allowed. See our docs for more info: ' + | ||
'http://fluxible.io/api/components.html#component-context'); | ||
} | ||
} | ||
self.executeAction(action, payload) | ||
['catch'](function actionHandlerWrapper(err) { | ||
self.executeAction(action, payload) ['catch'](function actionHandlerWrapper(err) { | ||
return self.executeAction(self._app._componentActionErrorHandler, { | ||
@@ -276,4 +271,3 @@ actionName: action.displayName || action.name, | ||
}); | ||
}) | ||
['catch'](function unhandledError(err) { | ||
})['catch'](function unhandledError(err) { | ||
setImmediate(function () { | ||
@@ -280,0 +274,0 @@ throw err; |
{ | ||
"name": "fluxible", | ||
"version": "1.4.0", | ||
"version": "1.4.2", | ||
"description": "A pluggable container for isomorphic flux applications", | ||
@@ -11,8 +11,7 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "../../node_modules/.bin/mocha tests/unit/ --recursive --compilers js:babel-register --reporter spec", | ||
"cover": "../../node_modules/.bin/istanbul cover --dir artifacts -- ../../node_modules/.bin/_mocha tests/unit/ --recursive --compilers js:babel-register --reporter spec", | ||
"test": "../../node_modules/.bin/mocha tests/unit/", | ||
"cover": "BABEL_ENV=test ../../node_modules/.bin/nyc ../../node_modules/.bin/_mocha tests/unit/", | ||
"lint": "../../node_modules/.bin/eslint lib/ addons/" | ||
}, | ||
"dependencies": { | ||
"debug": "^2.0.0", | ||
"dispatchr": "^1.0.0", | ||
@@ -19,0 +18,0 @@ "is-promise": "^2.0.0", |
@@ -5,3 +5,2 @@ /** | ||
*/ | ||
/* global Promise */ | ||
'use strict'; | ||
@@ -8,0 +7,0 @@ var isPromise = require('is-promise'); |
@@ -20,3 +20,3 @@ /** | ||
componentWillMount: function () { | ||
componentDidMount: function () { | ||
console.warn(warningMessage); | ||
@@ -23,0 +23,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
47269
780
- Removeddebug@^2.0.0
- Removeddebug@2.6.9(transitive)
- Removedms@2.0.0(transitive)