redux-json-api-handlers
Advanced tools
Comparing version 2.5.2 to 2.5.3
@@ -14,2 +14,6 @@ 'use strict'; | ||
var _get = require('lodash/get'); | ||
var _get2 = _interopRequireDefault(_get); | ||
var _map = require('lodash/map'); | ||
@@ -81,7 +85,8 @@ | ||
var createReducerHandlers = exports.createReducerHandlers = function createReducerHandlers(type, field, actionTypes) { | ||
var createReducerHandlers = exports.createReducerHandlers = function createReducerHandlers(type, actionTypes) { | ||
var _ref3; | ||
var handlerOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; | ||
var handlerOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
var field = (0, _get2.default)(handlerOptions, 'mapToKey'); | ||
var addKey = !field || field === type ? '' : (0, _helpers.capitalizeFirstLetter)(field); | ||
@@ -88,0 +93,0 @@ |
{ | ||
"name": "redux-json-api-handlers", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"description": "JSON-API entities and relationships handlers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
84081
1170