@momsfriendlydevco/cowboy 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/cowboy.js +3 -1
  2. package/package.json +1 -1
package/lib/cowboy.js CHANGED
@@ -29,7 +29,9 @@ export class Cowboy {
29
29
  settings = {
30
30
  patchAxios: true,
31
31
  pathTidy(path) {
32
- return path.replace(/^\/api\/\w+/, '/');
32
+ return path
33
+ .replace(/^\/api\/\w+/, '/')
34
+ .replace(/^\/+/, '/') // Trim excessive forward slashes
33
35
  },
34
36
  };
35
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momsfriendlydevco/cowboy",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Wrapper around Cloudflare Wrangler to provide a more Express-like experience",
5
5
  "scripts": {
6
6
  "lint": "eslint ."