@thi.ng/router 3.2.15 → 3.2.16
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/CHANGELOG.md +1 -1
- package/README.md +7 -10
- package/api.d.ts +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/router)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -21,7 +21,7 @@ This project is part of the
|
|
|
21
21
|
|
|
22
22
|
## About
|
|
23
23
|
|
|
24
|
-
Generic router for browser & non-browser based applications
|
|
24
|
+
Generic router for browser & non-browser based applications
|
|
25
25
|
|
|
26
26
|
- Declarative route definitions
|
|
27
27
|
- Parametric routes, each param with optional value coercion &
|
|
@@ -63,11 +63,8 @@ ES module import:
|
|
|
63
63
|
|
|
64
64
|
For Node.js REPL:
|
|
65
65
|
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
node --experimental-repl-await
|
|
69
|
-
|
|
70
|
-
> const router = await import("@thi.ng/router");
|
|
66
|
+
```js
|
|
67
|
+
const router = await import("@thi.ng/router");
|
|
71
68
|
```
|
|
72
69
|
|
|
73
70
|
Package sizes (brotli'd, pre-treeshake): ESM: 1.38 KB
|
|
@@ -187,7 +184,7 @@ router.start();
|
|
|
187
184
|
|
|
188
185
|
## Authors
|
|
189
186
|
|
|
190
|
-
Karsten Schmidt
|
|
187
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
191
188
|
|
|
192
189
|
If this project contributes to an academic publication, please cite it as:
|
|
193
190
|
|
|
@@ -202,4 +199,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
202
199
|
|
|
203
200
|
## License
|
|
204
201
|
|
|
205
|
-
© 2014 - 2022 Karsten Schmidt // Apache
|
|
202
|
+
© 2014 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { Fn, IID, IObjectOf } from "@thi.ng/api";
|
|
|
7
7
|
* other routes can be matched, the router will eventually return the configured
|
|
8
8
|
* default fallback route (see {@link RouterConfig.defaultRouteID}).
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type RouteAuthenticator = (route: Route, curr: string[], params: any) => RouteMatch;
|
|
11
11
|
/**
|
|
12
12
|
* Route validator subspecs are optional and used to coerce and/or validate
|
|
13
13
|
* individual route parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/router",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.16",
|
|
4
4
|
"description": "Generic router for browser & non-browser based applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/equiv": "^2.1.
|
|
40
|
-
"@thi.ng/errors": "^2.2.
|
|
37
|
+
"@thi.ng/api": "^8.6.0",
|
|
38
|
+
"@thi.ng/checks": "^3.3.5",
|
|
39
|
+
"@thi.ng/equiv": "^2.1.15",
|
|
40
|
+
"@thi.ng/errors": "^2.2.6",
|
|
41
41
|
"tslib": "^2.4.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.33.
|
|
45
|
-
"@thi.ng/testament": "^0.3.
|
|
44
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
45
|
+
"@thi.ng/testament": "^0.3.7",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"tools": "^0.0.1",
|
|
48
|
-
"typedoc": "^0.23.
|
|
49
|
-
"typescript": "^4.
|
|
48
|
+
"typedoc": "^0.23.22",
|
|
49
|
+
"typescript": "^4.9.4"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"browser",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
],
|
|
92
92
|
"year": 2014
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
95
95
|
}
|