Skip to content

Commit

Permalink
refa: rename router prefix to server
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Nov 11, 2023
1 parent 5d3614a commit c8ae36a
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
- [x] @satorijs/core
- [x] @satorijs/element
- [x] @satorijs/satori
- [ ] @satorijs/database
- [x] @satorijs/server
- [x] @satorijs/server-satori
- Ecosystem
- [x] DingTalk (钉钉)
- [x] Discord
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@satorijs/router-proxy",
"name": "@satorijs/server-proxy",
"description": "Proxy plugin for cordis",
"version": "1.0.0",
"main": "lib/index.js",
Expand All @@ -13,7 +13,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/satorijs/satori.git",
"directory": "packages/router-proxy"
"directory": "packages/server-proxy"
},
"bugs": {
"url": "https://github.com/satorijs/satori/issues"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import internal from 'stream'

declare module '@satorijs/core' {
interface Context {
'router.proxy': ProxyService
'server\.proxy': ProxyService
}
}

Expand All @@ -26,7 +26,7 @@ class ProxyService {
}
})

ctx.root.provide('router.proxy', this)
ctx.root.provide('server\.proxy', this)
}
}

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@satorijs/server",
"name": "@satorijs/server-satori",
"description": "Basic API server for Satori protocol",
"version": "2.2.2",
"main": "lib/index.js",
Expand All @@ -21,7 +21,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/satorijs/satori.git",
"directory": "packages/server"
"directory": "packages/server-satori"
},
"bugs": {
"url": "https://github.com/satorijs/satori/issues"
Expand All @@ -38,6 +38,6 @@
"@satorijs/router": "^1.1.2"
},
"peerDependencies": {
"@satorijs/satori": "^3.1.4"
"@satorijs/satori": "^3.1.5"
}
}
File renamed without changes.
File renamed without changes.

0 comments on commit c8ae36a

Please sign in to comment.