fastify-decorators
Advanced tools
Comparing version 2.0.0-1 to 2.0.0-2
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces'; | ||
@@ -15,2 +16,3 @@ /** | ||
export declare function ALL(url: string): (target: any, propKey?: string | symbol) => void; | ||
export declare function ALL(url: string, options: RouteShorthandOptions): (target: any, propKey?: string | symbol) => void; | ||
export declare function ALL(config: RouteConfig): (target: any, propKey?: string | symbol) => void; |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.ALL = ALL; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2RlY29yYXRvcnMvYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0dBTUc7O0FBR0gscUZBQWdGO0FBUWhGLFNBQWdCLEdBQUcsQ0FBQyxNQUE2QjtJQUM3QyxPQUFPLHFEQUF3QixDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ25ELENBQUM7QUFGRCxrQkFFQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiBAbGljZW5zZVxyXG4gKiBDb3B5cmlnaHQgQW5kcmV5IENoYWxraW4gPEwyakxpZ2FAZ21haWwuY29tPiAoaHR0cHM6Ly9naXRodWIuY29tL0wyakxpZ2EpLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxyXG4gKlxyXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxyXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vZ2l0aHViLmNvbS9MMmpMaWdhL2Zhc3RpZnktZGVj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YXJnZXQ6IGFueSwgcHJvcEtleT86IHN0cmluZyB8IHN5bWJvbCkgPT4gdm9pZDtcclxuZXhwb3J0IGZ1bmN0aW9uIEFMTCh1cmw6IHN0cmluZywgb3B0aW9uczogUm91dGVTaG9ydGhhbmRPcHRpb25zKTogKHRhcmdldDogYW55LCBwcm9wS2V5Pzogc3RyaW5nIHwgc3ltYm9sKSA9PiB2b2lkO1xyXG5leHBvcnQgZnVuY3Rpb24gQUxMKGNvbmZpZzogUm91dGVDb25maWcpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBBTEwoY29uZmlnPzogc3RyaW5nIHwgUm91dGVDb25maWcpIHtcclxuICAgIHJldHVybiByZXF1ZXN0RGVjb3JhdG9yc0ZhY3RvcnkoJ2FsbCcpKGNvbmZpZyk7XHJcbn1cclxuIl19 |
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces'; | ||
@@ -15,2 +16,3 @@ /** | ||
export declare function DELETE(url: string): (target: any, propKey?: string | symbol) => void; | ||
export declare function DELETE(url: string, options: RouteShorthandOptions): (target: any, propKey?: string | symbol) => void; | ||
export declare function DELETE(config: RouteConfig): (target: any, propKey?: string | symbol) => void; |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.DELETE = DELETE; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2RlY29yYXRvcnMvZGVsZXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0dBTUc7O0FBR0gscUZBQWdGO0FBUWhGLFNBQWdCLE1BQU0sQ0FBQyxNQUE2QjtJQUNoRCxPQUFPLHFEQUF3Qix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orthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces'; | ||
@@ -15,2 +16,3 @@ /** | ||
export declare function GET(url: string): (target: any, propKey?: string | symbol) => void; | ||
export declare function GET(url: string, options: RouteShorthandOptions): (target: any, propKey?: string | symbol) => void; | ||
export declare function GET(config: RouteConfig): (target: any, propKey?: string | symbol) => void; |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.GET = GET; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2RlY29yYXRvcnMvZ2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0dBTUc7O0FBR0gscUZBQWdGO0FBUWhGLFNBQWdCLEdBQUcsQ0FBQyxNQUE2QjtJQUM3QyxPQUFPLHFEQUF3QixDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ25ELENBQUM7QUFGRCxrQkFFQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiBAbGljZW5zZVxyXG4gKiBDb3B5cmlnaHQgQW5kcmV5IENoYWxraW4gPEwyakxpZ2FAZ21haWwuY29tPiAoaHR0cHM6Ly9naXRodWIuY29tL0wyakxpZ2EpLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxyXG4gKlxyXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxyXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vZ2l0aHViLmNvbS9MMmpMaWdhL2Zhc3RpZnktZGVjb3JhdG9ycy9ibG9iL21hc3Rlci9MSUNFTlNFXHJcbiAqL1xyXG5cclxuaW1wb3J0IHsgUm91dGVDb25maW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R0VUKHVybDogc3RyaW5nLCBvcHRpb25zOiBSb3V0ZVNob3J0aGFuZE9wdGlvbnMpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBHRVQoY29uZmlnOiBSb3V0ZUNvbmZpZyk6ICh0YXJnZXQ6IGFueSwgcHJvcEtleT86IHN0cmluZyB8IHN5bWJvbCkgPT4gdm9pZDtcclxuZXhwb3J0IGZ1bmN0aW9uIEdFVChjb25maWc/OiBzdHJpbmcgfCBSb3V0ZUNvbmZpZykge1xyXG4gICAgcmV0dXJuIHJlcXVlc3REZWNvcmF0b3JzRmFjdG9yeSgnZ2V0JykoY29uZmlnKTtcclxufVxyXG4iXX0= |
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces'; | ||
@@ -15,2 +16,3 @@ /** | ||
export declare function HEAD(url: string): (target: any, propKey?: string | symbol) => void; | ||
export declare function HEAD(url: string, options: RouteShorthandOptions): (target: any, propKey?: string | symbol) => void; | ||
export declare function HEAD(config: RouteConfig): (target: any, propKey?: string | symbol) => void; |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.HEAD = HEAD; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL2hlYWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7QUFHSCxxRkFBZ0Y7QUFRaEYsU0FBZ0IsSUFBSSxDQUFDLE1BQTZCO0lBQzlDLE9BQU8scURBQXdCLENBQUMsTUFBTSxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDcEQsQ0FBQztBQUZELG9CQUVDIiwic291cm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0IHsgUm91dGVDb25maWcgfSBmcm9tICcuLi9pbnRlcmZhY2VzJztcclxuaW1wb3J0IHsgcmVxdWVzdERlY29yYXRvcnNGYWN0b3J5IH0gZnJvbSAnLi9oZWxwZXJzL3JlcXVlc3QtZGVjb3JhdG9ycy5mYWN0b3J5JztcclxuXHJcbi8qKlxyXG4gKiBDcmVhdGVzIGhhbmRsZXIgd2hpY2ggbGlzdGVuIEhFQUQgcmVxdWVzdHNcclxuICovXHJcbmV4cG9ydCBmdW5jdGlvbiBIRUFEKCk6ICh0YXJnZXQ6IGFueSwgcHJvcEtleT86IHN0cmluZyB8IHN5bWJvbCkgPT4gdm9pZDtcclxuZXhwb3J0IGZ1bmN0aW9uIEhFQUQodXJsOiBzdHJpbmcpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBIRUFEKHVybDogc3RyaW5nLCBvcHRpb25zOiBSb3V0ZVNob3J0aGFuZE9wdGlvbnMpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBIRUFEKGNvbmZpZzogUm91dGVDb25maWcpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBIRUFEKGNvbmZpZz86IHN0cmluZyB8IFJvdXRlQ29uZmlnKSB7XHJcbiAgICByZXR1cm4gcmVxdWVzdERlY29yYXRvcnNGYWN0b3J5KCdoZWFkJykoY29uZmlnKTtcclxufVxyXG4iXX0= |
@@ -8,5 +8,7 @@ /** | ||
*/ | ||
/// <reference types="node" /> | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../../interfaces'; | ||
import { HttpMethods } from './http-methods'; | ||
export declare function requestDecoratorsFactory(method: HttpMethods): (config?: string | RouteConfig | undefined) => (target: any, propKey?: string | symbol | undefined) => void; | ||
export declare function requestDecoratorsFactory(method: HttpMethods): (routeOrConfig?: string | RouteConfig | undefined, options?: RouteShorthandOptions<import("http").Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").DefaultQuery, import("fastify").DefaultParams, import("fastify").DefaultHeaders, any> | undefined) => (target: any, propKey?: string | symbol | undefined) => void; | ||
export declare function controllerMethodDecoratorsFactory(method: HttpMethods, config: RouteConfig, target: any, propKey: string | symbol): void; |
@@ -12,14 +12,15 @@ "use strict"; | ||
const inject_controller_options_1 = require("./inject-controller-options"); | ||
function parseConfig(config = '/', options = {}) { | ||
if (typeof config === 'string') | ||
return { url: config, options }; | ||
return { options, ...config }; | ||
} | ||
function requestDecoratorsFactory(method) { | ||
return function (config) { | ||
return function (routeOrConfig, options) { | ||
const config = parseConfig(routeOrConfig, options); | ||
return function (target, propKey) { | ||
if (!config) | ||
config = { url: '/' }; | ||
if (typeof config === 'string') | ||
config = { url: config }; | ||
if (propKey) | ||
return controllerMethodDecoratorsFactory(method, config, target, propKey); | ||
const options = config.options || {}; | ||
target[symbols_1.CREATOR] = { | ||
register: (instance) => instance[method](config.url, options, function (...args) { | ||
register: (instance) => instance[method](config.url, config.options, function (...args) { | ||
return new target(...args).handle(); | ||
@@ -43,2 +44,2 @@ }) | ||
exports.controllerMethodDecoratorsFactory = controllerMethodDecoratorsFactory; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC1kZWNvcmF0b3JzLmZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWIvZGVjb3JhdG9ycy9oZWxwZXJzL3JlcXVlc3QtZGVjb3JhdG9ycy5mYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0dBTUc7O0FBSUgsMkNBQXdDO0FBRX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JcbmltcG9ydCB7IGluamVjdERlZmF1bHRDb250cm9sbGVyT3B0aW9ucyB9IGZyb20gJy4vaW5qZWN0LWNvbnRyb2xsZXItb3B0aW9ucyc7XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gcmVxdWVzdERlY29yYXRvcnNGYWN0b3J5KG1ldGhvZDogSHR0cE1ldGhvZHMpIHtcclxuICAgIHJldHVybiBmdW5jdGlvbiAoY29uZmlnPzogc3RyaW5nIHwgUm91dGVDb25maWcpIHtcclxuICAgICAgICByZXR1cm4gZnVuY3Rpb24gKHRhcmdldDogYW55LCBwcm9wS2V5Pzogc3RyaW5nIHwgc3ltYm9sKSB7XHJcbiAgICAgICAgICAgIGlmICghY29uZmlnKSBjb25maWcgPSB7IHVybDogJy8nIH07XHJcbiAgICAgICAgICAgIGlmICh0eXBlb2YgY29uZmlnID09PSAnc3RyaW5nJykgY29uZmlnID0geyB1cmw6IGNvbmZpZyB9O1xyXG5cclxuICAgICAgICAgICAgaWYgKHByb3BLZXkpIHJldHVybiBjb250cm9sbGVyTWV0aG9kRGVjb3JhdG9yc0ZhY3RvcnkobWV0aG9kLCBjb25maWcsIHRhcmdldCwgcHJvcEtleSk7XHJcbiAgICAgICAgICAgIGNvbnN0IG9wdGlvbnMgPSBjb25maWcub3B0aW9ucyB8fCB7fTtcclxuXHJcbiAgICAgICAgICAgIHRhcmdldFtDUkVBVE9SXSA9IHtcclxuICAgICAgICAgICAgICAgIHJlZ2lzdGVyOiAoaW5zdGFuY2U6IEZhc3RpZnlJbnN0YW5jZSkgPT4gaW5zdGFuY2VbbWV0aG9kXSgoPFJvdXRlQ29uZmlnPmNvbmZpZykudXJsLCBvcHRpb25zLCBmdW5jdGlvbiAoLi4uYXJncykge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAoPFJlcXVlc3RIYW5kbGVyPm5ldyB0YXJnZXQoLi4uYXJncykpLmhhbmRsZSgpO1xyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgIC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dGFuY2VbbWV0aG9kXShjb25maWcudXJsLCBjb25maWcub3B0aW9ucyEsIGZ1bmN0aW9uICguLi5hcmdzKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICg8UmVxdWVzdEhhbmRsZXI+bmV3IHRhcmdldCguLi5hcmdzKSkuaGFuZGxlKCk7XHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgIH07XHJcbiAgICB9O1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gY29udHJvbGxlck1ldGhvZERlY29yYXRvcnNGYWN0b3J5KG1ldGhvZDogSHR0cE1ldGhvZHMsIGNvbmZpZzogUm91dGVDb25maWcsIHRhcmdldDogYW55LCBwcm9wS2V5OiBzdHJpbmcgfCBzeW1ib2wpIHtcclxuICAgIGluamVjdERlZmF1bHRDb250cm9sbGVyT3B0aW9ucyh0YXJnZXQuY29uc3RydWN0b3IpO1xyXG5cclxuICAgIGNvbnN0IGNvbnRyb2xsZXJPcHRzID0gKDxDb250cm9sbGVyQ29uc3RydWN0b3I+dGFyZ2V0LmNvbnN0cnVjdG9yKVtDUkVBVE9SXTtcclxuXHJcbiAgICBjb250cm9sbGVyT3B0cy5oYW5kbGVycy5wdXNoKHtcclxuICAgICAgICB1cmw6IGNvbmZpZy51cmwsXHJcbiAgICAgICAgbWV0aG9kLFxyXG4gICAgICAgIG9wdGlvbnM6IGNvbmZpZy5vcHRpb25zIHx8IHt9LFxyXG4gICAgICAgIGhhbmRsZXJNZXRob2Q6IHByb3BLZXlcclxuICAgIH0pO1xyXG59XHJcbiJdfQ== |
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces'; | ||
@@ -15,2 +16,3 @@ /** | ||
export declare function OPTIONS(url: string): (target: any, propKey?: string | symbol) => void; | ||
export declare function OPTIONS(url: string, options: RouteShorthandOptions): (target: any, propKey?: string | symbol) => void; | ||
export declare function OPTIONS(config: RouteConfig): (target: any, propKey?: string | symbol) => void; |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.OPTIONS = OPTIONS; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL29wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7QUFHSCxxRkFBZ0Y7QUFRaEYsU0FBZ0IsT0FBTyxDQUFDLE1BQTZCO0lBQ2pELE9BQU8scURBQXdCLENBQUMsU0FBUyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDdkQsQ0FBQztBQUZELDBCQUVDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXHJcbiAqIEBsaWNlbnNlXHJcbiAqIENvcHlyaWdodCBBbmRyZXkgQ2hhbGtpbiA8TDJqTGlnYUBnbWFpbC5jb20+IChodHRwczovL2dpdGh1Yi5jb20vTDJqTGlnYSkuIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXHJcbiAqXHJcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXHJcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9naXRodWIuY29tL0wyakxpZ2EvZmFzdGlmeS1kZWNvcmF0b3JzL2Jsb2IvbWFzdGVyL0xJQ0VOU0VcclxuICovXHJcblxyXG5pbXBvcnQgeyBSb3V0ZUNvbmZpZyB9IGZyb20gJy4uL2ludGVyZmFjZXMnO1xyXG5pbXBvcnQgeyByZXF1ZXN0RGVjb3JhdG9yc0ZhY3RvcnkgfSBmcm9tICcuL2hlbHBlcnMvcmVxdWVzdC1kZ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OiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBPUFRJT05TKGNvbmZpZzogUm91dGVDb25maWcpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBPUFRJT05TKGNvbmZpZz86IHN0cmluZyB8IFJvdXRlQ29uZmlnKSB7XHJcbiAgICByZXR1cm4gcmVxdWVzdERlY29yYXRvcnNGYWN0b3J5KCdvcHRpb25zJykoY29uZmlnKTtcclxufVxyXG4iXX0= |
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces'; | ||
@@ -15,2 +16,3 @@ /** | ||
export declare function PATCH(url: string): (target: any, propKey?: string | symbol) => void; | ||
export declare function PATCH(url: string, options: RouteShorthandOptions): (target: any, propKey?: string | symbol) => void; | ||
export declare function PATCH(config: RouteConfig): (target: any, propKey?: string | symbol) => void; |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.PATCH = PATCH; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvZGVjb3JhdG9ycy9wYXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7OztHQU1HOztBQUdILHFGQUFnRjtBQVFoRixTQUFnQixLQUFLLENBQUMsTUFBNkI7SUFDL0MsT0FBTyxxREFBd0IsQ0FBQyxPQUFPLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUNyRCxDQUFDO0FBRkQsc0JBRUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogQGxpY2Vuc2VcclxuICogQ29weXJpZ2h0I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yc0ZhY3RvcnkgfSBmcm9tICcuL2hlbHBlcnMvcmVxdWVzdC1kZWNvcmF0b3JzLmZhY3RvcnknO1xyXG5cclxuLyoqXHJcbiAqIENyZWF0ZXMgaGFuZGxlciB3aGljaCBsaXN0ZW4gUEFUQ0ggcmVxdWVzdHNcclxuICovXHJcbmV4cG9ydCBmdW5jdGlvbiBQQVRDSCgpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBQQVRDSCh1cmw6IHN0cmluZyk6ICh0YXJnZXQ6IGFueSwgcHJvcEtleT86IHN0cmluZyB8IHN5bWJvbCkgPT4gdm9pZDtcclxuZXhwb3J0IGZ1bmN0aW9uIFBBVENIKHVybDogc3RyaW5nLCBvcHRpb25zOiBSb3V0ZVNob3J0aGFuZE9wdGlvbnMpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBQQVRDSChjb25maWc6IFJvdXRlQ29uZmlnKTogKHRhcmdldDogYW55LCBwcm9wS2V5Pzogc3RyaW5nIHwgc3ltYm9sKSA9PiB2b2lkO1xyXG5leHBvcnQgZnVuY3Rpb24gUEFUQ0goY29uZmlnPzogc3RyaW5nIHwgUm91dGVDb25maWcpIHtcclxuICAgIHJldHVybiByZXF1ZXN0RGVjb3JhdG9yc0ZhY3RvcnkoJ3BhdGNoJykoY29uZmlnKTtcclxufVxyXG4iXX0= |
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces'; | ||
@@ -15,2 +16,3 @@ /** | ||
export declare function POST(url: string): (target: any, propKey?: string | symbol) => void; | ||
export declare function POST(url: string, options: RouteShorthandOptions): (target: any, propKey?: string | symbol) => void; | ||
export declare function POST(config: RouteConfig): (target: any, propKey?: string | symb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5jdGlvbiBQT1NUKGNvbmZpZzogUm91dGVDb25maWcpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBQT1NUKGNvbmZpZz86IHN0cmluZyB8IFJvdXRlQ29uZmlnKSB7XHJcbiAgICByZXR1cm4gcmVxdWVzdERlY29yYXRvcnNGYWN0b3J5KCdwb3N0JykoY29uZmlnKTtcclxufVxyXG4iXX0= |
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces'; | ||
@@ -15,2 +16,3 @@ /** | ||
export declare function PUT(url: string): (target: any, propKey?: string | symbol) => void; | ||
export declare function PUT(url: string, options: RouteShorthandOptions): (target: any, propKey?: string | symbol) => void; | ||
export declare function PUT(config: RouteConfig): (target: any, propKey?: string | symbol) => void; |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.PUT = PUT; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2RlY29yYXRvcnMvcHV0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0dBTUc7O0FBR0gscUZBQWdGO0FBUWhGLFNBQWdCLEdBQUcsQ0FBQyxNQUE2QjtJQUM3QyxPQUFPLHFEQUF3QixDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ25ELENBQUM7QUFGRCxrQkFFQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiBAbGljZW5zZVxyXG4gKiBDb3B5cmlnaHQgQW5kcmV5IENoYWxraW4gPEwyakxpZ2FAZ21haWwuY29tPiAoaHR0cHM6Ly9naXRodWIuY29tL0wyakxpZ2EpLiBBbGwgUmlna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ICogQ3JlYXRlcyBoYW5kbGVyIHdoaWNoIGxpc3RlbiBQVVQgcmVxdWVzdHNcclxuICovXHJcbmV4cG9ydCBmdW5jdGlvbiBQVVQoKTogKHRhcmdldDogYW55LCBwcm9wS2V5Pzogc3RyaW5nIHwgc3ltYm9sKSA9PiB2b2lkO1xyXG5leHBvcnQgZnVuY3Rpb24gUFVUKHVybDogc3RyaW5nKTogKHRhcmdldDogYW55LCBwcm9wS2V5Pzogc3RyaW5nIHwgc3ltYm9sKSA9PiB2b2lkO1xyXG5leHBvcnQgZnVuY3Rpb24gUFVUKHVybDogc3RyaW5nLCBvcHRpb25zOiBSb3V0ZVNob3J0aGFuZE9wdGlvbnMpOiAodGFyZ2V0OiBhbnksIHByb3BLZXk/OiBzdHJpbmcgfCBzeW1ib2wpID0+IHZvaWQ7XHJcbmV4cG9ydCBmdW5jdGlvbiBQVVQoY29uZmlnOiBSb3V0ZUNvbmZpZyk6ICh0YXJnZXQ6IGFueSwgcHJvcEtleT86IHN0cmluZyB8IHN5bWJvbCkgPT4gdm9pZDtcclxuZXhwb3J0IGZ1bmN0aW9uIFBVVChjb25maWc/OiBzdHJpbmcgfCBSb3V0ZUNvbmZpZykge1xyXG4gICAgcmV0dXJuIHJlcXVlc3REZWNvcmF0b3JzRmFjdG9yeSgncHV0JykoY29uZmlnKTtcclxufVxyXG4iXX0= |
{ | ||
"name": "fastify-decorators", | ||
"version": "2.0.0-1", | ||
"version": "2.0.0-2", | ||
"description": "Fastify decorators collection with bootstraper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -182,6 +182,6 @@ # Fastify decorators | ||
[Getting Started]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-1/lib/docs/Getting-Started.md | ||
[Request Handler]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-1/lib/docs/Request-Handlers.md | ||
[Controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-1/lib/docs/Controllers.md | ||
[Dependency Injection]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-1/lib/docs/Dependency-Injection.md | ||
[Migration to V2]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-1/lib/docs/Migration-to-v2.md | ||
[Getting Started]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-2/lib/docs/Getting-Started.md | ||
[Request Handler]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-2/lib/docs/Request-Handlers.md | ||
[Controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-2/lib/docs/Controllers.md | ||
[Dependency Injection]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-2/lib/docs/Dependency-Injection.md | ||
[Migration to V2]: https://github.com/L2jLiga/fastify-decorators/blob/v2.0.0-2/lib/docs/Migration-to-v2.md |
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
147221
1192
1