cloudflare
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -18,4 +18,3 @@ 'use strict'; | ||
email: auth && auth.email, | ||
key: auth && auth.key, | ||
h2: true | ||
key: auth && auth.key | ||
}); | ||
@@ -22,0 +21,0 @@ |
@@ -5,16 +5,6 @@ 'use strict'; | ||
var got = require('got'); | ||
var spdy = require('spdy'); | ||
module.exports = prototypal({ | ||
constructor: function (options) { | ||
this.agent = options.h2 ? spdy.createAgent({ | ||
host: 'api.cloudflare.com', | ||
port: 443, | ||
protocol: ['h2'] | ||
}) : undefined; | ||
}, | ||
got: function (uri, options) { | ||
options = assign({}, options, { | ||
agent: this.agent | ||
}); | ||
options = assign({}, options); | ||
@@ -21,0 +11,0 @@ return got(uri, options); |
{ | ||
"name": "cloudflare", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "CloudFlare API client", | ||
@@ -14,3 +14,2 @@ "author": "Terin Stock <terinjokes@gmail.com>", | ||
"object-assign": "^4.1.0", | ||
"spdy": "^3.4.7", | ||
"url-join": "^1.1.0", | ||
@@ -17,0 +16,0 @@ "url-pattern": "^1.0.3" |
@@ -12,3 +12,2 @@ # Cloudflare Node.js bindings | ||
leveraged for async/await and generator support. | ||
* Effortless connections over HTTP/2. | ||
* Automatic handling of Gzip/Deflate compression. | ||
@@ -15,0 +14,0 @@ |
6
24304
724
74
- Removedspdy@^3.4.7
- Removedcore-util-is@1.0.3(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddetect-node@2.1.0(transitive)
- Removedhandle-thing@1.2.5(transitive)
- Removedhpack.js@2.1.6(transitive)
- Removedhttp-deceiver@1.2.7(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedminimalistic-assert@1.0.1(transitive)
- Removedms@2.0.0(transitive)
- Removedobuf@1.1.2(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedselect-hose@2.0.0(transitive)
- Removedspdy@3.4.7(transitive)
- Removedspdy-transport@2.1.1(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwbuf@1.7.3(transitive)