cloudflare
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
949
35871