Skip to content

Commit 70420a8

Browse files
committed
use lodash-es
1 parent 77f5563 commit 70420a8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
"eslint-plugin-react": "^7.23.1",
5757
"file-loader": "^6.2.0",
5858
"jest": "^26.6.3",
59-
"lodash.debounce": "^4.0.8",
60-
"lodash.throttle": "^4.1.1",
6159
"mini-css-extract-plugin": "^2.1.0",
6260
"postcss": "^8.2.10",
6361
"postcss-loader": "^5.2.0",
@@ -69,6 +67,7 @@
6967
"remove-files-webpack-plugin": "^1.4.5",
7068
"resize-observer-polyfill": "^1.5.0",
7169
"sass": "^1.35.2",
70+
"lodash-es": "^4.17.21",
7271
"sass-loader": "^12.1.0",
7372
"style-loader": "^2.0.0",
7473
"url-loader": "^4.1.1",
@@ -79,5 +78,6 @@
7978
"peerDependencies": {
8079
"react": "^16.0.0 || ^17.0.0"
8180
},
82-
"dependencies": {}
81+
"dependencies": {
82+
}
8383
}

src/ImageGallery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import clsx from 'clsx';
22
import React from 'react';
3-
import throttle from 'lodash/throttle';
4-
import debounce from 'lodash/debounce';
3+
import throttle from 'lodash-es/throttle';
4+
import debounce from 'lodash-es/debounce';
55
import isEqual from 'react-fast-compare';
66
import ResizeObserver from 'resize-observer-polyfill';
77
import {

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4842,6 +4842,11 @@ locate-path@^5.0.0:
48424842
dependencies:
48434843
p-locate "^4.1.0"
48444844

4845+
lodash-es@^4.17.21:
4846+
version "4.17.21"
4847+
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"
4848+
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==
4849+
48454850
lodash.clonedeep@^4.5.0:
48464851
version "4.5.0"
48474852
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
@@ -4872,11 +4877,6 @@ lodash.merge@^4.6.2:
48724877
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
48734878
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
48744879

4875-
lodash.throttle@^4.1.1:
4876-
version "4.1.1"
4877-
resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4"
4878-
integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=
4879-
48804880
lodash.truncate@^4.4.2:
48814881
version "4.4.2"
48824882
resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193"

0 commit comments

Comments
 (0)