Skip to content

Commit

Permalink
fix: Upgrade node-fetch (doocs#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
wll8 authored Dec 3, 2021
1 parent fe4d6b0 commit e7a0ded
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions md-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@doocs/md-cli",
"version": "0.0.2",
"version": "0.0.3",
"description": "✍ 一款高度简洁的微信 Markdown 编辑器:支持 Markdown 所有基础语法、色盘取色、一键复制并粘贴到公众号后台、多图上传、一键下载文档、自定义 CSS 样式、一键重置等特性",
"main": "index.js",
"scripts": {
Expand All @@ -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"
}
}
2 changes: 1 addition & 1 deletion md-cli/util.js
Original file line number Diff line number Diff line change
@@ -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`)

/**
Expand Down
2 changes: 1 addition & 1 deletion mm/util.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e7a0ded

Please sign in to comment.