@eggjs/path-matching 3.0.0-beta.20 → 3.0.0-beta.28

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 +10 -12
  2. package/package.json +8 -10
package/README.md CHANGED
@@ -1,28 +1,26 @@
1
- # egg-path-matching
1
+ # @eggjs/path-matching
2
2
 
3
3
  [![NPM version][npm-image]][npm-url]
4
- [![CI](https://github.com/eggjs/egg-path-matching/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-path-matching/actions/workflows/nodejs.yml)
5
- [![Test coverage](https://img.shields.io/codecov/c/github/eggjs/egg-path-matching.svg?style=flat-square)](https://codecov.io/gh/eggjs/egg-path-matching)
6
4
  [![Known Vulnerabilities][snyk-image]][snyk-url]
7
5
  [![npm download][download-image]][download-url]
8
6
 
9
- [npm-image]: https://img.shields.io/npm/v/egg-path-matching.svg?style=flat-square
10
- [npm-url]: https://npmjs.org/package/egg-path-matching
11
- [snyk-image]: https://snyk.io/test/npm/egg-path-matching/badge.svg?style=flat-square
12
- [snyk-url]: https://snyk.io/test/npm/egg-path-matching
13
- [download-image]: https://img.shields.io/npm/dm/egg-path-matching.svg?style=flat-square
14
- [download-url]: https://npmjs.org/package/egg-path-matching
7
+ [npm-image]: https://img.shields.io/npm/v/@eggjs/path-matching.svg?style=flat-square
8
+ [npm-url]: https://npmjs.org/package/@eggjs/path-matching
9
+ [snyk-image]: https://snyk.io/test/npm/@eggjs/path-matching/badge.svg?style=flat-square
10
+ [snyk-url]: https://snyk.io/test/npm/@eggjs/path-matching/badge.svg?style=flat-square
11
+ [download-image]: https://img.shields.io/npm/dm/@eggjs/path-matching.svg?style=flat-square
12
+ [download-url]: https://npmjs.org/package/@eggjs/path-matching
15
13
 
16
14
  ## Installation
17
15
 
18
16
  ```bash
19
- npm install egg-path-matching
17
+ npm install @eggjs/path-matching
20
18
  ```
21
19
 
22
20
  ## Usage
23
21
 
24
22
  ```ts
25
- import { pathMatching } from 'egg-path-matching';
23
+ import { pathMatching } from '@eggjs/path-matching';
26
24
 
27
25
  const options = {
28
26
  ignore: '/api', // string will use parsed by path-to-regexp
@@ -59,6 +57,6 @@ and if neither `ignore` nor `match` presented, the new function will always retu
59
57
 
60
58
  ## Contributors
61
59
 
62
- [![Contributors](https://contrib.rocks/image?repo=eggjs/egg-path-matching)](https://github.com/eggjs/egg-path-matching/graphs/contributors)
60
+ [![Contributors](https://contrib.rocks/image?repo=eggjs/egg)](https://github.com/eggjs/egg/graphs/contributors)
63
61
 
64
62
  Made with [contributors-img](https://contrib.rocks).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/path-matching",
3
- "version": "3.0.0-beta.20",
3
+ "version": "3.0.0-beta.28",
4
4
  "description": "match or ignore url path",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,30 +34,28 @@
34
34
  "url": "http://deadhorse.me"
35
35
  },
36
36
  "engines": {
37
- "node": ">= 22.18.0"
37
+ "node": ">=22.18.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "path-to-regexp": "^6.3.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/node": "^24.6.2",
44
- "oxlint": "^1.19.0",
43
+ "@types/node": "^24.7.2",
44
+ "oxlint": "^1.23.0",
45
45
  "path-to-regexp-v8": "npm:path-to-regexp@^8.3.0",
46
46
  "rimraf": "^6.0.1",
47
- "tsdown": "^0.15.4",
47
+ "tsdown": "^0.15.6",
48
48
  "typescript": "^5.9.3",
49
- "vitest": "4.0.0-beta.17",
50
- "@eggjs/tsconfig": "3.1.0-beta.27"
49
+ "vitest": "4.0.0-beta.18",
50
+ "@eggjs/tsconfig": "3.1.0-beta.28"
51
51
  },
52
52
  "main": "./dist/index.js",
53
53
  "module": "./dist/index.js",
54
54
  "types": "./dist/index.d.ts",
55
55
  "scripts": {
56
56
  "build": "tsdown",
57
- "clean": "rimraf dist",
58
57
  "typecheck": "tsc --noEmit",
59
58
  "lint": "oxlint --type-aware",
60
- "lint:fix": "npm run lint -- --fix",
61
- "test": "npm run lint:fix && vitest"
59
+ "test": "vitest run"
62
60
  }
63
61
  }