fix: update packages

This commit is contained in:
xion 2024-12-07 02:05:41 +08:00
parent 5c91ac8b8d
commit a9afc2ffea
7 changed files with 10 additions and 10 deletions

3
.npmrc
View File

@ -1 +1,4 @@
//npm.xiongxiao.me/:_authToken=${ME_NPM_TOKEN}
@abearxiong:registry=https://npm.pkg.github.com
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
@kevisual:registry=https://npm.xiongxiao.me

View File

@ -34,14 +34,13 @@
"@types/node": "^22.10.1",
"cross-env": "^7.0.3",
"nodemon": "^3.1.7",
"rollup": "^4.27.4",
"rollup": "^4.28.1",
"tslib": "^2.8.1",
"typescript": "^5.7.2"
},
"dependencies": {
"@kevisual/router": "0.0.6-alpha-2",
"@kevisual/use-config": "^1.0.3",
"@abearxiong/use-file-store": "^0.0.1",
"@kevisual/use-config": "^1.0.7",
"ioredis": "^5.4.1",
"nanoid": "^5.0.9"
},

View File

@ -25,6 +25,5 @@ export default {
declaration: false,
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
],
// external: ['ws'],
external: ['ioredis', '@kevisual/router', '@kevisual/use-config'],
};

View File

@ -1,6 +1,6 @@
import path from 'path';
import { redis, subscriber } from './redis/redis.ts';
import { useFileStore } from '@abearxiong/use-file-store';
import { useFileStore } from '@kevisual/use-config/file-store';
import { useConfig } from '@kevisual/use-config';
import fs from 'fs';
import crypto from 'crypto';

View File

@ -1,11 +1,10 @@
import { getDNS, isLocalhost } from '@/utils/dns.ts';
import http from 'http';
import { UserApp } from './get-user-app.ts';
import { useFileStore } from '@abearxiong/use-file-store';
import { useFileStore } from '@kevisual/use-config/file-store';
import path from 'path';
import fs from 'fs';
import { useConfig } from '@kevisual/use-config';
import { redis } from './redis/redis.ts';
import { getContentType } from './get-content-type.ts';
import { sleep } from '@/utils/sleep.ts';
const { api, domain, allowedOrigins } = useConfig<{

View File

@ -2,7 +2,7 @@ import { UserApp } from '@/module/get-user-app.ts';
import { app } from '../../app.ts';
import { redis } from '@/module/redis/redis.ts';
import fs from 'fs';
import { useFileStore } from '@abearxiong/use-file-store';
import { useFileStore } from '@kevisual/use-config/file-store';
const fileStore = useFileStore('upload');
app

View File

@ -1,7 +1,7 @@
import { UserApp, clearAllUserApp } from '../module/get-user-app.ts';
import { redis } from '../module/redis/redis.ts';
import path from 'path';
import { useFileStore } from '@abearxiong/use-file-store';
import { useFileStore } from '@kevisual/use-config/file-store';
const filePath = useFileStore('upload');
const main = async () => {