Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudflare

Package Overview
Dependencies
Maintainers
1
Versions
47
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 1.0.3 to 1.0.4

2

lib/purge.js

@@ -12,3 +12,3 @@ 'use strict';

options.method = 'DELETE';
options.query = query;
options.body = JSON.stringify(query);

@@ -15,0 +15,0 @@ return this._got(uri, options).then(function (response) {

@@ -5,3 +5,3 @@ {

"author": "Terin Stock <terinjokes@gmail.com>",
"version": "1.0.3",
"version": "1.0.4",
"bugs": {

@@ -8,0 +8,0 @@ "url": "https://github.com/cloudflare/node-cloudflare/issues"

@@ -17,4 +17,5 @@ import test from 'ava';

nock('https://api.cloudflare.com')
.delete('/client/v4/zones/1/purge_cache')
.query({purge_everything: 'true'}) // eslint-disable-line camelcase
.delete('/client/v4/zones/1/purge_cache', {
purge_everything: true // eslint-disable-line camelcase
})
.reply(200, {

@@ -32,4 +33,5 @@ success: true

nock('https://api.cloudflare.com')
.delete('/client/v4/zones/1/purge_cache')
.query({purge_everything: 'true'}) // eslint-disable-line camelcase
.delete('/client/v4/zones/1/purge_cache', {
purge_everything: true // eslint-disable-line camelcase
})
.reply(200, {

@@ -46,4 +48,7 @@ success: true

nock('https://api.cloudflare.com')
.delete('/client/v4/zones/1/purge_cache')
.query({files: 'https://example.com/purge_url'}) // eslint-disable-line camelcase
.delete('/client/v4/zones/1/purge_cache', {
files: [
'https://example.com/purge_url'
]
})
.reply(200, {

@@ -63,4 +68,7 @@ success: true

nock('https://api.cloudflare.com')
.delete('/client/v4/zones/1/purge_cache')
.query({files: 'https://example.com/purge_url'}) // eslint-disable-line camelcase
.delete('/client/v4/zones/1/purge_cache', {
files: [
'https://example.com/purge_url'
]
})
.reply(200, {

@@ -67,0 +75,0 @@ success: true

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