Skip to content

Commit

Permalink
refactor: replace request-promise-native with util.promisify (#5572)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeneser committed Jun 15, 2020
1 parent 78374b7 commit a41cac2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@vue/cli-shared-utils/lib/request.js
@@ -1,7 +1,7 @@
exports.request = {
get (uri, opts) {
// lazy require
const request = require('request-promise-native')
const request = require('util').promisify(require('request'))
const reqOpts = {
method: 'GET',
timeout: 30000,
Expand Down
1 change: 0 additions & 1 deletion packages/@vue/cli-shared-utils/package.json
Expand Up @@ -30,7 +30,6 @@
"ora": "^3.4.0",
"read-pkg": "^5.1.1",
"request": "^2.88.2",
"request-promise-native": "^1.0.8",
"semver": "^6.1.0",
"strip-ansi": "^6.0.0"
},
Expand Down

0 comments on commit a41cac2

Please sign in to comment.