From f59681bc0a32d78c32a38cf305d2d9539004cc99 Mon Sep 17 00:00:00 2001 From: Simon Boudrias Date: Thu, 27 Jun 2024 11:41:18 -0400 Subject: [PATCH] Chore(inquirer): Completely drop lodash (#1443) Fix #1441 --- ...sh.get-npm-4.4.2-7bda64ed87-2a4925f6e8.zip | Bin 8381 -> 0 bytes ...sh.set-npm-4.3.2-7586c942c2-f0968109bc.zip | Bin 8888 -> 0 bytes packages/inquirer/lib/ui/prompt.js | 29 +++++++++++++++--- packages/inquirer/package.json | 2 -- yarn.lock | 16 ---------- 5 files changed, 24 insertions(+), 23 deletions(-) delete mode 100644 .yarn/cache/lodash.get-npm-4.4.2-7bda64ed87-2a4925f6e8.zip delete mode 100644 .yarn/cache/lodash.set-npm-4.3.2-7586c942c2-f0968109bc.zip diff --git a/.yarn/cache/lodash.get-npm-4.4.2-7bda64ed87-2a4925f6e8.zip b/.yarn/cache/lodash.get-npm-4.4.2-7bda64ed87-2a4925f6e8.zip deleted file mode 100644 index c41105a286cc08987472e5643bb57ea23635f2cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8381 zcmaKx1yCMMy0%~3-6dFX5AN>n?)LKH?h@SH-Q5Wg+zAACcMI;p{TclnnJ902>z2N1K#JvoB`0Gr?d0QrAWIT)K-8w1T5t(@)cYE=3Z2AC1M zF6pXsg-kMn-7+bIOZA0TBQ|gYo4&-5%FFE9+04D?6yqU6N;0OrzTRwp+js-y*EjZ= zfQLBBKr>kF?~?6U-vwmL*EHZpjYZQUrj(_|<&;Q_pcDu%D)h~nCVGJT*yjM%NFbyv zvriBss|)mlYO1|8C)PuMTDrK@>9LNIS2hk12hXD$>jMi5;BAkFusO$~yLR37I^oOO zLVdxHL18E0-J!|)i02sRiy+?YF?O1C*@4OaI|>mI3Ti(L7k$n|xlsowAdS{IMa)Wj zZQ>${6Y(XV>~Q>9#o6*x@}7Xn)dz>NlLfhUu(l@t?kBmiZfx^f|A-Rv#ldzu?+lGG zj}oSa5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;2_sFTC8BsEx%^k{7$sQ zW3Ma{70_~}>6_bcBHiwR56qPhj--T?6uslTXH4#U6{0%|Bz}eb5pQUhVO15R1TjLa z=~Km7fI$4F$D)GBRC4OM6%!barXzObOngv?p&B2o!uobV*X2)U1fHFDBiWLU zDYo-iCAq6OA$a=DY=HXZH}Sfv$!&pvG-5YCuqV$MT!dyKYR%~#EFk9bO>~? z1O(`{@!KbPD3vvHICU0&yEOSesbqa5PoJm;*D#zOuLlHbv%L!ktO2U$_3btZOD=bG zvFpYi6_khuMP9ggBkA*z^}pq?TW>(6<~qHU<$r`~o*cECB3cb0iMV-{t8L0U- z7*>~e2IMNgJvG57798%5=+tq9C>2h9`PKa*0T(*KdDrs+ZY$+t>Cdk|9pL&Vj`e7V z^VCWqvWSGeTO?#Dye#m@HK^CLMTBt!W}DKBhRbvx5*BvhorZusd>ALyt0otC$GA@t zr|iE+*M#x@ATd!Uah#3#&~mhp*+CvmqlKEWnNH<~pUelz{l6Mq!MP5oqT+0G6>^p&~NH#D?z(<{~n7jZ3 zog2?>x3#4F+OsBZp$_Rl@TjDY{6RsL=WW%f}|9RzMz}K0hCw~q>00|IH68yT8gWyoJ$%+(c?^Ic}Kf?GO8yc zJL|W=T$>#|H??@14OD@$PnM0!T_t&?)pA?8ycEcSegWKe25CEvl)mt~Kb~2avrApC z_Vbiv!N3I}{xj?TvpfFJI2Zm$@i+4QpQZm`-+#rqFx{W(|B?P568^s~e__?Xv+%!M ziUW-Qi_8B{#{YVyza0M#YX9ws{fD>zr+)oEZ2Nb+zaz_k+v!65XS;s^%)gucokaZG gY~~LU{ZD=Si%TfULP7sS0sZIb0s{a}i2iZ+KOaeBNB{r; diff --git a/.yarn/cache/lodash.set-npm-4.3.2-7586c942c2-f0968109bc.zip b/.yarn/cache/lodash.set-npm-4.3.2-7586c942c2-f0968109bc.zip deleted file mode 100644 index cce491ca498553b78ef0eec0bdd47b832359ab2c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal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9b16I(NeE?qmlu+Ad%_Cz6b69$K__y|&`P9apjKuIJ$wwT<+c!x%+ z3OL4VeqfkDP@!T#hwafjX^iI65(%G0|DElnoK8_#wkO2)tV9dwfBnwjF^h^I{i$lj zLBne;DnWYgvXE2}nNO{9IA^OgTe;YAs%j$TK7q)hPsQRlB}?owori!e-A7{6Ef0g8 zu!}@gvl~dMa#b=vq*;7pI;Xcie9lDL?k!?+c8y5I62wFm8xT-mN6CD&LJ^gf1g9Zr<=!HZ(+|1m-QFUwz&`rmC3f3cJVoBkJ;|KAkx z*DL+S_;->1-;B6_tQP-iUjI+B|2y5^_3D4q=|cZ!x__zHe<%C94E1la**|jlf12B0 YqLhj}EZjd3aDR>-NC=1{@_*d@50ueXBLDyZ diff --git a/packages/inquirer/lib/ui/prompt.js b/packages/inquirer/lib/ui/prompt.js index 303edd766..b06ee2583 100644 --- a/packages/inquirer/lib/ui/prompt.js +++ b/packages/inquirer/lib/ui/prompt.js @@ -1,10 +1,29 @@ -import get from 'lodash.get'; -import set from 'lodash.set'; - const _ = { - set, - get, + set: (obj, path = '', value) => { + let pointer = obj; + path.split('.').forEach((key, index, arr) => { + if (key === '__proto__' || key === 'constructor') return; + + if (index === arr.length - 1) { + pointer[key] = value; + } else if (!(key in pointer)) { + pointer[key] = {}; + } + + pointer = pointer[key]; + }); + }, + get: (obj, path = '', defaultValue) => { + const travel = (regexp) => + String.prototype.split + .call(path, regexp) + .filter(Boolean) + .reduce((res, key) => (res !== null && res !== undefined ? res[key] : res), obj); + const result = travel(/[,[\]]+?/) || travel(/[,.[\]]+?/); + return result === undefined || result === obj ? defaultValue : result; + }, }; + import { defer, EMPTY, diff --git a/packages/inquirer/package.json b/packages/inquirer/package.json index 33eb35634..b5b26f3cc 100644 --- a/packages/inquirer/package.json +++ b/packages/inquirer/package.json @@ -63,8 +63,6 @@ "ansi-escapes": "^4.3.2", "cli-width": "^4.1.0", "external-editor": "^3.1.0", - "lodash.get": "^4.4.2", - "lodash.set": "^4.3.2", "mute-stream": "1.0.0", "ora": "^5.4.1", "picocolors": "^1.0.1", diff --git a/yarn.lock b/yarn.lock index d518f6b19..a3975b35e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4398,8 +4398,6 @@ __metadata: ansi-escapes: "npm:^4.3.2" cli-width: "npm:^4.1.0" external-editor: "npm:^3.1.0" - lodash.get: "npm:^4.4.2" - lodash.set: "npm:^4.3.2" mute-stream: "npm:1.0.0" ora: "npm:^5.4.1" picocolors: "npm:^1.0.1" @@ -5155,13 +5153,6 @@ __metadata: languageName: node linkType: hard -"lodash.get@npm:^4.4.2": - version: 4.4.2 - resolution: "lodash.get@npm:4.4.2" - checksum: 10/2a4925f6e89bc2c010a77a802d1ba357e17ed1ea03c2ddf6a146429f2856a216663e694a6aa3549a318cbbba3fd8b7decb392db457e6ac0b83dc745ed0a17380 - languageName: node - linkType: hard - "lodash.ismatch@npm:^4.4.0": version: 4.4.0 resolution: "lodash.ismatch@npm:4.4.0" @@ -5176,13 +5167,6 @@ __metadata: languageName: node linkType: hard -"lodash.set@npm:^4.3.2": - version: 4.3.2 - resolution: "lodash.set@npm:4.3.2" - checksum: 10/f0968109bca5625c8ce1f1beab758634484443604d3950477e46d8d2631562e5ceae4465b9ce8a393fd47f5a411329f9bacf956c7c95530af1290db1a20343ba - languageName: node - linkType: hard - "lodash@npm:^4.17.21": version: 4.17.21 resolution: "lodash@npm:4.17.21"