@eggjs/path-matching 3.0.2-beta.1 → 3.0.2-beta.10

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/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -27,9 +27,9 @@ const options = {
27
27
  // support regexp
28
28
  ignore: /^\/api/,
29
29
  // support function
30
- ignore: ctx => ctx.path.startsWith('/api'),
30
+ ignore: (ctx) => ctx.path.startsWith('/api'),
31
31
  // support Array
32
- ignore: [ctx => ctx.path.startsWith('/api'), /^\/foo$/, '/bar'],
32
+ ignore: [(ctx) => ctx.path.startsWith('/api'), /^\/foo$/, '/bar'],
33
33
  // support match or ignore
34
34
  match: '/api',
35
35
  // custom path-to-regexp module, default is `path-to-regexp@6`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/path-matching",
3
- "version": "3.0.2-beta.1",
3
+ "version": "3.0.2-beta.10",
4
4
  "description": "match or ignore url path",
5
5
  "keywords": [
6
6
  "ignore",
@@ -43,7 +43,7 @@
43
43
  "@types/node": "^24.10.2",
44
44
  "path-to-regexp-v8": "npm:path-to-regexp@^8.3.0",
45
45
  "typescript": "^5.9.3",
46
- "@eggjs/tsconfig": "3.1.2-beta.1"
46
+ "@eggjs/tsconfig": "3.1.2-beta.10"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=22.18.0"