Skip to content

Commit

Permalink
🎉 feat: full adapter?
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Oct 15, 2024
1 parent df40e53 commit c73c461
Show file tree
Hide file tree
Showing 9 changed files with 820 additions and 346 deletions.
9 changes: 5 additions & 4 deletions example/a.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Elysia } from '../src'
import { NodeAdapter } from '../src/adapter/node'

new Elysia({ adapter: NodeAdapter })
.get('/', ({ cookie: { a, b } }) => {
a.value = 'hi'
b.value = 'hi'
import { createServer } from 'node:http'

const app = new Elysia({ adapter: NodeAdapter })
.get('/', ({ query }) => {
console.log(query)

return 'hi'
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "elysia",
"description": "Ergonomic Framework for Human",
"version": "1.2.0-exp.11",
"version": "1.2.0-exp.12",
"author": {
"name": "saltyAom",
"url": "https://github.com/SaltyAom",
Expand Down
1 change: 1 addition & 0 deletions src/adapter/bun/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { WebStandardAdapter } from '../web-standard/index'

export const BunAdapter: ElysiaAdapter = {
...WebStandardAdapter,
name: 'bun',
handler: {
...WebStandardAdapter.handler,
createNativeStaticHandler
Expand Down
Loading

0 comments on commit c73c461

Please sign in to comment.