cloudflare
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -382,3 +382,3 @@ var https = require('https'); | ||
cf.whitelistIp = function whitelistIp(ip, fn) { | ||
this._request("wl", {}, function (err, res) { | ||
this._request("wl", { key: ip }, function (err, res) { | ||
fn(err, res); | ||
@@ -400,3 +400,3 @@ }); | ||
cf.banIp = function banIp(ip, fn) { | ||
this._request("ban", {}, function (err, res) { | ||
this._request("ban", { key: ip }, function (err, res) { | ||
fn(err, res); | ||
@@ -418,3 +418,3 @@ }); | ||
cf.unlistIp = function unlistIp(ip, fn) { | ||
this._request("nul", {}, function (err, res) { | ||
this._request("nul", { key: ip }, function (err, res) { | ||
fn(err, res); | ||
@@ -421,0 +421,0 @@ }); |
{ | ||
"name": "cloudflare", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "CloudFlare API client", | ||
@@ -5,0 +5,0 @@ "main": "lib/cloudflare.js", |
@@ -17,3 +17,3 @@ var should = require('should'); | ||
data.should.be.a('object').and.include({ | ||
data.should.be.an.instanceof(Object).and.include({ | ||
tkn: CF_TOKEN, | ||
@@ -28,3 +28,3 @@ email: CF_EMAIL, | ||
data.should.be.a('object').and.include({ | ||
data.should.be.an.instanceof(Object).and.include({ | ||
tkn: CF_TOKEN, | ||
@@ -31,0 +31,0 @@ email: CF_EMAIL, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
313147
3