fix: Upgrade node-fetch (#115)

This commit is contained in:
xw 2021-12-03 15:50:23 +08:00 committed by GitHub
parent fe4d6b0324
commit e7a0ded14a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@doocs/md-cli",
"version": "0.0.2",
"version": "0.0.3",
"description": "✍ 一款高度简洁的微信 Markdown 编辑器:支持 Markdown 所有基础语法、色盘取色、一键复制并粘贴到公众号后台、多图上传、一键下载文档、自定义 CSS 样式、一键重置等特性",
"main": "index.js",
"scripts": {
@ -23,6 +23,6 @@
"form-data": "2.3.3",
"get-port": "5.1.1",
"mockm": "^1.1.25",
"node-fetch": "2.6.2"
"node-fetch": "^3.1.0"
}
}

View File

@ -1,4 +1,4 @@
const fetch = require('node-fetch')
const fetch = (...args) => import(`node-fetch`).then(({default: fetch}) => fetch(...args))
const FormData = require(`form-data`)
/**

View File

@ -1,4 +1,4 @@
const fetch = require('node-fetch')
const fetch = (...args) => import(`node-fetch`).then(({default: fetch}) => fetch(...args))
const FormData = require(`form-data`)
function dcloud(spaceInfo) {

View File

@ -25,7 +25,7 @@
"jquery": "^3.6.0",
"juice": "^8.0.0",
"marked": "^4.0.5",
"node-fetch": "3.1.0",
"node-fetch": "^3.1.0",
"prettier": "^2.5.0",
"prettify": "^0.1.7",
"qiniu-js": "^3.4.0",