From 268bdf2faab9cd3cecb055cd203f4efafe53c771 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 26 Sep 2021 18:21:15 +0800 Subject: [PATCH] chore: Upgrade devDeps (#32308) * chore: node-fetch => isomorphic-fetch * upgrade array-move * fix test --- .jest.js | 2 +- package.json | 4 ++-- scripts/check-commit.js | 2 +- scripts/check-site.js | 2 +- scripts/print-changelog.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.jest.js b/.jest.js index 4b5bf5ba38..07b70daa3d 100644 --- a/.jest.js +++ b/.jest.js @@ -2,7 +2,7 @@ const transformIgnorePatterns = [ '/dist/', // Ignore modules without es dir. // Update: @babel/runtime should also be transformed - 'node_modules/(?!.*@(babel|ant-design))[^/]+?/(?!(es|node_modules)/)', + 'node_modules/(?!.*@(babel|ant-design))(?!array-move)[^/]+?/(?!(es|node_modules)/)', ]; function getTestRegex(libDir) { diff --git a/package.json b/package.json index ea1191707f..f8b3c96e3c 100644 --- a/package.json +++ b/package.json @@ -180,7 +180,7 @@ "antd-pro-merge-less": "^3.0.11", "antd-theme-generator": "^1.2.3", "argos-cli": "^0.3.0", - "array-move": "^3.0.0", + "array-move": "^4.0.0", "babel-plugin-add-react-displayname": "^0.0.5", "bisheng": "^3.0.0", "bisheng-plugin-description": "^0.1.4", @@ -222,6 +222,7 @@ "immutability-helper": "^3.0.0", "inquirer": "^8.0.0", "intersection-observer": "^0.12.0", + "isomorphic-fetch": "^3.0.0", "jest": "^27.0.3", "jest-image-snapshot": "^4.5.1", "jest-puppeteer": "^6.0.0", @@ -231,7 +232,6 @@ "less-vars-to-js": "^1.3.0", "lz-string": "^1.4.4", "mockdate": "^3.0.0", - "node-fetch": "^2.0.0", "open": "^8.0.1", "prettier": "^2.3.2", "prettier-plugin-jsdoc": "^0.3.0", diff --git a/scripts/check-commit.js b/scripts/check-commit.js index 71577cd333..5511234855 100755 --- a/scripts/check-commit.js +++ b/scripts/check-commit.js @@ -1,7 +1,7 @@ /* eslint-disable import/no-dynamic-require, no-console */ const chalk = require('chalk'); const path = require('path'); -const fetch = require('node-fetch'); +const fetch = require('isomorphic-fetch'); const simpleGit = require('simple-git/promise'); const cwd = process.cwd(); diff --git a/scripts/check-site.js b/scripts/check-site.js index a4c9b33339..188962f55f 100755 --- a/scripts/check-site.js +++ b/scripts/check-site.js @@ -1,6 +1,6 @@ /* eslint-disable no-await-in-loop */ /* eslint-disable no-restricted-syntax */ -const fetch = require('node-fetch'); +const fetch = require('isomorphic-fetch'); const { join } = require('path'); const cheerio = require('cheerio'); const glob = require('glob'); diff --git a/scripts/print-changelog.js b/scripts/print-changelog.js index 6065b5d819..4bcc764413 100644 --- a/scripts/print-changelog.js +++ b/scripts/print-changelog.js @@ -3,7 +3,7 @@ const chalk = require('chalk'); const { spawn } = require('child_process'); const jsdom = require('jsdom'); const jQuery = require('jquery'); -const fetch = require('node-fetch'); +const fetch = require('isomorphic-fetch'); const open = require('open'); const fs = require('fs-extra'); const path = require('path');