Skip to content

Commit 63e28c3

Browse files
committed
🎉 feat: update to elysia 0.3
1 parent 1cb0ec2 commit 63e28c3

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

bun.lockb

183 Bytes
Binary file not shown.

example/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import { Elysia } from 'elysia'
22
import cors from '../src/index'
33

44
const app = new Elysia()
5-
.use(cors({
6-
origin: /\*.saltyaom.com$/
7-
}))
5+
.use(
6+
cors({
7+
origin: /\*.saltyaom.com$/
8+
})
9+
)
810
.get('/', () => 'Hi')
911
.listen(8080)

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elysiajs/cors",
3-
"version": "0.1.0",
3+
"version": "0.3.0-beta.0",
44
"description": "Plugin for Elysia that for Cross Origin Requests (CORs)",
55
"author": {
66
"name": "saltyAom",
@@ -33,13 +33,13 @@
3333
},
3434
"devDependencies": {
3535
"@types/node": "^18.11.7",
36-
"bun-types": "^0.2.2",
37-
"elysia": "^0.1.0-rc.5",
36+
"bun-types": "^0.5.7",
37+
"elysia": "^0.3.0-beta.2",
3838
"eslint": "^8.26.0",
3939
"rimraf": "^3.0.2",
40-
"typescript": "^4.8.4"
40+
"typescript": "^4.9.4"
4141
},
4242
"peerDependencies": {
43-
"elysia": ">= 0.1.0-rc.5"
43+
"elysia": ">= 0.3.0-beta.2"
4444
}
4545
}

0 commit comments

Comments
 (0)