@eggjs/router 3.0.0 → 3.0.1
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.
- package/README.md +6 -0
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.js +2 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eggjs/router
|
|
2
2
|
|
|
3
|
+
[](https://npmjs.org/package/@eggjs/router)
|
|
4
|
+
[](https://npmjs.org/package/@eggjs/router)
|
|
5
|
+
[](https://github.com/eggjs/egg-router/actions/workflows/nodejs.yml)
|
|
6
|
+
[](https://codecov.io/gh/eggjs/egg-router)
|
|
7
|
+
[](https://snyk.io/test/npm/@eggjs/router)
|
|
8
|
+
|
|
3
9
|
Router core component for [Egg.js](https://github.com/eggjs).
|
|
4
10
|
|
|
5
11
|
> **This repository is a fork of [koa-router](https://github.com/alexmingoia/koa-router).** with some additional features.
|
package/dist/commonjs/index.d.ts
CHANGED
package/dist/commonjs/index.js
CHANGED
|
@@ -16,8 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.KoaRouter = void 0;
|
|
18
18
|
const Router_js_1 = require("./Router.js");
|
|
19
|
+
__exportStar(require("./Layer.js"), exports);
|
|
19
20
|
__exportStar(require("./Router.js"), exports);
|
|
20
21
|
__exportStar(require("./EggRouter.js"), exports);
|
|
21
22
|
exports.KoaRouter = Router_js_1.Router;
|
|
22
23
|
exports.default = Router_js_1.Router;
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwyQ0FBcUM7QUFHckMsNkNBQTJCO0FBQzNCLDhDQUE0QjtBQUM1QixpREFBK0I7QUFFbEIsUUFBQSxTQUFTLEdBQUcsa0JBQU0sQ0FBQztBQUNoQyxrQkFBZSxrQkFBTSxDQUFDIn0=
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Router } from './Router.js';
|
|
2
|
+
export * from './Layer.js';
|
|
2
3
|
export * from './Router.js';
|
|
3
4
|
export * from './EggRouter.js';
|
|
4
5
|
export const KoaRouter = Router;
|
|
5
6
|
export default Router;
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUdyQyxjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGdCQUFnQixDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLFNBQVMsR0FBRyxNQUFNLENBQUM7QUFDaEMsZUFBZSxNQUFNLENBQUMifQ==
|
package/package.json
CHANGED