mirror of
https://github.com/doocs/md.git
synced 2024-10-30 15:57:50 +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
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.4.0
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "12"
|
||||
check-latest: true
|
||||
node-version: 16
|
||||
|
||||
- name: Install dependencies
|
||||
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
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Set up node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "12"
|
||||
check-latest: true
|
||||
node-version: 16
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
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-vue": "^6.2.2",
|
||||
"husky": "^7.0.4",
|
||||
"@vue/cli-plugin-babel": "~4.5.15",
|
||||
"@vue/cli-service": "~4.5.15",
|
||||
"@vue/cli-plugin-babel": "^4.5.15",
|
||||
"@vue/cli-service": "^4.5.15",
|
||||
"async-validator": "^4.0.7",
|
||||
"babel-plugin-import": "^1.13.3",
|
||||
"cache-loader": "^4.1.0",
|
||||
|
@ -1,5 +1,20 @@
|
||||
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 = {
|
||||
lintOnSave: true,
|
||||
publicPath: process.env.SERVER_ENV === `NETLIFY` ? `/` : `/md/`, // 基本路径, 建议以绝对路径跟随访问目录
|
||||
|
Loading…
Reference in New Issue
Block a user