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

redux-falcor

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-falcor - npm Package Compare versions

Comparing version

to
3.0.0-beta3

lib/components/createStore.js

686

dist/falcorRedux.js
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define([], factory);
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReduxFalcor"] = factory();
exports["ReduxFalcor"] = factory(require("react"));
else
root["ReduxFalcor"] = factory();
})(this, function() {
root["ReduxFalcor"] = factory(root["React"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {
return /******/ (function(modules) { // webpackBootstrap

@@ -61,33 +61,69 @@ /******/ // The module cache

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _duck = __webpack_require__(1);
var _actions = __webpack_require__(1);
Object.defineProperty(exports, 'reducer', {
enumerable: true,
get: function get() {
return _duck.default;
}
});
var _middleware = __webpack_require__(2);
var _FalcorProvider = __webpack_require__(3);
var _middleware2 = _interopRequireDefault(_middleware);
Object.defineProperty(exports, 'FalcorProvider', {
enumerable: true,
get: function get() {
return _FalcorProvider.default;
}
});
var _reducer = __webpack_require__(3);
var _reduxFalcor = __webpack_require__(5);
var _reducer2 = _interopRequireDefault(_reducer);
Object.defineProperty(exports, 'reduxFalcor', {
enumerable: true,
get: function get() {
return _reduxFalcor.default;
}
});
exports.retrievePath = _actions.retrievePath;
exports.retrievePaths = _actions.retrievePaths;
exports.retrieveValue = _actions.retrieveValue;
exports.setPath = _actions.setPath;
exports.setPaths = _actions.setPaths;
exports.callPath = _actions.callPath;
exports.clear = _actions.clear;
exports.createFalcorMiddleware = _middleware2['default'];
exports.falcorReducer = _reducer2['default'];
exports.RETRIEVE_VALUE = _actions.RETRIEVE_VALUE;
exports.RETRIEVE_PATH = _actions.RETRIEVE_PATH;
exports.RETRIEVE_PATHS = _actions.RETRIEVE_PATHS;
exports.SET_PATH = _actions.SET_PATH;
exports.SET_PATHS = _actions.SET_PATHS;
exports.CALL_PATH = _actions.CALL_PATH;
exports.CLEAR = _actions.CLEAR;
/***/ },
/* 1 */
/***/ function(module, exports) {
'use strict';
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; };
exports.__esModule = true;
exports.default = reduxFalcorReducer;
exports.update = update;
var UPDATE = 'redux-falcor/UPDATE';
function reduxFalcorReducer() {
var state = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
var action = arguments[1];
switch (action.type) {
case UPDATE:
return _extends({}, action.payload);
default:
return state;
}
}
function update(falcorCache) {
return {
type: UPDATE,
payload: falcorCache
};
}
/***/ },
/* 1 */
/* 2 */
/***/ function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
/***/ },
/* 3 */
/***/ function(module, exports, __webpack_require__) {

@@ -98,102 +134,97 @@

exports.__esModule = true;
exports.retrievePath = retrievePath;
exports.retrievePaths = retrievePaths;
exports.retrieveValue = retrieveValue;
exports.setPath = setPath;
exports.setPaths = setPaths;
exports.callPath = callPath;
exports.clear = clear;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _react = __webpack_require__(2);
var _falcorJsonGraph = __webpack_require__(5);
var _falcorExpandCache = __webpack_require__(6);
var _tinyUuid = __webpack_require__(6);
var _falcorExpandCache2 = _interopRequireDefault(_falcorExpandCache);
var _tinyUuid2 = _interopRequireDefault(_tinyUuid);
var _createStore = __webpack_require__(4);
var RETRIEVE_PATH = 'redux-falcor/falcor/RETRIEVE_PATH';
exports.RETRIEVE_PATH = RETRIEVE_PATH;
var RETRIEVE_PATHS = 'redux-falcor/falcor/RETRIEVE_PATHS';
exports.RETRIEVE_PATHS = RETRIEVE_PATHS;
var RETRIEVE_VALUE = 'redux-falcor/falcor/RETRIEVE_VALUE';
exports.RETRIEVE_VALUE = RETRIEVE_VALUE;
var SET_PATH = 'redux-falcor/falcor/SET_PATH';
exports.SET_PATH = SET_PATH;
var SET_PATHS = 'redux-falcor/falcor/SET_PATHS';
exports.SET_PATHS = SET_PATHS;
var CALL_PATH = 'redux-falcor/falcor/CALL_PATH';
exports.CALL_PATH = CALL_PATH;
var CLEAR = 'redux-falcor/falcor/CLEAR';
var _createStore2 = _interopRequireDefault(_createStore);
exports.CLEAR = CLEAR;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function retrievePath(path) {
return {
_id: _tinyUuid2['default'](),
type: RETRIEVE_PATH,
falcorPath: path,
path: path
};
}
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function retrievePaths() {
var args = Array.prototype.slice.call(arguments);
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
return {
_id: _tinyUuid2['default'](),
type: RETRIEVE_PATHS,
falcorPath: args,
paths: args
};
}
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function retrieveValue(path) {
return {
_id: _tinyUuid2['default'](),
type: RETRIEVE_VALUE,
falcorPath: path,
path: path
function debounce(func, wait) {
var timeout = undefined;
return function doDebounce() {
var context = this;
var args = arguments;
var later = function later() {
timeout = null;
func.apply(context, args);
};
clearTimeout(timeout);
timeout = setTimeout(later, wait);
};
}
function setPath(path, value) {
return {
_id: _tinyUuid2['default'](),
type: SET_PATH,
falcorPath: _falcorJsonGraph.pathValue(path, value),
path: path,
value: value
function attachOnChange(falcor, store) {
// TODO: Throttle requests here
var handler = debounce(function () {
store.trigger((0, _falcorExpandCache2.default)(falcor.getCache()));
}, 50);
var root = falcor._root;
if (!root.onChange) {
root.onChange = handler;
return;
}
var oldOnChange = root.onChange;
root.onChange = function () {
oldOnChange();
handler();
};
}
function setPaths() {
var args = Array.prototype.slice.call(arguments);
var FalcorProvider = (function (_Component) {
_inherits(FalcorProvider, _Component);
return {
_id: _tinyUuid2['default'](),
type: SET_PATHS,
falcorPath: args,
paths: args
function FalcorProvider(props, context) {
_classCallCheck(this, FalcorProvider);
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
_this.falcor = props.falcor;
_this.falcorStore = (0, _createStore2.default)(props.store);
attachOnChange(props.falcor, _this.falcorStore);
return _this;
}
FalcorProvider.prototype.getChildContext = function getChildContext() {
return {
falcor: this.falcor,
falcorStore: this.falcorStore
};
};
}
function callPath(path, args, refPaths, thisPaths) {
return {
_id: _tinyUuid2['default'](),
type: CALL_PATH,
falcorPath: path,
path: path,
args: args,
refPaths: refPaths,
thisPaths: thisPaths
FalcorProvider.prototype.render = function render() {
var children = this.props.children;
return _react.Children.only(children);
};
}
function clear() {
return { type: CLEAR };
}
return FalcorProvider;
})(_react.Component);
FalcorProvider.propTypes = {
falcor: _react.PropTypes.object.isRequired,
store: _react.PropTypes.object.isRequired,
children: _react.PropTypes.element.isRequired
};
FalcorProvider.childContextTypes = {
falcor: _react.PropTypes.object.isRequired,
falcorStore: _react.PropTypes.object.isRequired
};
exports.default = FalcorProvider;
/***/ },
/* 2 */
/* 4 */
/***/ function(module, exports, __webpack_require__) {

@@ -204,171 +235,150 @@

exports.__esModule = true;
exports.default = createStore;
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; };
var _duck = __webpack_require__(1);
exports['default'] = createFalcorMiddleware;
function createStore(reduxStore) {
var listeners = [];
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function subscribe(listener) {
listeners.push(listener);
var isSubscribed = true;
var _actions = __webpack_require__(1);
return function unsubscribe() {
if (!isSubscribed) return;
function UnrecognizedActionTypeException(message) {
this.message = message;
this.name = 'UnrecognizedActionTypeException';
isSubscribed = false;
listeners.splice(listeners.indexOf(listener), 1);
};
}
function trigger(cache) {
// Update the redux with the changes
reduxStore.dispatch((0, _duck.update)(cache));
// Trigger listeners to refetch possible invalidated data
listeners.slice().forEach(function (listener) {
return listener();
});
return cache;
}
return {
subscribe: subscribe,
trigger: trigger
};
}
function createFalcorMiddleware(falcor) {
return function falcorMiddleware() {
return function (next) {
return function (action) {
var falcorPath = action.falcorPath;
var type = action.type;
/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {
var rest = _objectWithoutProperties(action, ['falcorPath', 'type']);
'use strict';
if (!falcorPath) {
return next(action);
}
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; };
var SUCCESS = type;
var REQUEST = type + '_REQUEST';
var FAILURE = type + '_FAILURE';
exports.__esModule = true;
exports.default = reduxFalcor;
next(_extends({}, rest, { type: REQUEST }));
var _react = __webpack_require__(2);
var promise = undefined;
var _react2 = _interopRequireDefault(_react);
switch (type) {
case _actions.RETRIEVE_PATH:
promise = falcor.get(falcorPath);
break;
case _actions.RETRIEVE_PATHS:
promise = falcor.get.apply(falcor, falcorPath);
break;
case _actions.RETRIEVE_VALUE:
promise = falcor.getValue(falcorPath);
break;
case _actions.SET_PATH:
promise = falcor.set(falcorPath);
break;
case _actions.SET_PATHS:
promise = falcor.set.apply(falcor, falcorPath);
break;
case _actions.CALL_PATH:
var args = rest.args;
var refPaths = rest.refPaths,
thisPaths = rest.thisPaths;
var _invariant = __webpack_require__(8);
if (!Array.isArray(args)) {
args = [args];
}
var _invariant2 = _interopRequireDefault(_invariant);
if (thisPaths) {
promise = falcor.call(falcorPath, args, refPaths, thisPaths);
} else if (refPaths) {
promise = falcor.call(falcorPath, args, refPaths);
} else {
promise = falcor.call(falcorPath, args);
}
var _hoistNonReactStatics = __webpack_require__(7);
break;
default:
throw new UnrecognizedActionTypeException('Do not know the action, ' + type);
}
var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);
return promise.then(function (res) {
next(_extends({}, rest, { cache: falcor.getCache(), type: SUCCESS }));
return res;
})['catch'](function (error) {
next(_extends({}, rest, { error: error, type: FAILURE }));
return error;
});
};
};
};
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = exports['default'];
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/***/ },
/* 3 */
/***/ function(module, exports, __webpack_require__) {
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
'use strict';
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
exports.__esModule = true;
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}
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; };
function noop() {}
exports['default'] = falcorReducer;
function reduxFalcor(WrappedComponent) {
var ReduxFalcor = (function (_Component) {
_inherits(ReduxFalcor, _Component);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function ReduxFalcor(props, context) {
_classCallCheck(this, ReduxFalcor);
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
var _falcorExpandCache = __webpack_require__(4);
_this.falcor = props.falcor || context.falcor;
_this.falcorStore = props.falcorStore || context.falcorStore;
var _falcorExpandCache2 = _interopRequireDefault(_falcorExpandCache);
(0, _invariant2.default)(_this.falcorStore, 'Could not find "falcorStore" in either the context or ' + ('props of "' + _this.constructor.displayName + '". ') + 'Either wrap the root component in a <FalcorProvider>, ' + ('or explicitly pass "falcorStore" as a prop to "' + _this.constructor.displayName + '".'));
return _this;
}
var _actions = __webpack_require__(1);
ReduxFalcor.prototype.componentDidMount = function componentDidMount() {
this.trySubscribe();
};
function endsWith(subjectString, searchString) {
var position = subjectString.length;
position -= searchString.length;
var lastIndex = subjectString.indexOf(searchString, position);
return lastIndex !== -1 && lastIndex === position;
}
ReduxFalcor.prototype.componentWillUnmount = function componentWillUnmount() {
this.tryUnsubscribe();
};
function omit(object, key) {
var _old = object[key];
ReduxFalcor.prototype.trySubscribe = function trySubscribe() {
if (!this.unsubscribe) {
this.unsubscribe = this.falcorStore.subscribe(this.handleChange.bind(this));
this.handleChange();
}
};
var rest = _objectWithoutProperties(object, [key]);
ReduxFalcor.prototype.handleChange = function handleChange() {
var wrappedInstance = this.refs.wrappedInstance;
return rest;
}
if (!this.unsubscribe) return;
if (!(typeof wrappedInstance.fetchFalcorDeps === 'function')) return;
var initialState = { loading: false, _requests: {} };
wrappedInstance.fetchFalcorDeps().then(noop);
};
function falcorReducer(state, action) {
if (state === undefined) state = initialState;
var _state$loading = state.loading;
var loading = _state$loading === undefined ? false : _state$loading;
var _state$_requests = state._requests;
ReduxFalcor.prototype.tryUnsubscribe = function tryUnsubscribe() {
if (this.unsubscribe) {
this.unsubscribe();
this.unsubscribe = null;
}
};
var _requests = _state$_requests === undefined ? {} : _state$_requests;
ReduxFalcor.prototype.render = function render() {
return _react2.default.createElement(WrappedComponent, _extends({}, this.props, {
falcor: this.falcor,
ref: 'wrappedInstance'
}));
};
if (endsWith(action.type, '_REQUEST')) {
var _extends2;
return ReduxFalcor;
})(_react.Component);
return _extends({}, state, { loading: true, _requests: _extends({}, _requests, (_extends2 = {}, _extends2[action._id] = true, _extends2)) });
}
ReduxFalcor.displayName = 'ReduxFalcor(' + getDisplayName(WrappedComponent) + ')';
ReduxFalcor.WrappedComponent = WrappedComponent;
if (endsWith(action.type, '_FAILURE')) {
var requests = omit(_requests, action._id);
return _extends({}, state, { loading: Object.keys(requests).length !== 0, _requests: requests });
}
ReduxFalcor.propTypes = {
falcorStore: _react.PropTypes.object,
falcor: _react.PropTypes.object
};
switch (action.type) {
case _actions.RETRIEVE_VALUE:
case _actions.RETRIEVE_PATH:
case _actions.RETRIEVE_PATHS:
case _actions.SET_PATH:
case _actions.SET_PATHS:
case _actions.CALL_PATH:
var requests = omit(_requests, action._id);
var newState = { loading: Object.keys(requests).length !== 0, _requests: requests };
if (!action.cache) return _extends({}, state, newState);
return _extends({}, newState, _falcorExpandCache2['default'](action.cache));
ReduxFalcor.contextTypes = {
falcorStore: _react.PropTypes.object.isRequired,
falcor: _react.PropTypes.object.isRequired
};
case _actions.CLEAR:
return { loading: loading, _requests: _requests };
default:
return state;
}
return (0, _hoistNonReactStatics2.default)(ReduxFalcor, WrappedComponent);
}
module.exports = exports['default'];
/***/ },
/* 4 */
/* 6 */
/***/ function(module, exports) {

@@ -427,50 +437,198 @@

/***/ },
/* 5 */
/* 7 */
/***/ function(module, exports) {
function sentinel(type, value, props) {
var copy = Object.create(null);
if (props != null) {
for(var key in props) {
copy[key] = props[key];
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
var REACT_STATICS = {
childContextTypes: true,
contextTypes: true,
defaultProps: true,
displayName: true,
getDefaultProps: true,
mixins: true,
propTypes: true,
type: true
};
var KNOWN_STATICS = {
name: true,
length: true,
prototype: true,
caller: true,
arguments: true,
arity: true
};
module.exports = function hoistNonReactStatics(targetComponent, sourceComponent) {
var keys = Object.getOwnPropertyNames(sourceComponent);
for (var i=0; i<keys.length; ++i) {
if (!REACT_STATICS[keys[i]] && !KNOWN_STATICS[keys[i]]) {
targetComponent[keys[i]] = sourceComponent[keys[i]];
}
}
copy["$type"] = type;
copy.value = value;
return copy;
return targetComponent;
};
/***/ },
/* 8 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
/**
* Use invariant() to assert state which your program assumes to be true.
*
* Provide sprintf-style format (only %s is supported) and arguments
* to provide information about what broke and what you were
* expecting.
*
* The invariant message will be stripped in production, but the invariant
* will remain to ensure logic does not differ in production.
*/
var invariant = function(condition, format, a, b, c, d, e, f) {
if (process.env.NODE_ENV !== 'production') {
if (format === undefined) {
throw new Error('invariant requires an error message argument');
}
else {
return { $type: type, value: value };
}
if (!condition) {
var error;
if (format === undefined) {
error = new Error(
'Minified exception occurred; use the non-minified dev environment ' +
'for the full error message and additional helpful warnings.'
);
} else {
var args = [a, b, c, d, e, f];
var argIndex = 0;
error = new Error(
format.replace(/%s/g, function() { return args[argIndex++]; })
);
error.name = 'Invariant Violation';
}
}
module.exports = {
ref: function ref(path, props) {
return sentinel("ref", path, props);
},
atom: function atom(value, props) {
return sentinel("atom", value, props);
},
undefined: function() {
return sentinel("atom");
},
error: function error(errorValue, props) {
return sentinel("error", errorValue, props);
},
pathValue: function pathValue(path, value) {
return { path: path, value: value };
},
pathInvalidation: function pathInvalidation(path) {
return { path: path, invalidated: true };
}
error.framesToPop = 1; // we don't care about invariant's own frame
throw error;
}
};
module.exports = invariant;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
/***/ },
/* 6 */
/* 9 */
/***/ function(module, exports) {
module.exports = function(a,b){for(b=a='';a++<36;b+=a*51&52?(a^15?8^Math.random()*(a^20?16:4):4).toString(16):'-');return b};
// shim for using process in browser
var process = module.exports = {};
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;
function cleanUpNextTick() {
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
} else {
queueIndex = -1;
}
if (queue.length) {
drainQueue();
}
}
function drainQueue() {
if (draining) {
return;
}
var timeout = setTimeout(cleanUpNextTick);
draining = true;
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
while (++queueIndex < len) {
if (currentQueue) {
currentQueue[queueIndex].run();
}
}
queueIndex = -1;
len = queue.length;
}
currentQueue = null;
draining = false;
clearTimeout(timeout);
}
process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
setTimeout(drainQueue, 0);
}
};
// v8 likes predictible objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
}
Item.prototype.run = function () {
this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {}
process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.binding = function (name) {
throw new Error('process.binding is not supported');
};
process.cwd = function () { return '/' };
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };
/***/ }

@@ -477,0 +635,0 @@ /******/ ])

@@ -5,29 +5,27 @@ 'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _duck = require('./components/duck');
var _actions = require('./actions');
Object.defineProperty(exports, 'reducer', {
enumerable: true,
get: function get() {
return _duck.default;
}
});
var _middleware = require('./middleware');
var _FalcorProvider = require('./components/FalcorProvider');
var _middleware2 = _interopRequireDefault(_middleware);
Object.defineProperty(exports, 'FalcorProvider', {
enumerable: true,
get: function get() {
return _FalcorProvider.default;
}
});
var _reducer = require('./reducer');
var _reduxFalcor = require('./components/reduxFalcor');
var _reducer2 = _interopRequireDefault(_reducer);
exports.retrievePath = _actions.retrievePath;
exports.retrievePaths = _actions.retrievePaths;
exports.retrieveValue = _actions.retrieveValue;
exports.setPath = _actions.setPath;
exports.setPaths = _actions.setPaths;
exports.callPath = _actions.callPath;
exports.clear = _actions.clear;
exports.createFalcorMiddleware = _middleware2['default'];
exports.falcorReducer = _reducer2['default'];
exports.RETRIEVE_VALUE = _actions.RETRIEVE_VALUE;
exports.RETRIEVE_PATH = _actions.RETRIEVE_PATH;
exports.RETRIEVE_PATHS = _actions.RETRIEVE_PATHS;
exports.SET_PATH = _actions.SET_PATH;
exports.SET_PATHS = _actions.SET_PATHS;
exports.CALL_PATH = _actions.CALL_PATH;
exports.CLEAR = _actions.CLEAR;
Object.defineProperty(exports, 'reduxFalcor', {
enumerable: true,
get: function get() {
return _reduxFalcor.default;
}
});
{
"name": "redux-falcor",
"version": "3.0.0-beta2",
"version": "3.0.0-beta3",
"description": "A helper library for integratig Redux & Falcor",

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

"scripts": {
"clean": "$(npm bin)/rimraf lib dist",
"lint": "$(npm bin)/eslint src test",
"test": "$(npm bin)/mocha --compilers js:babel/register --recursive",
"clean": "rimraf lib dist",
"lint": "eslint src test",
"test": "mocha --compilers js:babel/register --recursive",
"test:watch": "npm test -- --watch",

@@ -40,15 +40,23 @@ "check": "npm run lint && npm run test",

"falcor-json-graph": "^2.0.0",
"hoist-non-react-statics": "^1.0.3",
"invariant": "^2.2.0",
"tiny-uuid": "^1.0.0"
},
"peerDependencies": {
"falcor": "^0.1.13"
"falcor": "^0.1.13",
"react": "^0.14.0",
"redux": "^2.0.0 || ^3.0.0"
},
"devDependencies": {
"babel": "^5.8.23",
"babel-core": "^5.8.25",
"babel-eslint": "^4.1.3",
"babel-loader": "^5.3.2",
"babel-cli": "^6.3.17",
"babel-core": "^6.3.17",
"babel-eslint": "^4.1.6",
"babel-loader": "^6.2.0",
"babel-preset-es2015-loose": "^6.1.3",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"deep-equal": "^1.0.1",
"eslint": "^1.6.0",
"eslint-config-airbnb": "^0.1.0",
"eslint": "^1.10.3",
"eslint-config-airbnb": "^2.1.1",
"eslint-plugin-react": "^3.11.3",
"expect": "^1.12.1",

@@ -58,2 +66,3 @@ "falcor": "^0.1.13",

"mocha": "^2.3.3",
"react": "^0.14.3",
"rimraf": "^2.4.3",

@@ -60,0 +69,0 @@ "webpack": "^1.12.2"

@@ -1,37 +0,3 @@

import {
retrievePath,
retrievePaths,
retrieveValue,
setPath,
setPaths,
callPath,
clear,
RETRIEVE_VALUE,
RETRIEVE_PATH,
RETRIEVE_PATHS,
SET_PATH,
SET_PATHS,
CALL_PATH,
CLEAR,
} from './actions';
import createFalcorMiddleware from './middleware';
import falcorReducer from './reducer';
export {
retrievePath,
retrievePaths,
retrieveValue,
setPath,
setPaths,
callPath,
clear,
createFalcorMiddleware,
falcorReducer,
RETRIEVE_VALUE,
RETRIEVE_PATH,
RETRIEVE_PATHS,
SET_PATH,
SET_PATHS,
CALL_PATH,
CLEAR,
};
export { default as reducer } from './components/duck';
export { default as FalcorProvider } from './components/FalcorProvider';
export { default as reduxFalcor } from './components/reduxFalcor';

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

Sorry, the diff of this file is not supported yet