@thi.ng/router 4.1.49 → 4.1.51

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 (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +6 -6
  3. package/router.js +2 -2
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
10
+ > This is one of 211 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/router",
3
- "version": "4.1.49",
3
+ "version": "4.1.51",
4
4
  "description": "Generic trie-based router with support for wildcards, route param validation/coercion, auth",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,10 +39,10 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.12.8",
43
- "@thi.ng/checks": "^3.7.24",
44
- "@thi.ng/equiv": "^2.1.98",
45
- "@thi.ng/errors": "^2.5.48"
42
+ "@thi.ng/api": "^8.12.10",
43
+ "@thi.ng/checks": "^3.8.0",
44
+ "@thi.ng/equiv": "^2.1.100",
45
+ "@thi.ng/errors": "^2.5.50"
46
46
  },
47
47
  "devDependencies": {
48
48
  "esbuild": "^0.27.0",
@@ -100,5 +100,5 @@
100
100
  ],
101
101
  "year": 2014
102
102
  },
103
- "gitHead": "be6e7657b1e5c54d7d648d1b52888a7297e95a17\n"
103
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
104
104
  }
package/router.js CHANGED
@@ -66,7 +66,7 @@ let Router = class {
66
66
  }
67
67
  }
68
68
  addRoutes(routes) {
69
- for (let r of routes) {
69
+ for (const r of routes) {
70
70
  try {
71
71
  const route = this.augmentRoute(r);
72
72
  this.routes.set(route.match, route);
@@ -207,7 +207,7 @@ let Router = class {
207
207
  return match;
208
208
  }
209
209
  validateRouteParams(params, validators) {
210
- for (let id in validators) {
210
+ for (const id in validators) {
211
211
  if (params[id] !== void 0) {
212
212
  const val = validators[id];
213
213
  if (val.coerce) {