Kaynağa Gözat

upgrade all modules

lybenson 3 yıl önce
ebeveyn
işleme
3a9bc60666
6 değiştirilmiş dosya ile 1142 ekleme ve 970 silme
  1. 1 6
      bilibili-api/app/server.js
  2. 14 13
      bilibili-api/package.json
  3. 544 389
      bilibili-api/yarn.lock
  4. 12 13
      package.json
  5. 1 1
      src/api/urlConfig.js
  6. 570 548
      yarn.lock

+ 1 - 6
bilibili-api/app/server.js

@@ -1,8 +1,3 @@
-/// //////////////MARK:必读////////////////
-// 后来人,接受这个项目不要迷茫,不要彷徨
-// 代码逻辑混乱,接口数据有问题,请你坚持下去
-// 谨记,请勿辱骂前人
-
 import Koa from 'koa'
 import http from 'http'
 import convert from 'koa-convert'
@@ -26,7 +21,7 @@ const app = new Koa()
 
 onerror(app)
 
-app.use(convert(cors()))
+app.use(cors())
 
 app.use(convert(logger()))
 

+ 14 - 13
bilibili-api/package.json

@@ -1,34 +1,35 @@
 {
   "name": "bilibili-api",
   "version": "1.0.0",
+  "license": "MIT",
   "description": "",
   "type": "module",
   "scripts": {
     "start": "cross-env NODE_ENV=production ./node_modules/.bin/nodemon babel-node ./server.js",
-    "dev": "cross-env NODE_ENV=development ./node_modules/.bin/nodemon ./index.js",
+    "dev": "cross-env NODE_ENV=development nodemon app/server.js",
     "test": "cross-env NODE_ENV=test ./node_modules/.bin/nodemon ./index.js"
   },
   "dependencies": {
-    "axios": "^0.22.0",
-    "koa": "^2.13.3",
+    "@koa/cors": "^3.3.0",
+    "@koa/router": "^12.0.0",
+    "axios": "^0.27.2",
+    "koa": "^2.13.4",
     "koa-bodyparser": "^4.3.0",
     "koa-convert": "^2.0.0",
-    "koa-cors": "^0.0.16",
     "koa-logger": "^3.2.1",
-    "koa-onerror": "^4.1.0",
+    "koa-onerror": "^4.2.0",
     "koa-response-time": "^2.1.0",
-    "koa-router": "^10.1.1",
     "koa-static": "^5.0.0"
   },
   "devDependencies": {
-    "@babel/core": "^7.15.8",
-    "@babel/node": "^7.15.8",
-    "@babel/plugin-transform-runtime": "^7.15.8",
+    "@babel/core": "^7.18.9",
+    "@babel/node": "^7.18.9",
+    "@babel/plugin-transform-runtime": "^7.18.9",
     "@babel/polyfill": "^7.12.1",
-    "@babel/preset-env": "^7.15.8",
-    "@babel/register": "^7.15.3",
-    "@babel/runtime": "^7.15.4",
+    "@babel/preset-env": "^7.18.9",
+    "@babel/register": "^7.18.9",
+    "@babel/runtime": "^7.18.9",
     "cross-env": "^7.0.3",
-    "nodemon": "^2.0.13"
+    "nodemon": "^2.0.19"
   }
 }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 544 - 389
bilibili-api/yarn.lock


+ 12 - 13
package.json

@@ -10,11 +10,10 @@
     "lint": "eslint --fix --ext .vue,.ts,.tsx,.js,.jsx src"
   },
   "dependencies": {
-    "axios": "^0.22.0",
+    "axios": "^0.27.2",
     "lodash": "^4.17.21",
     "vue": "^3.2.19",
-    "vue-lazyload": "^1.3.3",
-    "vue3-lazyload": "^0.2.2-beta",
+    "vue3-lazyload": "^0.3.5",
     "vuex": "^4.0.2"
   },
   "devDependencies": {
@@ -24,22 +23,22 @@
     "@babel/plugin-transform-runtime": "^7.15.8",
     "@babel/preset-env": "^7.15.8",
     "@babel/runtime": "^7.15.4",
-    "@typescript-eslint/eslint-plugin": "^4.33.0",
-    "@typescript-eslint/parser": "^4.33.0",
-    "@vitejs/plugin-vue": "^1.9.3",
+    "@typescript-eslint/eslint-plugin": "^5.30.7",
+    "@typescript-eslint/parser": "^5.30.7",
+    "@vitejs/plugin-vue": "^3.0.1",
     "@vue/compiler-sfc": "^3.2.19",
     "autoprefixer": "^10.3.7",
     "cross-env": "^7.0.3",
-    "eslint": "^7.32.0",
-    "eslint-config-standard": "^16.0.3",
+    "eslint": "^8.20.0",
+    "eslint-config-standard": "^17.0.0",
     "eslint-plugin-import": "^2.24.2",
     "eslint-plugin-node": "^11.1.0",
-    "eslint-plugin-promise": "^5.1.0",
-    "eslint-plugin-vue": "^7.19.1",
-    "stylus": "^0.55.0",
+    "eslint-plugin-promise": "^6.0.0",
+    "eslint-plugin-vue": "^9.2.0",
+    "stylus": "^0.58.1",
     "typescript": "^4.4.3",
-    "vite": "^2.6.4",
-    "vite-plugin-style-import": "^1.2.1"
+    "vite": "^3.0.2",
+    "vite-plugin-style-import": "^2.0.0"
   },
   "engines": {
     "node": ">= 14.0.0",

+ 1 - 1
src/api/urlConfig.js

@@ -1,5 +1,5 @@
 
-const serverRoot = `${process.env.NODE_ENV === 'production' ? 'http://www.lybenson.com' : 'http://127.0.0.1'}:5000`
+const serverRoot = `${process.env.NODE_ENV === 'production' ? 'http://www.lybenson.com' : 'http://127.0.0.1'}:9050`
 
 export const banner = serverRoot + '/banner'
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 570 - 548
yarn.lock


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor