diff --git a/package-lock.json b/package-lock.json index be061d4f..29ba25a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,6 @@ "classnames": "^2.3.2", "comlink": "^4.4.1", "copy-to-clipboard": "^3.3.3", - "dayjs": "^1.11.12", "fast-deep-equal": "^3.1.3", "fuse.js": "^6.6.2", "level": "^8.0.0", @@ -6095,11 +6094,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/dayjs": { - "version": "1.11.12", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.12.tgz", - "integrity": "sha512-Rt2g+nTbLlDWZTwwrIXjy9MeiZmSDI375FvZs72ngxx8PDC6YXOeR3q5LAuPzjZQxhiWdRKac7RKV+YyQYfYIg==" - }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -13014,6 +13008,7 @@ "version": "0.1.0-alpha.5.3", "resolved": "https://registry.npmjs.org/tlsn-js/-/tlsn-js-0.1.0-alpha.5.3.tgz", "integrity": "sha512-eTSCQ6MaH8mN2oCfLsQDe/mdfTlIq74MbKVesV6M01C2SRE0FJcVlTWMsnT3L+wOpvOlvsiBeCWV7T9m/YMzew==", + "license": "ISC", "dependencies": { "comlink": "^4.4.1" }, @@ -18249,11 +18244,6 @@ "is-data-view": "^1.0.1" } }, - "dayjs": { - "version": "1.11.12", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.12.tgz", - "integrity": "sha512-Rt2g+nTbLlDWZTwwrIXjy9MeiZmSDI375FvZs72ngxx8PDC6YXOeR3q5LAuPzjZQxhiWdRKac7RKV+YyQYfYIg==" - }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", diff --git a/src/components/RequestDetail/index.tsx b/src/components/RequestDetail/index.tsx index 919ed7e5..0363bc64 100644 --- a/src/components/RequestDetail/index.tsx +++ b/src/components/RequestDetail/index.tsx @@ -27,7 +27,6 @@ import { } from '../../utils/storage'; import { MAX_RECV, MAX_SENT } from '../../utils/constants'; - type Props = { requestId: string; }; diff --git a/src/pages/Notarize/index.tsx b/src/pages/Notarize/index.tsx index 6b297147..4e5c282c 100644 --- a/src/pages/Notarize/index.tsx +++ b/src/pages/Notarize/index.tsx @@ -334,6 +334,7 @@ export function HideResponseStep(props: { [responseText, props, isRedactMode] ); + const mergeRanges = (ranges: {start: number, end: number}[]): {start: number, end: number}[] => { if (ranges.length === 0) return []; const mergedRanges: {start: number, end: number}[] = [ranges[0]]; @@ -389,7 +390,8 @@ export function HideResponseStep(props: { if (!req) return <>; - let shieldedText = responseText.split(''); + + const shieldedText = responseText.split(''); redactedRanges.forEach(({ start, end }) => { for (let i = start; i < end; i++) { shieldedText[i] = '*';