rest-hooks
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -7,2 +7,3 @@ import "core-js/modules/es6.array.for-each"; | ||
import "core-js/modules/es6.object.define-property"; | ||
import _merge from "lodash/merge"; | ||
@@ -19,3 +20,3 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
return { | ||
entities: _objectSpread({}, state.entities, normalized.entities), | ||
entities: _merge(_objectSpread({}, state.entities), normalized.entities), | ||
results: _objectSpread({}, state.results, _defineProperty({}, action.meta.url, normalized.result)) | ||
@@ -30,2 +31,2 @@ }; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdGF0ZS9yZWR1Y2VyLnRzIl0sIm5hbWVzIjpbIm5vcm1hbGl6ZSIsInJlZHVjZXIiLCJzdGF0ZSIsImFjdGlvbiIsInR5cGUiLCJub3JtYWxpemVkIiwicGF5bG9hZCIsIm1ldGEiLCJzY2hlbWEiLCJlbnRpdGllcyIsInJlc3VsdHMiLCJ1cmwiLCJyZXN1bHQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUEsU0FBU0EsU0FBVCxRQUEwQixXQUExQjtBQU1BLGVBQWUsU0FBU0MsT0FBVCxDQUNiQyxLQURhLEVBRWJDLE1BRmEsRUFHYjtBQUNBLFVBQVFBLE1BQU0sQ0FBQ0MsSUFBZjtBQUNFLFNBQUssU0FBTDtBQUNFLFVBQU1DLFVBQVUsR0FBR0wsU0FBUyxDQUFDRyxNQUFNLENBQUNHLE9BQVIsRUFBaUJILE1BQU0sQ0FBQ0ksS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ICAgICAgICAgW2FjdGlvbi5tZXRhLnVybF06IG5vcm1hbGl6ZWQucmVzdWx0LFxuICAgICAgICB9LFxuICAgICAgfTtcbiAgICBkZWZhdWx0OlxuICAgICAgLy8gQSByZWR1Y2VyIG11c3QgYWx3YXlzIHJldHVybiBhIHZhbGlkIHN0YXRlLlxuICAgICAgLy8gQWx0ZXJuYXRpdmVseSB5b3UgY2FuIHRocm93IGFuIGVycm9yIGlmIGFuIGludmFsaWQgYWN0aW9uIGlzIGRpc3BhdGNoZWQuXG4gICAgICByZXR1cm4gc3RhdGU7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "rest-hooks", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Easy react hooks for REST apis", | ||
@@ -62,2 +62,3 @@ "sideEffects": false, | ||
"@types/jest": "^23.3.13", | ||
"@types/lodash": "^4.14.120", | ||
"@types/nock": "^9.3.0", | ||
@@ -89,2 +90,3 @@ "babel-core": "^7.0.0-bridge.0", | ||
"flux-standard-action": "^2.0.3", | ||
"lodash": "^4.17.11", | ||
"normalizr": "^3.3.0", | ||
@@ -91,0 +93,0 @@ "qs": "^6.6.0", |
43649
401
8
27
+ Addedlodash@^4.17.11
+ Addedlodash@4.17.21(transitive)