join-includes
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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 |
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
12910
0
11
12
242
- Removed@babel/preset-env@^7.8.6
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.2(transitive)
- Removed@babel/core@7.26.0(transitive)
- Removed@babel/generator@7.26.2(transitive)
- Removed@babel/helper-annotate-as-pure@7.25.9(transitive)
- Removed@babel/helper-builder-binary-assignment-operator-visitor@7.25.9(transitive)
- Removed@babel/helper-compilation-targets@7.25.9(transitive)
- Removed@babel/helper-create-class-features-plugin@7.25.9(transitive)
- Removed@babel/helper-create-regexp-features-plugin@7.25.9(transitive)
- Removed@babel/helper-define-polyfill-provider@0.6.3(transitive)
- Removed@babel/helper-member-expression-to-functions@7.25.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-optimise-call-expression@7.25.9(transitive)
- Removed@babel/helper-plugin-utils@7.25.9(transitive)
- Removed@babel/helper-remap-async-to-generator@7.25.9(transitive)
- Removed@babel/helper-replace-supers@7.25.9(transitive)
- Removed@babel/helper-simple-access@7.25.9(transitive)
- Removed@babel/helper-skip-transparent-expression-wrappers@7.25.9(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helper-wrap-function@7.25.9(transitive)
- Removed@babel/helpers@7.26.0(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.25.9(transitive)
- Removed@babel/plugin-bugfix-safari-class-field-initializer-scope@7.25.9(transitive)
- Removed@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.25.9(transitive)
- Removed@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.25.9(transitive)
- Removed@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.25.9(transitive)
- Removed@babel/plugin-proposal-export-default-from@7.25.9(transitive)
- Removed@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(transitive)
- Removed@babel/plugin-syntax-import-assertions@7.26.0(transitive)
- Removed@babel/plugin-syntax-import-attributes@7.26.0(transitive)
- Removed@babel/plugin-syntax-unicode-sets-regex@7.18.6(transitive)
- Removed@babel/plugin-transform-arrow-functions@7.25.9(transitive)
- Removed@babel/plugin-transform-async-generator-functions@7.25.9(transitive)
- Removed@babel/plugin-transform-async-to-generator@7.25.9(transitive)
- Removed@babel/plugin-transform-block-scoped-functions@7.25.9(transitive)
- Removed@babel/plugin-transform-block-scoping@7.25.9(transitive)
- Removed@babel/plugin-transform-class-properties@7.25.9(transitive)
- Removed@babel/plugin-transform-class-static-block@7.26.0(transitive)
- Removed@babel/plugin-transform-classes@7.25.9(transitive)
- Removed@babel/plugin-transform-computed-properties@7.25.9(transitive)
- Removed@babel/plugin-transform-destructuring@7.25.9(transitive)
- Removed@babel/plugin-transform-dotall-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-duplicate-keys@7.25.9(transitive)
- Removed@babel/plugin-transform-duplicate-named-capturing-groups-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-dynamic-import@7.25.9(transitive)
- Removed@babel/plugin-transform-exponentiation-operator@7.25.9(transitive)
- Removed@babel/plugin-transform-export-namespace-from@7.25.9(transitive)
- Removed@babel/plugin-transform-for-of@7.25.9(transitive)
- Removed@babel/plugin-transform-function-name@7.25.9(transitive)
- Removed@babel/plugin-transform-json-strings@7.25.9(transitive)
- Removed@babel/plugin-transform-literals@7.25.9(transitive)
- Removed@babel/plugin-transform-logical-assignment-operators@7.25.9(transitive)
- Removed@babel/plugin-transform-member-expression-literals@7.25.9(transitive)
- Removed@babel/plugin-transform-modules-amd@7.25.9(transitive)
- Removed@babel/plugin-transform-modules-commonjs@7.25.9(transitive)
- Removed@babel/plugin-transform-modules-systemjs@7.25.9(transitive)
- Removed@babel/plugin-transform-modules-umd@7.25.9(transitive)
- Removed@babel/plugin-transform-named-capturing-groups-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-new-target@7.25.9(transitive)
- Removed@babel/plugin-transform-nullish-coalescing-operator@7.25.9(transitive)
- Removed@babel/plugin-transform-numeric-separator@7.25.9(transitive)
- Removed@babel/plugin-transform-object-rest-spread@7.25.9(transitive)
- Removed@babel/plugin-transform-object-super@7.25.9(transitive)
- Removed@babel/plugin-transform-optional-catch-binding@7.25.9(transitive)
- Removed@babel/plugin-transform-optional-chaining@7.25.9(transitive)
- Removed@babel/plugin-transform-parameters@7.25.9(transitive)
- Removed@babel/plugin-transform-private-methods@7.25.9(transitive)
- Removed@babel/plugin-transform-private-property-in-object@7.25.9(transitive)
- Removed@babel/plugin-transform-property-literals@7.25.9(transitive)
- Removed@babel/plugin-transform-regenerator@7.25.9(transitive)
- Removed@babel/plugin-transform-regexp-modifiers@7.26.0(transitive)
- Removed@babel/plugin-transform-reserved-words@7.25.9(transitive)
- Removed@babel/plugin-transform-shorthand-properties@7.25.9(transitive)
- Removed@babel/plugin-transform-spread@7.25.9(transitive)
- Removed@babel/plugin-transform-sticky-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-template-literals@7.25.9(transitive)
- Removed@babel/plugin-transform-typeof-symbol@7.25.9(transitive)
- Removed@babel/plugin-transform-unicode-escapes@7.25.9(transitive)
- Removed@babel/plugin-transform-unicode-property-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-unicode-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-unicode-sets-regex@7.25.9(transitive)
- Removed@babel/preset-env@7.26.0(transitive)
- Removed@babel/preset-modules@0.1.6-no-external-plugins(transitive)
- Removed@babel/runtime@7.26.0(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.25.9(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removedbabel-plugin-polyfill-corejs2@0.4.12(transitive)
- Removedbabel-plugin-polyfill-corejs3@0.10.6(transitive)
- Removedbabel-plugin-polyfill-regenerator@0.6.3(transitive)
- Removedbrowserslist@4.24.2(transitive)
- Removedcaniuse-lite@1.0.30001683(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removedcore-js-compat@3.39.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removedelectron-to-chromium@1.5.64(transitive)
- Removedescalade@3.2.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjsesc@3.0.2(transitive)
- Removedjson5@2.2.3(transitive)
- Removedlodash.debounce@4.0.8(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedms@2.1.3(transitive)
- Removednode-releases@2.0.18(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedregenerate@1.4.2(transitive)
- Removedregenerate-unicode-properties@10.2.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedregenerator-transform@0.15.2(transitive)
- Removedregexpu-core@6.2.0(transitive)
- Removedregjsgen@0.8.0(transitive)
- Removedregjsparser@0.12.0(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@6.3.1(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedunicode-canonical-property-names-ecmascript@2.0.1(transitive)
- Removedunicode-match-property-ecmascript@2.0.0(transitive)
- Removedunicode-match-property-value-ecmascript@2.2.0(transitive)
- Removedunicode-property-aliases-ecmascript@2.1.0(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removedyallist@3.1.1(transitive)