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

fastify-plugin

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-plugin - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

index.js

@@ -41,3 +41,3 @@ 'use strict'

try {
fastifyVersion = require('fastify/package.json').version
fastifyVersion = require('fastify/package.json').version.replace(/-rc\.\d+/, '')
} catch (_) {

@@ -44,0 +44,0 @@ console.info('fastify not found, proceeding anyway')

{
"name": "fastify-plugin",
"version": "0.2.1",
"version": "0.2.2",
"description": "Plugin helper for Fastify",

@@ -25,3 +25,3 @@ "main": "index.js",

"devDependencies": {
"fastify": "^0.35.5",
"fastify": "^1.0.0-rc.1",
"proxyquire": "^1.8.0",

@@ -28,0 +28,0 @@ "standard": "^10.0.3",

@@ -6,3 +6,4 @@ # fastify-plugin

`fastify-plugin` is a plugin helper for [Fastify](https://github.com/fastify/fastify).
`fastify-plugin` is a plugin helper for [Fastify](https://github.com/fastify/fastify).
When you build plugins for Fastify and you want that them to be accessible in the same context where you require them, you have two ways:

@@ -55,6 +56,7 @@ 1. Use the `skip-override` hidden property

fastify: '0.x',
dependencies: {
decorators: {
fastify: ['plugin1', 'plugin2'],
reply: ['compress']
}
},
dependencies: ['plugin1-name', 'plugin2-name']
})

@@ -61,0 +63,0 @@ ```

@@ -90,3 +90,3 @@ 'use strict'

const v = require('fastify/package.json').version
const v = require('fastify/package.json').version.replace(/-rc\.\d+/, '')
try {

@@ -166,3 +166,3 @@ fp(plugin, { fastify: '1000.1000.1000' })

const v = require('fastify/package.json').version
const v = require('fastify/package.json').version.replace(/-rc\.\d+/, '')
try {

@@ -169,0 +169,0 @@ fp(plugin, { fastify: '1000.1000.1000' })

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