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

biff

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biff - npm Package Compare versions

Comparing version 0.1.4 to 0.1.6

13

lib/FluxComponent.js
"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": {

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