File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ import { Elysia } from 'elysia'
2
2
import cors from '../src/index'
3
3
4
4
const app = new Elysia ( )
5
- . use ( cors ( {
6
- origin : / \* .s a l t y a o m .c o m $ /
7
- } ) )
5
+ . use (
6
+ cors ( {
7
+ origin : / \* .s a l t y a o m .c o m $ /
8
+ } )
9
+ )
8
10
. get ( '/' , ( ) => 'Hi' )
9
11
. listen ( 8080 )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @elysiajs/cors" ,
3
- "version" : " 0.1 .0" ,
3
+ "version" : " 0.3.0-beta .0" ,
4
4
"description" : " Plugin for Elysia that for Cross Origin Requests (CORs)" ,
5
5
"author" : {
6
6
"name" : " saltyAom" ,
33
33
},
34
34
"devDependencies" : {
35
35
"@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 " ,
38
38
"eslint" : " ^8.26.0" ,
39
39
"rimraf" : " ^3.0.2" ,
40
- "typescript" : " ^4.8 .4"
40
+ "typescript" : " ^4.9 .4"
41
41
},
42
42
"peerDependencies" : {
43
- "elysia" : " >= 0.1 .0-rc.5 "
43
+ "elysia" : " >= 0.3 .0-beta.2 "
44
44
}
45
45
}
You can’t perform that action at this time.
0 commit comments