From 6684477f47bddb2bb14c96cb69392ea838ea9fa3 Mon Sep 17 00:00:00 2001 From: mozzie Date: Tue, 21 Mar 2023 14:44:36 +0800 Subject: [PATCH] reafctor: crypto.js --- apps/server/package.json | 6 ++++-- apps/web/package.json | 6 ++++-- package.json | 6 ++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/server/package.json b/apps/server/package.json index f6ef08e..ae5115b 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -29,7 +29,8 @@ "@alicloud/tea-util": "1.4.5", "@alicloud/tea-typescript": "1.8.0", "object-hash": "3.0.0", - "nanoid": "3.3.4" + "nanoid": "3.3.4", + "crypto-js": "4.1.1" }, "devDependencies": { "@midwayjs/cli": "^2.0.0", @@ -41,7 +42,8 @@ "@types/mongoose": "^5.11.97", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", - "@types/jsonwebtoken": "9.0.1" + "@types/jsonwebtoken": "9.0.1", + "@types/crypto-js": "4.1.1" }, "engines": { "node": ">=12.0.0" diff --git a/apps/web/package.json b/apps/web/package.json index 2f41e81..8088885 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -20,7 +20,8 @@ "react-hot-toast": "2.4.0", "react-spinners": "0.13.8", "react-markdown": "8.0.6", - "remark-gfm": "3.0.1" + "remark-gfm": "3.0.1", + "crypto-js": "4.1.1" }, "devDependencies": { "@types/react": "^18.0.27", @@ -33,6 +34,7 @@ "@types/dplayer": "1.25.2", "@types/identicon.js": "2.3.1", "rollup-plugin-visualizer": "5.9.0", - "vite-plugin-compression": "0.5.1" + "vite-plugin-compression": "0.5.1", + "@types/crypto-js": "4.1.1" } } \ No newline at end of file diff --git a/package.json b/package.json index 979ac07..5b3b6b1 100644 --- a/package.json +++ b/package.json @@ -52,14 +52,12 @@ "rollup-plugin-dts": "5.2.0", "axios": "1.3.4", "dayjs": "1.11.7", - "@types/js-cookie": "3.0.3", - "@types/crypto-js": "4.1.1" + "@types/js-cookie": "3.0.3" }, "dependencies": { "object-hash": "^3.0.0", "vditor": "3.9.0", "zustand": "4.3.6", - "js-cookie": "3.0.1", - "crypto-js": "4.1.1" + "js-cookie": "3.0.1" } } \ No newline at end of file