Skip to content

Commit

Permalink
Downgrade mock-fs and install polyfill for Promise.allSettled (to sup…
Browse files Browse the repository at this point in the history
…port Node v10)
  • Loading branch information
webpro committed Apr 9, 2022
1 parent e8a57cc commit 56f1ec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/plugin/gitlab/GitLab.js
Expand Up @@ -4,6 +4,7 @@ const got = require('got');
const globby = require('globby');
const FormData = require('form-data');
const _ = require('lodash');
const allSettled = require('promise.allsettled');
const Release = require('../GitRelease');
const { format, e } = require('../../util');
const prompts = require('./prompts');
Expand Down Expand Up @@ -148,7 +149,7 @@ class GitLab extends Release {
});
});
try {
await Promise.allSettled(requests).then(results => {
await allSettled(requests).then(results => {
for (const result of results) {
if (result.status === 'rejected') {
throw e('Missing one or more milestones in GitLab. Creating a GitLab release will fail.', docs);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -76,6 +76,7 @@
"ora": "5.4.1",
"os-name": "4.0.1",
"parse-json": "5.2.0",
"promise.allsettled": "1.0.5",
"semver": "7.3.5",
"shelljs": "0.8.5",
"update-notifier": "5.1.0",
Expand All @@ -94,7 +95,7 @@
"eslint-plugin-import": "2.25.4",
"eslint-plugin-prettier": "4.0.0",
"markdown-toc": "1.2.0",
"mock-fs": "5.1.2",
"mock-fs": "4.14.0",
"mock-stdio": "1.0.3",
"nock": "13.2.4",
"node-fetch": "2.6.7",
Expand Down

0 comments on commit 56f1ec7

Please sign in to comment.