Skip to content

Commit a6bd3ce

Browse files
committed
fix: remove lodash
1 parent 949777d commit a6bd3ce

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838
],
3939
"dependencies": {
4040
"@raycast/api": "^1.48.9",
41-
"@types/lodash": "^4.14.191",
4241
"change-case": "^4.1.2",
43-
"lodash": "^4.17.21",
4442
"node-fetch": "^3.3.1"
4543
},
4644
"devDependencies": {

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import { debounce } from "lodash";
32
import { Action, ActionPanel, List, Icon, Clipboard, showToast, Toast } from "@raycast/api";
43
import { queryVariableNames, getHistory, deleteAllHistory, deleteHistoryItem } from "./useQuery";
54
import type { Result } from "./types";
@@ -49,8 +48,9 @@ export default function Command() {
4948
return (
5049
<List
5150
isLoading={loading}
52-
onSearchTextChange={debounce(onSearchTextChange, 500, { trailing: true })}
51+
onSearchTextChange={onSearchTextChange}
5352
searchBarPlaceholder="Please enter variable name"
53+
throttle
5454
>
5555
{variableNames.map((variableName) => (
5656
<List.Item

yarn.lock

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,6 @@
124124
resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3"
125125
integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==
126126

127-
"@types/lodash@^4.14.191":
128-
version "4.14.191"
129-
resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz#09511e7f7cba275acd8b419ddac8da9a6a79e2fa"
130-
integrity sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==
131-
132127
133128
version "18.8.3"
134129
resolved "https://registry.npmjs.org/@types/node/-/node-18.8.3.tgz#ce750ab4017effa51aed6a7230651778d54e327c"
@@ -882,11 +877,6 @@ lodash.truncate@^4.4.2:
882877
resolved "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193"
883878
integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==
884879

885-
lodash@^4.17.21:
886-
version "4.17.21"
887-
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
888-
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
889-
890880
loose-envify@^1.1.0:
891881
version "1.4.0"
892882
resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"

0 commit comments

Comments
 (0)