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

grunt-fastly

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-fastly - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "grunt-fastly",
"description": "A Grunt plugin to purge cache from Fastly",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/coen-hyde/grunt-fastly",

@@ -6,0 +6,0 @@ "author": {

# grunt-fastly
> A Grunt plugin to purge cache from Fastly
A Grunt plugin to purge cache from Fastly
[![NPM](https://nodei.co/npm/grunt-fastly.png)](https://nodei.co/npm/grunt-fastly/)
## Getting Started

@@ -6,0 +8,0 @@ This plugin requires Grunt `~0.4.1`

@@ -12,3 +12,4 @@ /*

var fastly = require('fastly')
, async = require('async');
, async = require('async')
, url = require('url');

@@ -59,5 +60,7 @@ module.exports = function(grunt) {

async.eachLimit(this.data.urls, options.concurrentPurges, function(url, next) {
grunt.log.write('Purging "'+options.host+'/'+url+'"...');
fastly.purge(options.host, url, function(err) {
async.eachLimit(this.data.urls, options.concurrentPurges, function(uriPath, next) {
var uri = url.format({host: options.host, pathname: uriPath}).substr(2);
grunt.log.write('Purging "'+uri+'"...');
fastly.purge(options.host, uriPath, function(err) {
if (err) grunt.log.error();

@@ -64,0 +67,0 @@ else grunt.log.ok();

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