New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cloudflare

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflare - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

3

index.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc