Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "cccpurge", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Choo Cloudflare Cache Purge – purge all routes served by choo app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ # cccpurge | ||
ccpurge(require('./index'), { | ||
cccpurge(require('./index'), { | ||
root: 'https://www.my-blog.com', | ||
@@ -23,3 +23,3 @@ email: 'foo@my-blog.com', | ||
key: '0046ffew5f560675hny5765r7gre6005reg05' | ||
}, done) | ||
}, console.log) | ||
``` | ||
@@ -44,3 +44,3 @@ | ||
ccpurge(app, opts, done) | ||
cccpurge(app, opts, done) | ||
@@ -54,3 +54,3 @@ function done (err, response) { | ||
function resolve (route, done) { | ||
// only pother purging posts | ||
// only bother purging posts | ||
if (route !== '/posts/:post') return done(null) | ||
@@ -69,4 +69,2 @@ | ||
## Options | ||
[choo]: https://github.com/choojs/choo | ||
@@ -73,0 +71,0 @@ [prismic]: https://prismic.io |
6433
75