Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
dep(lodash.get): remove obsolete dependency
  • Loading branch information
JakobJingleheimer committed Jul 31, 2025
commit 0801ab1f8df8dec6052c35f71d6fc491430d1aec
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
"directories": {
"lib": "./dist"
},
"dependencies": {
"lodash.get": "^4.4.2"
},
"dependencies": {},
"peerDependencies": {
"graphql": "^15.0.0 || ^16.0.0"
},
Expand Down
3 changes: 1 addition & 2 deletions src/estimators/directive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
GraphQLDirective,
DirectiveLocation,
} from 'graphql';
import get from 'lodash.get';

export type ComplexityDirectiveOptions = {
name?: string;
Expand Down Expand Up @@ -64,7 +63,7 @@ export default function (
if (values.multipliers && Array.isArray(values.multipliers)) {
totalMultiplier = values.multipliers.reduce(
(aggregated: number, multiplier: string) => {
const multiplierValue = get(args.args, multiplier);
const multiplierValue = args.args?.[multiplier];

if (typeof multiplierValue === 'number') {
return aggregated * multiplierValue;
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -806,11 +806,6 @@ locate-path@^6.0.0:
dependencies:
p-locate "^5.0.0"

lodash.get@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=

lodash.merge@^4.6.2:
version "4.6.2"
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
Expand Down