Comparing version 0.1.4 to 0.1.6
"use strict"; | ||
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
module.exports = FluxComponent; | ||
var React = require("react"); | ||
var shallowEqual = require("react/lib/shallowEqual"); | ||
var React = _interopRequire(require("react")); | ||
var shallowEqual = _interopRequire(require("react/lib/shallowEqual")); | ||
function FluxComponent(Component, stores, storeDidChange) { | ||
module.exports = function FluxComponent(Component, stores, storeDidChange) { | ||
var FluxComponent = React.createClass({ | ||
@@ -59,2 +54,2 @@ displayName: "FluxComponent", | ||
return FluxComponent; | ||
} | ||
}; |
@@ -11,2 +11,12 @@ "use strict"; | ||
function withErrorLogging(f) { | ||
return function () { | ||
try { | ||
f.apply(this, arguments); | ||
} catch (e) { | ||
con.error(e.stack); | ||
} | ||
}; | ||
}; | ||
/** | ||
@@ -31,3 +41,3 @@ * Store class | ||
var self = this; | ||
this.callback = callback.bind(this); | ||
this.callback = withErrorLogging(callback).bind(this); | ||
this._pending = false; | ||
@@ -42,2 +52,3 @@ this._errors = []; | ||
assign(this, EventEmitter.prototype, methods); | ||
this.setMaxListeners(0); | ||
this.mixin = { | ||
@@ -44,0 +55,0 @@ componentDidMount: function componentDidMount() { |
{ | ||
"name": "biff", | ||
"version": "0.1.4", | ||
"version": "0.1.6", | ||
"description": "Flux architecture made easy", | ||
@@ -32,5 +32,6 @@ "keywords": [ | ||
"es6-promise": "^2.0.0", | ||
"events": "^1.0.2", | ||
"flux": "^2.0.1", | ||
"object-assign": "^1.0.0", | ||
"simple-console": "^0.1.0" | ||
"simple-console": "^0.1.1" | ||
}, | ||
@@ -37,0 +38,0 @@ "devDependencies": { |
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
19981
347
5
+ Addedevents@^1.0.2
+ Addedevents@1.1.1(transitive)
Updatedsimple-console@^0.1.1