Skip to content

Commit 62d9536

Browse files
committed
fix: More usage of lodash individual modules
1 parent 3153407 commit 62d9536

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

lib/contentful.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @see ContentfulClientAPI
66
*/
77

8-
import {assign} from 'lodash/object'
8+
import assign from 'lodash/assign'
99
import version from '../version'
1010
import createHttpClient from 'contentful-sdk-core/create-http-client'
1111
import createContentfulApi from './create-contentful-api'

test/integration/tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import test from 'blue-tape'
2-
import {filter, map} from 'lodash/collection'
2+
import filter from 'lodash/filter'
3+
import map from 'lodash/map'
34
import contentful from '../../'
45

56
const params = {

test/unit/entities/content-type-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'tape'
2-
import {assign} from 'lodash/object'
3-
import {cloneDeep} from 'lodash/lang'
2+
import assign from 'lodash/assign'
3+
import cloneDeep from 'lodash/cloneDeep'
44
import {sysMock} from '../mocks'
55

66
import {wrapContentType, wrapContentTypeCollection} from '../../../lib/entities/content-type'

test/unit/entities/entry-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import test from 'tape'
22

33
import {entryMock, assetMock} from '../mocks'
4-
import {cloneDeep} from 'lodash/lang'
4+
import cloneDeep from 'lodash/cloneDeep'
55
import {wrapEntry, wrapEntryCollection} from '../../../lib/entities/entry'
66

77
test('Entry is wrapped', (t) => {

test/unit/mocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {assign} from 'lodash/object'
2-
import {cloneDeep} from 'lodash/lang'
1+
import assign from 'lodash/assign'
2+
import cloneDeep from 'lodash/cloneDeep'
33

44
const linkMock = {
55
id: 'linkid',

test/unit/paged-sync-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'blue-tape'
22
import sinon from 'sinon'
3-
import {cloneDeep} from 'lodash/lang'
3+
import cloneDeep from 'lodash/cloneDeep'
44
import {entryMock, assetMock} from './mocks'
55
import pagedSync from '../../lib/paged-sync'
66

0 commit comments

Comments
 (0)