mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: Upgrade node-fetch (#115)
This commit is contained in:
parent
fe4d6b0324
commit
e7a0ded14a
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@doocs/md-cli",
|
"name": "@doocs/md-cli",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"description": "✍ 一款高度简洁的微信 Markdown 编辑器:支持 Markdown 所有基础语法、色盘取色、一键复制并粘贴到公众号后台、多图上传、一键下载文档、自定义 CSS 样式、一键重置等特性",
|
"description": "✍ 一款高度简洁的微信 Markdown 编辑器:支持 Markdown 所有基础语法、色盘取色、一键复制并粘贴到公众号后台、多图上传、一键下载文档、自定义 CSS 样式、一键重置等特性",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -23,6 +23,6 @@
|
|||||||
"form-data": "2.3.3",
|
"form-data": "2.3.3",
|
||||||
"get-port": "5.1.1",
|
"get-port": "5.1.1",
|
||||||
"mockm": "^1.1.25",
|
"mockm": "^1.1.25",
|
||||||
"node-fetch": "2.6.2"
|
"node-fetch": "^3.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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`)
|
const FormData = require(`form-data`)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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`)
|
const FormData = require(`form-data`)
|
||||||
|
|
||||||
function dcloud(spaceInfo) {
|
function dcloud(spaceInfo) {
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"jquery": "^3.6.0",
|
"jquery": "^3.6.0",
|
||||||
"juice": "^8.0.0",
|
"juice": "^8.0.0",
|
||||||
"marked": "^4.0.5",
|
"marked": "^4.0.5",
|
||||||
"node-fetch": "3.1.0",
|
"node-fetch": "^3.1.0",
|
||||||
"prettier": "^2.5.0",
|
"prettier": "^2.5.0",
|
||||||
"prettify": "^0.1.7",
|
"prettify": "^0.1.7",
|
||||||
"qiniu-js": "^3.4.0",
|
"qiniu-js": "^3.4.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user