Browse Source

Release 0.9.17

master 0.9.17
Guillermo Rauch 9 years ago
parent
commit
a4679cfb1b
  1. 5
      History.md
  2. 9
      lib/agent.js
  3. 6
      package.json

5
History.md

@ -1,4 +1,9 @@
0.9.17 / 2016-04-06
===================
* remove spdy temporarily [@rauchg]
0.9.16 / 2016-04-01
===================

9
lib/agent.js

@ -1,4 +1,3 @@
import http2 from 'spdy';
import fetch from 'node-fetch';
/**
@ -20,10 +19,12 @@ export default class Agent {
}
_initAgent () {
this._agent = http2.createAgent({
/*
this._agent = https.createAgent({
host: this._host,
port: 443
}).once('error', (err) => this._onError(err));
*/
}
_onError (err) {
@ -42,7 +43,7 @@ export default class Agent {
}
const { body } = opts;
opts.agent = this._agent;
// opts.agent = this._agent;
if (body && 'object' === typeof body && 'function' !== typeof body.pipe) {
opts.headers['Content-Type'] = 'application/json';
@ -58,6 +59,6 @@ export default class Agent {
close () {
if (this._debug) console.log('> [debug] closing agent');
return this._agent.close();
// return this._agent.close();
}
}

6
package.json

@ -1,7 +1,8 @@
{
"name": "now",
"version": "0.9.16",
"description": "Realtime Deployments for Node.JS apps.",
"version": "0.9.17",
"description": "",
"readme": "",
"main": "./build/lib/index",
"files": [
"build"
@ -24,7 +25,6 @@
"progress": "1.1.8",
"resumer": "0.0.0",
"retry": "0.9.0",
"spdy": "3.2.3",
"split-array": "1.0.1",
"minimist": "1.2.0",
"ansi-escapes": "1.3.0",

Loading…
Cancel
Save