Skip to content

Commit

Permalink
Bumped v6.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Sep 6, 2024
1 parent bce4e6b commit 743b58f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fastify/flash",
"version": "6.0.0-pre.fv5.2",
"version": "6.0.0",
"description": "Flash message plugin for fastify.",
"main": "./lib",
"type": "commonjs",
Expand Down Expand Up @@ -43,9 +43,9 @@
},
"homepage": "http://fastify.dev/",
"devDependencies": {
"@fastify/secure-session": "^8.0.0-pre.fv5.1",
"@fastify/secure-session": "^8.0.0",
"@types/node": "^22.0.0",
"fastify": "^5.0.0-alpha.3",
"fastify": "^5.0.0-alpha.4",
"prettier": "^3.2.5",
"rimraf": "^6.0.1",
"tap": "^18.7.1",
Expand All @@ -56,7 +56,7 @@
"typescript": "^5.4.2"
},
"dependencies": {
"fastify-plugin": "^5.0.0-pre.fv5.1"
"fastify-plugin": "^5.0.0"
},
"files": [
"/lib",
Expand Down
4 changes: 2 additions & 2 deletions src/flash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export function flashFactory() {
}

let data = this.request.session.get('flash')
if (!data) {
data = {}
if (!data) {
data = {}
}

const messages = data[type]
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export = fp<{}>(
fastify: '5.x',
name: '@fastify/flash',
decorators: {
request: ['session']
}
}
request: ['session'],
},
},
)

0 comments on commit 743b58f

Please sign in to comment.