Comparing version 1.2.1 to 1.2.2
@@ -59,3 +59,3 @@ var url = require('url') | ||
if (!route || !opts.root) { | ||
return route.replace(/\/$/, '') | ||
return typeof route === 'string' ? route.replace(/\/$/, '') : route | ||
} | ||
@@ -62,0 +62,0 @@ |
{ | ||
"name": "cccpurge", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Choo Cloudflare Cache Purge – purge all routes served by choo app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7303