Merge pull request #571 from resin-io/566-fix-v4-compat

Add a polyfill to fix local configure in older (<6) Node versions
This commit is contained in:
Tim Perry 2017-06-22 18:12:39 +02:00 committed by GitHub
commit 7fc806c75f
4 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -35,6 +35,8 @@ Raven.setContext({
}
});
require('buffer-v6-polyfill');
globalTunnel = require('global-tunnel-ng');
settings = require('resin-settings-client');

View File

@ -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

View File

@ -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",