@e7w/easy-routes 0.0.4 → 0.0.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.
Files changed (2) hide show
  1. package/dist/router.js +2 -2
  2. package/package.json +1 -1
package/dist/router.js CHANGED
@@ -36,9 +36,9 @@ filePaths.forEach((filePath) => {
36
36
  index: true,
37
37
  loader: hasPage
38
38
  ? async ({ params, request }) => {
39
- await system.init();
39
+ await system.init()?.catch(() => { });
40
40
  const ctx = system.getCtx(params, request, meta.permission);
41
- await meta.loader?.(ctx, meta);
41
+ await meta.loader?.(ctx, meta)?.catch?.(() => { });
42
42
  if (!ctx.signed)
43
43
  return redirect("/login");
44
44
  if (ctx.noPermission)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e7w/easy-routes",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"