Comparing version 0.1.1 to 0.1.2
@@ -50,4 +50,9 @@ /** | ||
Fastly.prototype.purgeAll = function (service, callback) { | ||
var url = encodeURIComponent(service) + '/purge_all'; | ||
this.request('POST', url, callback); | ||
}; | ||
Fastly.prototype.stats = function (service, callback) { | ||
var url = encodeURIComponent(serviceId) + '/stats/summary'; | ||
var url = encodeURIComponent(service) + '/stats/summary'; | ||
this.request('GET', url, callback); | ||
@@ -54,0 +59,0 @@ }; |
@@ -7,3 +7,3 @@ { | ||
"keywords": "fastly, api, client", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/thisandagain/fastly", | ||
@@ -10,0 +10,0 @@ "repository": { |
@@ -29,6 +29,5 @@ /** | ||
t.type(fastly.purge, 'function', 'method should be a function'); | ||
t.type(fastly.backends, 'function', 'method should be a function'); | ||
t.type(fastly.backend, 'function', 'method should be a function'); | ||
t.type(fastly.purgeAll, 'function', 'method should be a function'); | ||
t.type(fastly.stats, 'function', 'method should be a function'); | ||
t.end(); | ||
}); |
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
8195
195