chore: upgrade node version (#209)

This commit is contained in:
Yang Libin 2023-05-10 17:23:23 +08:00 committed by GitHub
parent 6bcfea990e
commit b175b69b92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12276 additions and 23740 deletions

View File

@ -10,15 +10,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2.4.0 uses: actions/checkout@v3
with: with:
persist-credentials: false persist-credentials: false
- name: Set up node - name: Set up node
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: "12" node-version: 16
check-latest: true
- name: Install dependencies - name: Install dependencies
run: npm install run: npm install

View File

@ -9,15 +9,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- name: Set up node - name: Set up node
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: "12" node-version: 16
check-latest: true
- name: Build - name: Build
run: | run: |

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Create Release - name: Create Release
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1

35983
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -49,8 +49,8 @@
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^6.2.2", "eslint-plugin-vue": "^6.2.2",
"husky": "^7.0.4", "husky": "^7.0.4",
"@vue/cli-plugin-babel": "~4.5.15", "@vue/cli-plugin-babel": "^4.5.15",
"@vue/cli-service": "~4.5.15", "@vue/cli-service": "^4.5.15",
"async-validator": "^4.0.7", "async-validator": "^4.0.7",
"babel-plugin-import": "^1.13.3", "babel-plugin-import": "^1.13.3",
"cache-loader": "^4.1.0", "cache-loader": "^4.1.0",

View File

@ -1,5 +1,20 @@
const isProd = process.env.NODE_ENV === `production` const isProd = process.env.NODE_ENV === `production`
const crypto = require('crypto');
/**
* md4 algorithm is not available anymore in NodeJS 17+ (because of lib SSL 3).
* In that case, silently replace md4 by md5 algorithm.
*/
try {
crypto.createHash('md4');
} catch (e) {
const origCreateHash = crypto.createHash;
crypto.createHash = (alg, opts) => {
return origCreateHash(alg === 'md4' ? 'md5' : alg, opts);
};
}
module.exports = { module.exports = {
lintOnSave: true, lintOnSave: true,
publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录 publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录