Skip to content

Commit 01c46d7

Browse files
chore: Remove unused and unsafe dependency
`xlsx` is removed due to the author is no longer publishing update to the npm registry. The current version on npm is vulnerable to a Prototype Pollution attack. (read:cscan/vue3-excel-editor#49)
1 parent adb6995 commit 01c46d7

File tree

3 files changed

+7
-113
lines changed

3 files changed

+7
-113
lines changed

package-lock.json

Lines changed: 6 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
"twin.macro": "^3.4.1",
4040
"typescript": "^5.5.4",
4141
"uuid": "^10.0.0",
42-
"web-vitals": "^2.1.4",
43-
"xlsx": "^0.18.5"
42+
"web-vitals": "^2.1.4"
4443
},
4544
"scripts": {
4645
"start": "react-scripts start",

src/Components/modd/Table/FactoryLog/FactoryTableComponent.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from "react";
22
import { useTranslation } from "react-i18next";
33
import Table from "../TableTest/Table";
44
import StatusComponent from "./StatusComponent";
5-
import * as XLSX from "xlsx";
65
import { useFactoryLogContext } from "./FactoryLogContext";
76
import Modal from "../../Modal/NonDialogModal";
87
import ColumnChart from "./Chart/ColumnChart";

0 commit comments

Comments
 (0)