@kevisual/router 0.0.6-alpha-4 → 0.0.6-alpha-5

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.
@@ -5649,7 +5649,7 @@ class QueryRouter {
5649
5649
  const has = this.routes.find((r) => r.path === route.path && r.key === route.key);
5650
5650
  if (has) {
5651
5651
  // remove the old route
5652
- this.routes = this.routes.filter((r) => r.path === route.path && r.key === route.key);
5652
+ this.routes = this.routes.filter((r) => r.id !== has.id);
5653
5653
  }
5654
5654
  this.routes.push(route);
5655
5655
  }
package/dist/router.js CHANGED
@@ -5669,7 +5669,7 @@ class QueryRouter {
5669
5669
  const has = this.routes.find((r) => r.path === route.path && r.key === route.key);
5670
5670
  if (has) {
5671
5671
  // remove the old route
5672
- this.routes = this.routes.filter((r) => r.path === route.path && r.key === route.key);
5672
+ this.routes = this.routes.filter((r) => r.id !== has.id);
5673
5673
  }
5674
5674
  this.routes.push(route);
5675
5675
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@kevisual/router",
4
- "version": "0.0.6-alpha-4",
4
+ "version": "0.0.6-alpha-5",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",