Skip to content

Commit

Permalink
updating vixeny to 0.1.53 (#8030)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimiMonads authored Dec 9, 2024
1 parent bc92948 commit 20c135e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
15 changes: 7 additions & 8 deletions javascript/vixeny-bun/app.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
import { wrap } from "vixeny";

const app = wrap()()
.stdPetition({
const app = await wrap()()
.get({
path: '/',
f: () => null
f: () => ''
})
.stdPetition({
.get({
path: '/user/:id',
param: {
unique: true
},
f: ctx => ctx.param
})
.stdPetition({
method: 'POST',
.post({
path: '/user',
f: () => null
f: () => ""
})
.compose()

export default {
port: 3000,
fetch: app,
Expand Down
2 changes: 1 addition & 1 deletion javascript/vixeny-bun/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "module",
"dependencies": {
"vixeny": "~0.1.43"
"vixeny": "0.1.53"
}
}
17 changes: 8 additions & 9 deletions javascript/vixeny-deno/app.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
import { wrap } from "jsr:@vixeny/[email protected].42";
import { wrap } from "jsr:@vixeny/[email protected].53";

const app = wrap()()
.stdPetition({
const app = await wrap()()
.get({
path: '/',
f: () => null
f: () => ''
})
.stdPetition({
.get({
path: '/user/:id',
param: {
unique: true
},
f: ctx => ctx.param
})
.stdPetition({
method: 'POST',
.post({
path: '/user',
f: () => null
f: () => ''
})
.compose()

Deno.serve({port: 3000}, app)
Deno.serve({port: 3000}, app)
2 changes: 1 addition & 1 deletion javascript/vixeny-deno/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "module",
"dependencies": {
"vixeny": "~0.1.43"
"vixeny": "0.1.53"
}
}

0 comments on commit 20c135e

Please sign in to comment.