Skip to content

Commit

Permalink
Import throttle Lodash function directly (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Mar 11, 2023
1 parent 96b6c46 commit 025c10f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -52,7 +52,7 @@
"emoji-regex": "^10.2.1",
"indent-string": "^5.0.0",
"is-ci": "^3.0.1",
"lodash-es": "^4.17.21",
"lodash": "^4.17.21",
"patch-console": "^2.0.0",
"react-reconciler": "^0.29.0",
"scheduler": "^0.23.0",
Expand All @@ -71,7 +71,7 @@
"@sindresorhus/tsconfig": "3.0.1",
"@types/benchmark": "^2.1.2",
"@types/is-ci": "^2.0.0",
"@types/lodash-es": "^4.17.6",
"@types/lodash": "^4.14.191",
"@types/ms": "^0.7.31",
"@types/node": "*",
"@types/react": "^18.0.0",
Expand Down
3 changes: 2 additions & 1 deletion src/ink.tsx
@@ -1,6 +1,7 @@
import process from 'node:process';
import React, {type ReactNode} from 'react';
import {throttle, type DebouncedFunc} from 'lodash-es';
import throttle from 'lodash/throttle.js';
import {type DebouncedFunc} from 'lodash';
import ansiEscapes from 'ansi-escapes';
import originalIsCi from 'is-ci';
import autoBind from 'auto-bind';
Expand Down

0 comments on commit 025c10f

Please sign in to comment.