Skip to content

Commit

Permalink
Merge pull request #2421 from bartocc/remove-lodash-dep
Browse files Browse the repository at this point in the history
➖ Remove `lodash` dependency
  • Loading branch information
SergeAstapov authored Sep 13, 2023
2 parents bb4f336 + aeec781 commit 24af2b5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
_utilsInflectorCamelize as camelize,
_utilsInflectorDasherize as dasherize,
} from 'miragejs';
import { isFunction } from 'lodash-es';
import { get } from '@ember/object';

/**
Expand Down Expand Up @@ -67,7 +66,7 @@ let EmberDataSerializer = RestSerializer.extend({
},

getKeysForIncluded() {
return isFunction(this.include)
return typeof this.include === 'function'
? this.include(this.request, this.primaryResource)
: this.include;
},
Expand Down
1 change: 0 additions & 1 deletion packages/ember-cli-mirage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"ember-destroyable-polyfill": "^2.0.3",
"ember-get-config": "0.2.4 - 0.5.0 || ^1.0.0 || ^2.1.1",
"ember-inflector": "^2.0.0 || ^3.0.0 || ^4.0.2",
"lodash-es": "^4.17.11",
"miragejs": "^0.1.47"
},
"devDependencies": {
Expand Down
7 changes: 0 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24af2b5

Please sign in to comment.