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

fastly

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastly - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

lib/index.js

@@ -50,4 +50,4 @@ /**

Fastly.prototype.stats = function (service, type, callback) {
var url = encodeURIComponent(serviceId) + '/stats/' + type;
Fastly.prototype.stats = function (service, callback) {
var url = encodeURIComponent(serviceId) + '/stats/summary';
this.request('GET', url, callback);

@@ -54,0 +54,0 @@ };

@@ -7,3 +7,3 @@ {

"keywords": "fastly, api, client",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/thisandagain/fastly",

@@ -10,0 +10,0 @@ "repository": {

@@ -16,3 +16,3 @@ ## fastly

fastly.authenticate('yourapikey');
fastly.purge('myhost.com', '/cats', function (err, obj) {
fastly.purge('realtimecats.com', '/cats', function (err, obj) {
if (err) {

@@ -26,2 +26,21 @@ console.dir(err); // Oh no!

### Helper Methods
<table width="100%">
<tr>
<th width="20%" valign="top">Method</td>
<th width="75%" valign="top">Example</td>
<th width="5%" valign="top"></td>
</tr>
<tr>
<td valign="top">purge</td>
<td valign="top"><pre lang="javascript"><code>fastly.purge('host.com', '/index.html', callback);</code></pre></td>
<td valign="top"><a href="http://www.fastly.com/docs/api#purge">Link</a></td>
</tr>
<tr>
<td valign="top">stats</td>
<td valign="top"><pre lang="javascript"><code>fastly.stats('myServiceId', callback);</code></pre></td>
<td valign="top"><a href="http://www.fastly.com/docs/api#stats">Link</a></td>
</tr>
</table>
### Testing

@@ -28,0 +47,0 @@ ```bash

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