@koordinates/xstate-tree 5.1.0-next.5 → 5.1.0-next.6

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.
@@ -32,7 +32,7 @@ function matchRoute(routes, basePath, path, search) {
32
32
  return { type: "no-matches" };
33
33
  }
34
34
  else if (matchingRoute instanceof Error) {
35
- return { type: "match-error" };
35
+ return { type: "match-error", error: matchingRoute };
36
36
  }
37
37
  return { type: "matched", route: matchingRoute, event: event };
38
38
  }
@@ -379,6 +379,7 @@ declare type Return<TRoutes extends Route<any, any, any, any>[]> = {
379
379
  type: "no-matches";
380
380
  } | {
381
381
  type: "match-error";
382
+ error: unknown;
382
383
  };
383
384
 
384
385
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@koordinates/xstate-tree",
3
3
  "main": "lib/index.js",
4
4
  "types": "lib/xstate-tree.d.ts",
5
- "version": "5.1.0-next.5",
5
+ "version": "5.1.0-next.6",
6
6
  "license": "MIT",
7
7
  "description": "Build UIs with Actors using xstate and React",
8
8
  "keywords": [