@eggjs/path-matching
Advanced tools
+2
-2
| { | ||
| "name": "@eggjs/path-matching", | ||
| "version": "3.0.2-beta.9", | ||
| "version": "3.0.2-beta.10", | ||
| "description": "match or ignore url path", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
| "typescript": "^5.9.3", | ||
| "@eggjs/tsconfig": "3.1.2-beta.9" | ||
| "@eggjs/tsconfig": "3.1.2-beta.10" | ||
| }, | ||
@@ -49,0 +49,0 @@ "engines": { |
+2
-2
@@ -30,5 +30,5 @@ # @eggjs/path-matching | ||
| // support function | ||
| ignore: ctx => ctx.path.startsWith('/api'), | ||
| ignore: (ctx) => ctx.path.startsWith('/api'), | ||
| // support Array | ||
| ignore: [ctx => ctx.path.startsWith('/api'), /^\/foo$/, '/bar'], | ||
| ignore: [(ctx) => ctx.path.startsWith('/api'), /^\/foo$/, '/bar'], | ||
| // support match or ignore | ||
@@ -35,0 +35,0 @@ match: '/api', |
6420
0.09%