From 2875bd672e033e918b5254aca41cc22378d78e65 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Thu, 22 Jun 2017 13:32:07 +0200 Subject: [PATCH] Add a polyfill to fix `local configure` in older (<6) Node versions --- CHANGELOG.md | 1 + build/app.js | 2 ++ lib/app.coffee | 2 ++ package.json | 1 + 4 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5937be88..f5a98f74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## Fixed - Ensure to send .pem file contents rather than filename to docker daemon +- Add a polyfill to fix `local configure` in older (<6) Node versions ## [5.11.0] - 2017-06-19 diff --git a/build/app.js b/build/app.js index 8a9382b5..83c1fd0f 100644 --- a/build/app.js +++ b/build/app.js @@ -35,6 +35,8 @@ Raven.setContext({ } }); +require('buffer-v6-polyfill'); + globalTunnel = require('global-tunnel-ng'); settings = require('resin-settings-client'); diff --git a/lib/app.coffee b/lib/app.coffee index 4fba3f71..3a6782d6 100644 --- a/lib/app.coffee +++ b/lib/app.coffee @@ -24,6 +24,8 @@ Raven.config require('./config').sentryDsn, process.exit(1) Raven.setContext(extra: args: process.argv) +require('buffer-v6-polyfill') + # Doing this before requiring any other modules, # including the 'resin-sdk', to prevent any module from reading the http proxy config # before us diff --git a/package.json b/package.json index 1cf1dc6f..9fac84e8 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "babel-register": "^6.16.3", "bash": "0.0.1", "bluebird": "^3.3.3", + "buffer-v6-polyfill": "^1.0.3", "capitano": "^1.7.0", "chalk": "^1.1.3", "coffee-script": "^1.12.6",