Socket
Socket
Sign inDemoInstall

redux-object

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.10 to 1.0.0

.nyc_output/83dc159f-1ad0-4244-b7e0-4733b0d6a838.json

3

CHANGELOG.md

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

### Version 1.0.0 (2nd December 2020)
Deps update
### Version 0.5.10 (17th June 2019)

@@ -2,0 +5,0 @@ Updated vulnerable deps

2

dist/bundle.min.js

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

module.exports=function(e){function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}var t={};return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="",r(r.s=0)}([function(e,r,t){e.exports=t(1)},function(e,r,t){"use strict";function n(e){return!(!e||"function"!=typeof e.hasOwnProperty||!(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))}function i(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(r)||(r=[r]),n(e)){var i=e.getIn(r.map(function(e){return"".concat(e)}));return t&&i?i.toJS():i}return r.reduce(function(e,r){return e[r]},e)}function o(e){return n(e)?e.keySeq().toArray():Object.keys(e)}function u(e,r){return r?"".concat(e).concat(r):null}function a(e,r,t,n,i){var o=n.ignoreLinks,u=r.relationships[t];if(void 0!==u.data)return Array.isArray(u.data)?u.data.map(function(r){return c(e,r.type,r.id,n,i)||r}):null===u.data?null:c(e,u.data.type,u.data.id,n,i)||u.data;if(!o&&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 c(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s={eager:!1,ignoreLinks:!1,includeType:!1},d=Object.assign({},s,n),f=d.eager,p=d.includeType;if(!i(e,r))return null;if(null===t||Array.isArray(t)){return(t||o(i(e,r))).map(function(t){return c(e,r,t,d,l)})}var y=t.toString(),v=u(r,y),b=l[v];if(b)return b;var g={},h=i(e,[r,y],!0);return h?(h.id&&(g.id=h.id),h.attributes&&(Object.keys(h.attributes).forEach(function(e){g[e]=h.attributes[e]}),Object.defineProperty(g,"resolved",{value:!0})),h.meta&&(g.meta=h.meta),h.links&&(g.links=h.links),p&&!g.type&&(g.type=r),l[v]=g,h.relationships&&Object.keys(h.relationships).forEach(function(r){f?g[r]=a(e,h,r,d,l):Object.defineProperty(g,r,{enumerable:!0,get:function(){var t="__".concat(r);if(g[t])return g[t];var n=a(e,h,r,d,l);return Object.defineProperty(g,t,{enumerable:!1,value:n}),g[t]}})}),void 0===g.id&&(g.id=y),g):null}Object.defineProperty(r,"__esModule",{value:!0}),r.default=c}]);
module.exports=(()=>{"use strict";var e={961:(e,r,t)=>{function n(e){return!(!e||"function"!=typeof e.hasOwnProperty||!(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))}function i(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(r)||(r=[r]),n(e)){var i=e.getIn(r.map((function(e){return"".concat(e)})));return t&&i?i.toJS():i}return r.reduce((function(e,r){return e[r]}),e)}function o(e){return n(e)?e.keySeq().toArray():Object.keys(e)}function a(e,r){return r?"".concat(e).concat(r):null}function u(e,r,t,n,i){var o=n.ignoreLinks,a=r.relationships[t];if(void 0!==a.data)return Array.isArray(a.data)?a.data.map((function(r){return l(e,r.type,r.id,n,i)||r})):null===a.data?null:l(e,a.data.type,a.data.id,n,i)||a.data;if(!o&&a.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 l(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d={eager:!1,ignoreLinks:!1,includeType:!1},c=Object.assign({},d,n),p=c.eager,y=c.includeType;if(!i(e,r))return null;if(null===t||Array.isArray(t)){var f=t||o(i(e,r));return f.map((function(t){return l(e,r,t,c,s)}))}var b=t.toString(),v=a(r,b),g=s[v];if(g)return g;var m={},h=i(e,[r,b],!0);return h?(h.id&&(m.id=h.id),h.attributes&&(Object.keys(h.attributes).forEach((function(e){m[e]=h.attributes[e]})),Object.defineProperty(m,"resolved",{value:!0})),h.meta&&(m.meta=h.meta),h.links&&(m.links=h.links),y&&!m.type&&(m.type=r),s[v]=m,h.relationships&&Object.keys(h.relationships).forEach((function(r){p?m[r]=u(e,h,r,c,s):Object.defineProperty(m,r,{enumerable:!0,get:function(){var t="__".concat(r);if(m[t])return m[t];var n=u(e,h,r,c,s);return Object.defineProperty(m,t,{enumerable:!1,value:n}),m[t]}})})),void 0===m.id&&(m.id=b),m):null}t.r(r),t.d(r,{default:()=>l})}},r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{}};return e[n](i,i.exports,t),i.exports}return t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(961)})();
{
"name": "redux-object",
"version": "0.5.10",
"version": "1.0.0",
"description": "Builds complex JS object from normalized redux store. Best works with json-api-normalizer",
"main": "dist/bundle.min.js",
"scripts": {
"build": "cross-env NODE_ENV=production webpack -p --output-filename bundle.min.js && cross-env NODE_ENV=production webpack",
"build": "cross-env NODE_ENV=production webpack --output-filename bundle.min.js",
"clean": "rimraf dist coverage lib",
"coverage": "cross-env NODE_ENV=production webpack && nyc _mocha --compilers js:@babel/register && NODE_ENV=production webpack -p",
"coverage": "nyc _mocha --require @babel/register",
"lint": "eslint src --ext .js",
"test": "mocha --compilers js:@babel/register"
"test": "mocha --require @babel/register"
},

@@ -36,14 +36,15 @@ "repository": {

"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint": "^7.14.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"eslint-webpack-plugin": "^2.4.1",
"immutable": "^4.0.0-rc.12",
"lodash": "^4.17.5",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"mocha": "^8.2.1",
"nyc": "^14.1.1",
"rimraf": "^2.6.2",
"webpack": "^3.12.0",
"webpack": "^5.9.0",
"webpack-cli": "^4.2.0",
"webpack-node-externals": "^1.7.2"

@@ -50,0 +51,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc