fastify-plugin
Advanced tools
Comparing version 2.1.1 to 2.2.0
{ | ||
"name": "fastify-plugin", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Plugin helper for Fastify", | ||
@@ -5,0 +5,0 @@ "main": "plugin.js", |
@@ -44,2 +44,7 @@ 'use strict' | ||
// Faux modules support | ||
if (!fn.default) { | ||
fn.default = fn | ||
} | ||
return fn | ||
@@ -46,0 +51,0 @@ } |
@@ -28,1 +28,10 @@ 'use strict' | ||
}) | ||
test('support faux modules', (t) => { | ||
const plugin = fp((fastify, opts, next) => { | ||
next() | ||
}) | ||
t.is(plugin.default, plugin) | ||
t.end() | ||
}) |
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
23261
509