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

join-includes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

join-includes - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/main.js

2

dist/join-includes.js

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

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return 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,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){return"".concat(e.type,"-").concat(e.id)}r.r(t),t.default=function(e,t){var r={};function n(e){"object"===u(e)&&"type"in e!=!1&&"id"in e!=!1&&(e.type in r==!1&&(r[e.type]=[]),r[e.type][e.id]=e)}return Array.isArray(e)?e.map(n):n(e),t.map(n),function e(t,r,n){if(Array.isArray(t))return t.map((function(t){return e(t,r,n)}));if("object"!==u(t)||"id"in t==!1||"type"in t==!1)return t;if("attributes"in t||"relationships"in t){var c=o({},t.relationships);for(var p in c)"object"===u(c[p])&&(c[p]=o({},c[p],{data:e(c[p].data,r,o({},n,i({},f(t),!0)))}));return o({},t,{relationships:c})}return f(t)in n?t:t.type in r&&t.id in r[t.type]?e(r[t.type][t.id],r,n):t}(e,r,{})}}])}));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return 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,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){return"".concat(e.type,"-").concat(e.id)}r.r(t),t.default=function(e,t){var r={};function n(e){"object"===u(e)&&"type"in e!=!1&&"id"in e!=!1&&(e.type in r==!1&&(r[e.type]={}),r[e.type][e.id]=e)}return Array.isArray(e)?e.map(n):n(e),t.map(n),function e(t,r,n){if(Array.isArray(t))return t.map((function(t){return e(t,r,n)}));if("object"!==u(t)||"id"in t==!1||"type"in t==!1)return t;if("attributes"in t||"relationships"in t){var c=o({},t.relationships);for(var p in c)"object"===u(c[p])&&(c[p]=o({},c[p],{data:e(c[p].data,r,o({},n,i({},f(t),!0)))}));return o({},t,{relationships:c})}return f(t)in n?t:t.type in r&&t.id in r[t.type]?e(r[t.type][t.id],r,n):t}(e,r,{})}}])}));
{
"name": "join-includes",
"version": "0.0.2",
"version": "0.0.3",
"description": "Function for re-treeing JSON API formatted payloads.",

@@ -33,2 +33,4 @@ "main": "dist/join-includes.js",

"@babel/core": "^7.8.6",
"@babel/plugin-proposal-export-default-from": "^7.8.3",
"@babel/preset-env": "^7.8.6",
"babel-eslint": "^10.1.0",

@@ -43,6 +45,3 @@ "babel-jest": "^25.1.0",

},
"dependencies": {
"@babel/plugin-proposal-export-default-from": "^7.8.3",
"@babel/preset-env": "^7.8.6"
}
"dependencies": {}
}

@@ -61,3 +61,3 @@ function uniqueKey(item) {

if (item.type in known === false) {
known[item.type] = []
known[item.type] = {}
}

@@ -64,0 +64,0 @@ known[item.type][item.id] = item

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