mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
chore: upgrade node version (#209)
This commit is contained in:
parent
6bcfea990e
commit
b175b69b92
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -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
|
||||||
|
5
.github/workflows/preview-build.yml
vendored
5
.github/workflows/preview-build.yml
vendored
@ -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: |
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -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
35983
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||||
|
@ -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/`, // 基本路径, 建议以绝对路径跟随访问目录
|
||||||
|
Loading…
Reference in New Issue
Block a user