Skip to content

Commit 706e92f

Browse files
committed
chore: update package dependencies and lockfile configuration
- Added configVersion to bun.lock for better compatibility. - Updated vite-plugin-mock-dev-server to version 2.3.0, improving dependency management. - Replaced crypto.randomUUID() with Math.random() for ID generation in Console component.
1 parent cca2805 commit 706e92f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

bun.lock

Lines changed: 6 additions & 5 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"typescript": "^6.0.3",
6464
"vite": "^8.0.13",
6565
"vite-plugin-compression2": "^2.5.3",
66-
"vite-plugin-mock-dev-server": "^2.2.1"
66+
"vite-plugin-mock-dev-server": "^2.3.0"
6767
},
6868
"engines": {
6969
"node": ">=22.12.0"

src/components/Console/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { CloseOutlined, CopyOutlined, PauseCircleOutlined, PlayCircleOutlined } from '@ant-design/icons';
22
import { App, Button, Card, Empty, Segmented, Space, Switch, Tag, Tooltip, Typography } from 'antd';
3-
import crypto from 'crypto';
43
import dayjs from 'dayjs';
54
import type React from 'react';
65
import { memo, startTransition, useCallback, useEffect, useMemo, useRef, useState } from 'react';
@@ -231,7 +230,7 @@ const Console: React.FC = () => {
231230
[
232231
{
233232
...item,
234-
id: `${item.type}-${item.timestamp}-${crypto.randomUUID()}`,
233+
id: `${item.type}-${item.timestamp}-${Math.random().toString(36).substring(2, 15)}`,
235234
},
236235
...prev,
237236
].slice(0, MAX_LOG_ITEMS)

0 commit comments

Comments
 (0)