redux-object
Advanced tools
Comparing version 0.0.5 to 0.3.0
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r){var n=r.toString(),i={},s=e[t][n];return s?((0,u.default)(s.attributes).forEach(function(e){i[e]=s.attributes[e]}),s.relationships&&(0,u.default)(s.relationships).forEach(function(t){Object.defineProperty(i,t,{get:function(){var r="__"+t;if(i[r])return i[r];var n=s.relationships[t];if(n.id){var u=n.id.split(",");1===u.length?i[r]=o(e,n.type,u[0]):i[r]=u.map(function(t){return o(e,n.type,t)})}else{if(n.links)throw new Error("Remote lazy loading is not implemented for redux-object. Please refer https://github.com/yury-dymov/json-api-normalizer/issues/2");i[r]=[]}return i[r]}})}),(0,a.default)(i,"id")||(i.id=n),i):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=r(3),u=n(i),s=r(2),a=n(s)},function(e,t){e.exports=require("lodash/has")},function(e,t){e.exports=require("lodash/keys")}]); | ||
module.exports=function(e){function t(i){if(r[i])return r[i].exports;var n=r[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function n(e,t,r){var i=r.toString(),o={},s=e[t][i];return s?(s.id&&(o.id=s.id),(0,u.default)(s.attributes).forEach(function(e){o[e]=s.attributes[e]}),s.relationships&&(0,u.default)(s.relationships).forEach(function(t){Object.defineProperty(o,t,{get:function(){var r="__"+t;if(o[r])return o[r];var i=s.relationships[t];if(i.id){var u=i.id.split(",");1===u.length?o[r]=n(e,i.type,u[0]):o[r]=u.map(function(t){return n(e,i.type,t)})}else{if(i.links)throw new Error("Remote lazy loading is not implemented for redux-object. Please refer https://github.com/yury-dymov/json-api-normalizer/issues/2");o[r]=[]}return o[r]}})}),(0,a.default)(o,"id")||(o.id=i),o):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=r(3),u=i(o),s=r(2),a=i(s)},function(e,t){e.exports=require("lodash/has")},function(e,t){e.exports=require("lodash/keys")}]); |
{ | ||
"name": "redux-object", | ||
"version": "0.0.5", | ||
"version": "0.3.0", | ||
"description": "Builds complex JS object from normalized redux store. Best works with json-api-normalizer", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.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
6274