Socket
Socket
Sign inDemoInstall

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.0.1 to 0.0.2

2

dist/bundle.js

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

module.exports=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports=r(1)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){var n={},u=t[e][r.toString()];return u&&((0,i.default)(u.attributes).forEach(function(t){n[t]=u.attributes[t]}),u.relationships&&(0,i.default)(u.relationships).forEach(function(e){Object.defineProperty(n,e,{get:function(){var r="__"+e;if(n[r])return n[r];var i=u.relationships[e],a=i.id.split(",");return 1===a.length?n[r]=o(t,i.type,a[0]):n[r]=a.map(function(e){return o(t,i.type,e)}),n[r]}})})),n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var u=r(2),i=n(u)},function(t,e){t.exports=require("lodash/keys")}]);
module.exports=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports=r(1)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){var n={},i=t[e][r.toString()];return i&&((0,u.default)(i.attributes).forEach(function(t){n[t]=i.attributes[t]}),i.relationships&&(0,u.default)(i.relationships).forEach(function(e){Object.defineProperty(n,e,{get:function(){var r="__"+e;if(n[r])return n[r];var u=i.relationships[e];if(u.id){var a=u.id.split(",");1===a.length?n[r]=o(t,u.type,a[0]):n[r]=a.map(function(e){return o(t,u.type,e)})}else n[r]=[];return n[r]}})})),n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=r(2),u=n(i)},function(t,e){t.exports=require("lodash/keys")}]);
{
"name": "redux-object",
"version": "0.0.1",
"version": "0.0.2",
"description": "Builds complex JS object from normalized redux store. Best works with json-api-normalizer",

@@ -11,3 +11,3 @@ "main": "dist/bundle.js",

"lint": "eslint src --ext .js",
"test": "mocha --compilers js:babel-core/register"
"test": "mocha --compilers js:babel-core/register"
},

@@ -14,0 +14,0 @@ "repository": {

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