Skip to content

Commit 539c14e

Browse files
committed
fix: update Resora plugin version and add clear-router plugin for Express and H3
1 parent 1c18977 commit 539c14e

File tree

5 files changed

+38
-24
lines changed

5 files changed

+38
-24
lines changed

express/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@kanun-hq/plugin-file": "^0.1.7",
2525
"@prisma/adapter-pg": "^7.5.0",
2626
"@prisma/client": "^7.5.0",
27+
"@resora/plugin-clear-router": "^0.1.0",
2728
"argon2": "^0.44.0",
2829
"arkormx": "^1.3.0",
2930
"chalk": "^5.6.2",
@@ -37,7 +38,7 @@
3738
"kanun": "^1.0.10",
3839
"multer": "^2.1.1",
3940
"pg": "^8.18.0",
40-
"resora": "^0.2.18"
41+
"resora": "^1.0.0"
4142
},
4243
"devDependencies": {
4344
"@eslint/js": "^10.0.1",

express/src/core/router.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { ArkstackRouteListOptions } from '@arkstack/contract'
22
import { Router as ClearRouter } from 'clear-router/express'
33
import { RequestError } from './utils/errors'
4+
import { clearRouterExpressPlugin } from '@resora/plugin-clear-router'
45
import express from 'express'
56
import { join } from 'node:path'
67
import { pathToFileURL } from 'node:url'
8+
import { registerPlugin } from 'resora'
9+
10+
registerPlugin(clearRouterExpressPlugin)
711

812
export class Router extends ClearRouter {
913
static async bind () {

h3/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@kanun-hq/plugin-file": "^0.1.7",
2626
"@prisma/adapter-pg": "^7.5.0",
2727
"@prisma/client": "^7.5.0",
28+
"@resora/plugin-clear-router": "^0.1.0",
2829
"argon2": "^0.44.0",
2930
"arkormx": "^1.3.0",
3031
"chalk": "^5.6.2",
@@ -36,7 +37,7 @@
3637
"h3": "2.0.1-rc.16",
3738
"kanun": "^1.0.10",
3839
"pg": "^8.18.0",
39-
"resora": "^0.2.17"
40+
"resora": "^1.0.0"
4041
},
4142
"devDependencies": {
4243
"@eslint/js": "^10.0.1",

h3/src/core/router.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import { ArkstackRouteListOptions } from '@arkstack/contract'
22
import { Router as ClearRouter } from 'clear-router/h3'
33
import { H3 } from 'h3'
4+
import { clearRouterH3Plugin } from '@resora/plugin-clear-router'
45
import { join } from 'node:path'
56
import { pathToFileURL } from 'node:url'
7+
import { registerPlugin } from 'resora'
8+
9+
registerPlugin(clearRouterH3Plugin)
610

711
export class Router extends ClearRouter {
812
static async bind (app: H3) {

pnpm-lock.yaml

Lines changed: 26 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)