Socket
Socket
Sign inDemoInstall

fastify-cli

Package Overview
Dependencies
Maintainers
18
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-cli - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

7

generate-plugin.js

@@ -26,6 +26,6 @@ 'use strict'

'test:typescript': 'tsd',
unit: 'tap "test/**/*.test.js"'
unit: 'node --test'
},
dependencies: {
'fastify-plugin': cliPkg.devDependencies['fastify-plugin']
'fastify-plugin': cliPkg.dependencies['fastify-plugin']
},

@@ -54,3 +54,3 @@ devDependencies: {

const generifyPromise = promisify(generify)
const file = await generifyPromise(
await generifyPromise(
path.join(__dirname, 'templates', template.dir),

@@ -60,3 +60,2 @@ dir,

)
log('debug', `generated ${file}`)

@@ -63,0 +62,0 @@ process.chdir(dir)

{
"name": "fastify-cli",
"version": "6.0.0",
"version": "6.0.1",
"description": "Run a fastify route with one command!",

@@ -5,0 +5,0 @@ "main": "cli.js",

@@ -9,3 +9,3 @@ const { run } = require('node:test')

console.info(`Running tests matching ${pattern}`)
const timeout = 5 * 60 * 1000 // 5 minutes
const timeout = 10 * 60 * 1000 // 10 minutes
glob(pattern, (err, matches) => {

@@ -12,0 +12,0 @@ if (err) {

@@ -8,4 +8,4 @@ import fastify from 'fastify'

app = fastify()
app.ready()
app.register(example)
void app.ready()
void app.register(example)
expectType<() => string>(app.exampleDecorator)

@@ -12,0 +12,0 @@ } catch (err) {

@@ -21,3 +21,2 @@ 'use strict'

const { exec, execSync } = require('node:child_process')
const minimatch = require('minimatch')
const strip = require('strip-ansi')

@@ -105,3 +104,3 @@ const expected = {}

test('should finish succesfully', async (t) => {
t.plan(18 + Object.keys(expected).length)
t.plan(17 + Object.keys(expected).length)
try {

@@ -134,4 +133,4 @@ await generate(workdir, pluginTemplate)

t.equal(pkg.scripts['test:typescript'], 'tsd')
t.equal(pkg.scripts.unit, 'tap "test/**/*.test.js"')
t.equal(pkg.dependencies['fastify-plugin'], cliPkg.devDependencies['fastify-plugin'])
t.equal(pkg.scripts.unit, 'node --test')
t.equal(pkg.dependencies['fastify-plugin'], cliPkg.dependencies['fastify-plugin'])
t.equal(pkg.devDependencies['@types/node'], cliPkg.devDependencies['@types/node'])

@@ -144,4 +143,2 @@ t.equal(pkg.devDependencies.fastify, cliPkg.devDependencies.fastify)

const testGlob = pkg.scripts.unit.split(' ', 2)[1].replace(/"/g, '')
t.equal(minimatch.match(['test/more/test/here/ok.test.js'], testGlob).length, 1)
resolve()

@@ -148,0 +145,0 @@ })

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