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 2.1.0 to 2.2.0

32

dist/falcorRedux.js

@@ -77,2 +77,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

exports.setPath = _actions.setPath;
exports.setPaths = _actions.setPaths;
exports.callPath = _actions.callPath;

@@ -85,2 +86,3 @@ exports.createFalcorMiddleware = _middleware2['default'];

exports.SET_PATH = _actions.SET_PATH;
exports.SET_PATHS = _actions.SET_PATHS;
exports.CALL_PATH = _actions.CALL_PATH;

@@ -99,2 +101,3 @@

exports.setPath = setPath;
exports.setPaths = setPaths;
exports.callPath = callPath;

@@ -112,2 +115,4 @@

exports.SET_PATH = SET_PATH;
var SET_PATHS = 'redux-falcor/faclor/SET_PATHS';
exports.SET_PATHS = SET_PATHS;
var CALL_PATH = 'redux-falcor/faclor/CALL_PATH';

@@ -144,14 +149,5 @@

function setPath(path, value) {
var falcorPath = undefined;
if (!Array.isArray(path) && typeof path === 'object') {
// path is a JSONEnvelope
falcorPath = path;
} else {
falcorPath = _falcorJsonGraph.pathValue(path, value);
}
return {
type: SET_PATH,
falcorPath: falcorPath,
falcorPath: _falcorJsonGraph.pathValue(path, value),
path: path,

@@ -162,2 +158,12 @@ value: value

function setPaths() {
var args = Array.prototype.slice.call(arguments);
return {
type: SET_PATHS,
falcorPath: args,
paths: args
};
}
function callPath(path, args, refPaths, thisPaths) {

@@ -229,2 +235,5 @@ return {

break;
case _actions.SET_PATHS:
promise = falcor.set.apply(falcor, falcorPath);
break;
case _actions.CALL_PATH:

@@ -296,2 +305,3 @@ var args = rest.args;

case _actions.SET_PATH + '_REQUEST':
case _actions.SET_PATHS + '_REQUEST':
case _actions.CALL_PATH + '_REQUEST':

@@ -306,2 +316,3 @@ return _extends({}, state, { loading: true });

case _actions.SET_PATH:
case _actions.SET_PATHS:
case _actions.CALL_PATH:

@@ -316,2 +327,3 @@ var newState = _extends({}, state, { loading: false });

case _actions.SET_PATH + '_FAILURE':
case _actions.SET_PATHS + '_FAILURE':
case _actions.CALL_PATH + '_FAILURE':

@@ -318,0 +330,0 @@ return _extends({}, state, { loading: false });

@@ -8,2 +8,3 @@ 'use strict';

exports.setPath = setPath;
exports.setPaths = setPaths;
exports.callPath = callPath;

@@ -21,2 +22,4 @@

exports.SET_PATH = SET_PATH;
var SET_PATHS = 'redux-falcor/faclor/SET_PATHS';
exports.SET_PATHS = SET_PATHS;
var CALL_PATH = 'redux-falcor/faclor/CALL_PATH';

@@ -53,14 +56,5 @@

function setPath(path, value) {
var falcorPath = undefined;
if (!Array.isArray(path) && typeof path === 'object') {
// path is a JSONEnvelope
falcorPath = path;
} else {
falcorPath = _falcorJsonGraph.pathValue(path, value);
}
return {
type: SET_PATH,
falcorPath: falcorPath,
falcorPath: _falcorJsonGraph.pathValue(path, value),
path: path,

@@ -71,2 +65,12 @@ value: value

function setPaths() {
var args = Array.prototype.slice.call(arguments);
return {
type: SET_PATHS,
falcorPath: args,
paths: args
};
}
function callPath(path, args, refPaths, thisPaths) {

@@ -73,0 +77,0 @@ return {

@@ -21,2 +21,3 @@ 'use strict';

exports.setPath = _actions.setPath;
exports.setPaths = _actions.setPaths;
exports.callPath = _actions.callPath;

@@ -29,2 +30,3 @@ exports.createFalcorMiddleware = _middleware2['default'];

exports.SET_PATH = _actions.SET_PATH;
exports.SET_PATHS = _actions.SET_PATHS;
exports.CALL_PATH = _actions.CALL_PATH;

@@ -52,2 +52,5 @@ 'use strict';

break;
case _actions.SET_PATHS:
promise = falcor.set.apply(falcor, falcorPath);
break;
case _actions.CALL_PATH:

@@ -54,0 +57,0 @@ var args = rest.args;

@@ -27,2 +27,3 @@ 'use strict';

case _actions.SET_PATH + '_REQUEST':
case _actions.SET_PATHS + '_REQUEST':
case _actions.CALL_PATH + '_REQUEST':

@@ -37,2 +38,3 @@ return _extends({}, state, { loading: true });

case _actions.SET_PATH:
case _actions.SET_PATHS:
case _actions.CALL_PATH:

@@ -47,2 +49,3 @@ var newState = _extends({}, state, { loading: false });

case _actions.SET_PATH + '_FAILURE':
case _actions.SET_PATHS + '_FAILURE':
case _actions.CALL_PATH + '_FAILURE':

@@ -49,0 +52,0 @@ return _extends({}, state, { loading: false });

{
"name": "redux-falcor",
"version": "2.1.0",
"version": "2.2.0",
"description": "A helper library for integratig Redux & Falcor",

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

@@ -7,2 +7,3 @@ import { pathValue } from 'falcor-json-graph';

export const SET_PATH = 'redux-falcor/faclor/SET_PATH';
export const SET_PATHS = 'redux-falcor/faclor/SET_PATHS';
export const CALL_PATH = 'redux-falcor/faclor/CALL_PATH';

@@ -37,14 +38,5 @@

export function setPath(path, value) {
let falcorPath;
if (!Array.isArray(path) && typeof path === 'object') {
// path is a JSONEnvelope
falcorPath = path;
} else {
falcorPath = pathValue(path, value);
}
return {
type: SET_PATH,
falcorPath,
falcorPath: pathValue(path, value),
path,

@@ -55,2 +47,12 @@ value,

export function setPaths() {
const args = Array.prototype.slice.call(arguments);
return {
type: SET_PATHS,
falcorPath: args,
paths: args,
};
}
export function callPath(path, args, refPaths, thisPaths) {

@@ -57,0 +59,0 @@ return {

@@ -6,2 +6,3 @@ import {

setPath,
setPaths,
callPath,

@@ -12,2 +13,3 @@ RETRIEVE_VALUE,

SET_PATH,
SET_PATHS,
CALL_PATH,

@@ -23,2 +25,3 @@ } from './actions';

setPath,
setPaths,
callPath,

@@ -31,3 +34,4 @@ createFalcorMiddleware,

SET_PATH,
SET_PATHS,
CALL_PATH,
};

@@ -5,2 +5,3 @@ import {

SET_PATH,
SET_PATHS,
RETRIEVE_PATHS,

@@ -45,2 +46,5 @@ CALL_PATH,

break;
case SET_PATHS:
promise = falcor.set.apply(falcor, falcorPath);
break;
case CALL_PATH:

@@ -47,0 +51,0 @@ let { args } = rest;

import merge from 'deepmerge';
import { RETRIEVE_VALUE, RETRIEVE_PATH, RETRIEVE_PATHS, SET_PATH, CALL_PATH } from './actions';
import {
RETRIEVE_VALUE,
RETRIEVE_PATH,
RETRIEVE_PATHS,
SET_PATH,
SET_PATHS,
CALL_PATH,
} from './actions';

@@ -12,2 +19,3 @@ const initialState = {loading: false};

case (SET_PATH + '_REQUEST'):
case (SET_PATHS + '_REQUEST'):
case (CALL_PATH + '_REQUEST'):

@@ -22,2 +30,3 @@ return {...state, loading: true };

case SET_PATH:
case SET_PATHS:
case CALL_PATH:

@@ -32,2 +41,3 @@ const newState = {...state, loading: false};

case (SET_PATH + '_FAILURE'):
case (SET_PATHS + '_FAILURE'):
case (CALL_PATH + '_FAILURE'):

@@ -34,0 +44,0 @@ return {...state, loading: false };

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

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