cafe-utility 27.16.0 → 27.16.2

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/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -219,7 +219,7 @@ function deleteDeep(n, e) {
219
219
  r = afterLast(e, '.')
220
220
  if (!t || !r) return
221
221
  const o = getDeep(n, t)
222
- delete o[r]
222
+ o && delete o[r]
223
223
  }
224
224
  function replaceDeep(n, e, t) {
225
225
  const r = getDeep(n, e)
@@ -3105,7 +3105,7 @@ class TrieRouter {
3105
3105
  u = this.forks.get(i)
3106
3106
  if (u) return u.handle(e.slice(1), t, r, o)
3107
3107
  const s = this.forks.get(':')
3108
- if (s) return s.variableName && o.set(s.variableName, i), s.handle(e.slice(1), t, r, o)
3108
+ if (s) return s.variableName && o.set(s.variableName, decodeURIComponent(i)), s.handle(e.slice(1), t, r, o)
3109
3109
  const c = this.forks.get('*')
3110
3110
  return c ? (o.set('wildcard', e.join('/')), c.handler ? (await c.handler(t, r, o), !0) : !1) : !1
3111
3111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cafe-utility",
3
- "version": "27.16.0",
3
+ "version": "27.16.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "exports": {