fastify-plugin
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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' }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8851
72
2