Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-object

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-object - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

3

CHANGELOG.md

@@ -0,1 +1,4 @@

### Version 0.5.4 (5th November 2017)
Private cache attributes are not enumerable for object returned by `build` (https://github.com/yury-dymov/redux-object/pull/31)
### Version 0.5.3 (3d November 2017)

@@ -2,0 +5,0 @@ Object properties are enumerable (https://github.com/yury-dymov/redux-object/pull/25)

3

dist/bundle.js

@@ -165,3 +165,4 @@ module.exports =

ret[field] = buildRelationship(reducer, target, relationship, options, cache);
var value = buildRelationship(reducer, target, relationship, options, cache);
Object.defineProperty(ret, field, { enumerable: false, value: value });

@@ -168,0 +169,0 @@ return ret[field];

@@ -1,1 +0,1 @@

module.exports=function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.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){"use strict";function r(e,t){return t?""+e+t:null}function n(e,t,r,n,o){var a=n.ignoreLinks,u=t.relationships[r];if("undefined"!=typeof u.data)return Array.isArray(u.data)?u.data.map(function(t){return i(e,t.type,t.id,n,o)||t}):null===u.data?null:i(e,u.data.type,u.data.id,n,o)||u.data;if(!a&&u.links)throw new Error("Remote lazy loading is not supported (see: https://github.com/yury-dymov/json-api-normalizer/issues/2). To disable this error, include option 'ignoreLinks: true' in the build function like so: build(reducer, type, id, { ignoreLinks: true })")}function i(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d={eager:!1,ignoreLinks:!1,includeType:!1},s=o({},d,u),c=s.eager,p=s.includeType;if(!e[t])return null;if(null===a||Array.isArray(a)){var f=a||Object.keys(e[t]);return f.map(function(r){return i(e,t,r,s,l)})}var y=a.toString(),v=r(t,y),g=l[v];if(g)return g;var h={},b=e[t][y];return b?(b.id&&(h.id=b.id),Object.keys(b.attributes).forEach(function(e){h[e]=b.attributes[e]}),b.meta&&(h.meta=b.meta),p&&!h.type&&(h.type=t),l[v]=h,b.relationships&&Object.keys(b.relationships).forEach(function(t){c?h[t]=n(e,b,t,s,l):Object.defineProperty(h,t,{enumerable:!0,get:function(){var r="__"+t;return h[r]?h[r]:(h[r]=n(e,b,t,s,l),h[r])}})}),"undefined"==typeof h.id&&(h.id=y),h):null}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=i}]);
module.exports=function(e){function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r,t){e.exports=t(1)},function(e,r){"use strict";function t(e,r){return r?""+e+r:null}function n(e,r,t,n,o){var a=n.ignoreLinks,u=r.relationships[t];if("undefined"!=typeof u.data)return Array.isArray(u.data)?u.data.map(function(r){return i(e,r.type,r.id,n,o)||r}):null===u.data?null:i(e,u.data.type,u.data.id,n,o)||u.data;if(!a&&u.links)throw new Error("Remote lazy loading is not supported (see: https://github.com/yury-dymov/json-api-normalizer/issues/2). To disable this error, include option 'ignoreLinks: true' in the build function like so: build(reducer, type, id, { ignoreLinks: true })")}function i(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d={eager:!1,ignoreLinks:!1,includeType:!1},s=o({},d,u),c=s.eager,f=s.includeType;if(!e[r])return null;if(null===a||Array.isArray(a)){var p=a||Object.keys(e[r]);return p.map(function(t){return i(e,r,t,s,l)})}var y=a.toString(),v=t(r,y),b=l[v];if(b)return b;var g={},h=e[r][y];return h?(h.id&&(g.id=h.id),Object.keys(h.attributes).forEach(function(e){g[e]=h.attributes[e]}),h.meta&&(g.meta=h.meta),f&&!g.type&&(g.type=r),l[v]=g,h.relationships&&Object.keys(h.relationships).forEach(function(r){c?g[r]=n(e,h,r,s,l):Object.defineProperty(g,r,{enumerable:!0,get:function(){var t="__"+r;if(g[t])return g[t];var i=n(e,h,r,s,l);return Object.defineProperty(g,t,{enumerable:!1,value:i}),g[t]}})}),"undefined"==typeof g.id&&(g.id=y),g):null}Object.defineProperty(r,"__esModule",{value:!0});var o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};r.default=i}]);
{
"name": "redux-object",
"version": "0.5.3",
"version": "0.5.4",
"description": "Builds complex JS object from normalized redux store. Best works with json-api-normalizer",

@@ -5,0 +5,0 @@ "main": "dist/bundle.min.js",

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