🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@eggjs/path-matching

Package Overview
Dependencies
Maintainers
9
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eggjs/path-matching - npm Package Compare versions

Comparing version
3.0.2-beta.9
to
3.0.2-beta.10
+2
-2
package.json
{
"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": {

@@ -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',