From 5a6d6805504e9b46a517575bb751e72983fb1616 Mon Sep 17 00:00:00 2001 From: "Thierno IB. BARRY" Date: Mon, 19 Sep 2016 16:32:52 +0200 Subject: [PATCH] remove wreck dependences --- package.json | 3 +-- tasks/build/download_node_builds.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4a10c69b207c..7a9f9978ba10 100644 --- a/package.json +++ b/package.json @@ -156,8 +156,7 @@ "validate-npm-package-name": "2.2.2", "webpack": "1.12.15", "webpack-directory-name-as-main": "1.0.0", - "whatwg-fetch": "0.9.0", - "wreck": "6.2.0" + "whatwg-fetch": "0.9.0" }, "devDependencies": { "@elastic/eslint-config-kibana": "0.0.3", diff --git a/tasks/build/download_node_builds.js b/tasks/build/download_node_builds.js index cb74b55cec44..d05c488962fe 100644 --- a/tasks/build/download_node_builds.js +++ b/tasks/build/download_node_builds.js @@ -6,7 +6,7 @@ module.exports = function (grunt) { let { createGunzip } = require('zlib'); let { Extract } = require('tar'); let { rename } = require('fs'); - let wreck = require('wreck'); + let request = require('request'); let platforms = grunt.config.get('platforms'); let activeDownloads = []; @@ -21,7 +21,7 @@ module.exports = function (grunt) { } let resp = await fromNode(cb => { - let req = wreck.request('GET', platform.nodeUrl, null, function (err, resp) { + let req = request.get(platform.nodeUrl, function (err, resp) { if (err) { return cb(err); }