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 0.9.16 / 2016-04-01
=================== ===================

9
lib/agent.js

@ -1,4 +1,3 @@
import http2 from 'spdy';
import fetch from 'node-fetch'; import fetch from 'node-fetch';
/** /**
@ -20,10 +19,12 @@ export default class Agent {
} }
_initAgent () { _initAgent () {
this._agent = http2.createAgent({ /*
this._agent = https.createAgent({
host: this._host, host: this._host,
port: 443 port: 443
}).once('error', (err) => this._onError(err)); }).once('error', (err) => this._onError(err));
*/
} }
_onError (err) { _onError (err) {
@ -42,7 +43,7 @@ export default class Agent {
} }
const { body } = opts; const { body } = opts;
opts.agent = this._agent; // opts.agent = this._agent;
if (body && 'object' === typeof body && 'function' !== typeof body.pipe) { if (body && 'object' === typeof body && 'function' !== typeof body.pipe) {
opts.headers['Content-Type'] = 'application/json'; opts.headers['Content-Type'] = 'application/json';
@ -58,6 +59,6 @@ export default class Agent {
close () { close () {
if (this._debug) console.log('> [debug] closing agent'); 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", "name": "now",
"version": "0.9.16", "version": "0.9.17",
"description": "Realtime Deployments for Node.JS apps.", "description": "",
"readme": "",
"main": "./build/lib/index", "main": "./build/lib/index",
"files": [ "files": [
"build" "build"
@ -24,7 +25,6 @@
"progress": "1.1.8", "progress": "1.1.8",
"resumer": "0.0.0", "resumer": "0.0.0",
"retry": "0.9.0", "retry": "0.9.0",
"spdy": "3.2.3",
"split-array": "1.0.1", "split-array": "1.0.1",
"minimist": "1.2.0", "minimist": "1.2.0",
"ansi-escapes": "1.3.0", "ansi-escapes": "1.3.0",

Loading…
Cancel
Save