Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastify

Package Overview
Dependencies
Maintainers
2
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

2

lib/tier-node.js

@@ -17,3 +17,3 @@ /* eslint-disable no-useless-return */

}
handler(hooks, handle, params, req, res, body, null)
handler(hooks, handle, params, req, res, body, urlUtil.parse(req.url, true).query)
}

@@ -20,0 +20,0 @@

{
"name": "fastify",
"version": "0.14.0",
"version": "0.14.1",
"description": "Fast and low overhead web framework, for Node.js",

@@ -13,3 +13,3 @@ "main": "fastify.js",

"type": "git",
"url": "git+https://github.com/mcollina/fastify.git"
"url": "git+https://github.com/fastify/fastify.git"
},

@@ -33,5 +33,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/mcollina/fastify/issues"
"url": "https://github.com/fastify/fastify/issues"
},
"homepage": "https://github.com/mcollina/fastify#readme",
"homepage": "https://github.com/fastify/fastify#readme",
"devDependencies": {

@@ -38,0 +38,0 @@ "bluebird": "^3.5.0",

@@ -52,2 +52,12 @@ <div align="center">

## Ecosystem
- [`point-of-view`](https://github.com/fastify/point-of-view)
Templates rendering (*ejs, pug, handlebars, marko*) plugin support for Fastify.
- [`fastify-mongodb`](https://github.com/fastify/fastify-mongodb)
Fastify MongoDB connection plugin, with this you can share the same MongoDb connection pool in every part of your server.
- [`fastify-redis`](https://github.com/fastify/fastify-redis)
Fastify Redis connection plugin, with this you can share the same Redis connection in every part of your server.
- [`fastify-swagger`](https://github.com/fastify/fastify-swagger)
Swagger documentation generator for Fastify
- *More coming soon*

@@ -54,0 +64,0 @@ ## Team

@@ -46,2 +46,15 @@ 'use strict'

test(`${upMethod} with body and querystring`, t => {
t.plan(1)
try {
fastify[loMethod]('/with-query', function (req, reply) {
req.body.hello = req.body.hello + req.query.foo
reply.code(200).send(req.body)
})
t.pass()
} catch (e) {
t.fail()
}
})
fastify.listen(0, function (err) {

@@ -102,2 +115,18 @@ if (err) {

test(`${upMethod} with body and querystring - correctly replies`, t => {
t.plan(3)
request({
method: upMethod,
uri: 'http://localhost:' + fastify.server.address().port + '/with-query?foo=hello',
body: {
hello: 'world'
},
json: true
}, (err, response, body) => {
t.error(err)
t.strictEqual(response.statusCode, 200)
t.deepEqual(body, { hello: 'worldhello' })
})
})
test(`${upMethod} returns 415 - incorrect media type if body is not json`, t => {

@@ -104,0 +133,0 @@ t.plan(2)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc