Comparing version 1.3.85 to 1.3.86
{ | ||
"name": "darcon", | ||
"version": "1.3.85", | ||
"version": "1.3.86", | ||
"description": "Simple Messaging/Service Bus for node entities over NatsIO", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -13,3 +13,3 @@ let attributesRespected = [ 'user', 'files' ] | ||
routes (fastify) { }, | ||
preValidation (path) { return {} } | ||
preValidation (fastify, path) { return { } } | ||
}, | ||
@@ -16,0 +16,0 @@ |
@@ -22,3 +22,3 @@ let Clerobee = require('clerobee') | ||
if ( options.standard ) { | ||
fastify.post( '/:division/:entity/:message', fastifyConfig.preValidation ? fastifyConfig.preValidation( '/:division/:entity/:message' ) : {}, async function (request, reply) { | ||
fastify.post( '/:division/:entity/:message', fastifyConfig.preValidation ? fastifyConfig.preValidation( fastify, '/:division/:entity/:message' ) : {}, async function (request, reply) { | ||
let newRequest = extractRequest( request, options ) | ||
@@ -40,3 +40,3 @@ let content = newRequest.body | ||
if ( options.darcon ) { | ||
fastify.post( options.darcon, fastifyConfig.preValidation ? fastifyConfig.preValidation( '/:division/:entity/:message' ) : {}, async function (request, reply) { | ||
fastify.post( options.darcon, fastifyConfig.preValidation ? fastifyConfig.preValidation( fastify, '/:division/:entity/:message' ) : {}, async function (request, reply) { | ||
let newRequest = extractRequest( request, options ) | ||
@@ -43,0 +43,0 @@ let content = newRequest.body |
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
55778