apply-extends.ts ×3

Frontier kind: Joint frontier

unlabeled · c_81eb060bcdea

4 tests · 52 LOC · 3 files · introduces 1 test · 10 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges10 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
17 ranges52 lines · 3 files · Browse complete extent
All tests (intent)
4 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationapply-extends.ts ×1 · 1 introduced LOCapply-extends.ts ×1apply-extends.ts ×2 · 5 introduced LOCapply-extends.ts ×2apply-extends.ts ×1 · 5 introduced LOCapply-extends.ts ×1apply-extends.ts ×2 · 11 introduced LOCapply-extends.ts ×2apply-extends.ts ×4 · 9 introduced LOCapply-extends.ts ×4process-argv.ts ×5 · 13 introduced LOCprocess-argv.ts ×5yerror.ts ×2 · 4 introduced LOCyerror.ts ×2lib/utils/apply-extends.ts · 79 LOCutils/apply-extends.tslib/utils/process-argv.ts · 36 LOCutils/process-argv.tslib/yerror.ts · 9 LOClib/yerror.tshelpers.mjs|title=helpers Parser exposes functional argument parser|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/helpers.mjs|title=helpers Parser exposes functional argument parser|occurrence=1helpers.mjs|title=helper…helpers.mjs|title=helpers applyExtends exposes applyExtends helper|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/helpers.mjs|title=helpers applyExtends exposes applyExtends helper|occurrence=1helpers.mjs|title=helper…platform-shim-test.mjs|title=platform-shim y18n __ behaves like sprintf|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __ behaves like sprintf|occurrence=1platform-shim-test.mjs|t…platform-shim-test.mjs|title=platform-shim y18n __n uses first string if singular|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __n uses first string if singular|occurrence=1platform-shim-test.mjs|t…platform-shim-test.mjs|title=platform-shim y18n __n uses second string if plural|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:esm|file=test/esm/platform-shim-test.mjs|title=platform-shim y18n __n uses second string if plural|occurrence=1platform-shim-test.mjs|t…helpers.mjs|title=applyExtends does not allow prototype pollution via __proto__|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/helpers.mjs|title=applyExtends does not allow prototype pollution via __proto__|occurrence=1helpers.mjs|title=applyE…parser.mjs|title=should expose yargs-parser as Parser|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/parser.mjs|title=should expose yargs-parser as Parser|occurrence=1parser.mjs|title=should …yargs.mjs|title=yargs dsl tests config extends deep merges configs when extending when deep-merge-config=true|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests config extends deep merges configs when extending when deep-merge-config=true|occurrence=1yargs.mjs|title=yargs ds…yargs.mjs|title=yargs dsl tests config extends deep merges multiple configs when extending when deep-merge-config=true|occurrence=1 · introduced test · mocha:v1|namespace=yargs@4153e0f097aeaf43a71a2530db6dda51dff2c544:main|file=test/yargs.mjs|title=yargs dsl tests config extends deep merges multiple configs when extending when deep-merge-config=true|occurrence=1yargs.mjs|title=yargs ds…Focused concept · apply-extends.ts ×3 · 10 introduced LOCapply-extends.ts ×3

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 10 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

lib/utils/apply-extends.ts 10 introduced LOC · 3 ranges

Open complete file

62 }
63
64 > function mergeDeep(config1: Dictionary, config2: Dictionary) { apply-extends.ts
65 > const target: Dictionary = {};
66 > function isObject(obj: Dictionary | any): obj is Dictionary {
67 return obj && typeof obj === 'object' && !Array.isArray(obj);
68 }
69 > Object.assign(target, config1); apply-extends.ts
70 > for (const key of Object.keys(config2)) {
71 > if (key === '__proto__') continue;
72 > if (isObject(config2[key]) && isObject(target[key])) {
73 target[key] = mergeDeep(config1[key], config2[key]);
74 } else {
75 target[key] = config2[key];
76 }
78 > return target;
79 > }