Skip to content

Commit

Permalink
chore: remove lodash for security issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Jun 4, 2024
1 parent 14e9fdc commit efaf9f9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 18,760 deletions.
18,753 changes: 0 additions & 18,753 deletions package-lock.json

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"classnames": "^2.5.1",
"clsx": "^2.1.0",
"crc-32": "^1.2.2",
"debounce": "^2.1.0",
"dompurify": "^3.1.3",
"exports-loader": "0.7.0",
"file-saver": "^2.0.5",
Expand All @@ -43,7 +44,6 @@
"imports-loader": "0.8.0",
"js-cookie": "^3.0.5",
"localforage": "^1.10.0",
"lodash.debounce": "^4.0.8",
"lz-string": "^1.5.0",
"mobx": "^6.12.3",
"mobx-react-lite": "^4.0.7",
Expand Down Expand Up @@ -86,7 +86,6 @@
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/lodash.debounce": "^4.0.9",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@types/react-router-dom": "^5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion src/components/draggable/draggable-resize-wrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import debounce from 'lodash.debounce';
import debounce from 'debounce';

import Draggable from './draggable';

Expand Down
2 changes: 1 addition & 1 deletion src/external/bot-skeleton/scratch/hooks/block_svg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import debounce from 'lodash.debounce';
import debounce from 'debounce';

import { localize } from '@/utils/tmp/dummy';

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-debounce.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import debounce from 'lodash.debounce';
import debounce from 'debounce';

export const useDebounce = (callback: () => void, timeout: number) => {
const debouncedCallback = React.useMemo(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import debounce from 'debounce';
import { Field, FieldProps, useFormikContext } from 'formik';
import debounce from 'lodash.debounce';

import { TItem } from '@deriv/components/src/components/dropdown-list';
import { Text } from '@deriv-com/ui';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tutorials/common/search-input/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import debounce from 'lodash.debounce';
import debounce from 'debounce';
import { observer } from 'mobx-react-lite';

import { Analytics } from '@deriv-com/analytics';
Expand Down

0 comments on commit efaf9f9

Please sign in to comment.