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

fastify-decorators

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-decorators - npm Package Compare versions

Comparing version 3.9.1 to 3.10.0

6

bootstrap/bootstrap.js

@@ -27,3 +27,3 @@ /**

config.controllers.forEach(controllers.add, controllers);
await loadControllers({ controllers: [...controllers], skipBroken }, fastify);
await loadControllers({ controllers: [...controllers], skipBroken, prefix: config.prefix }, fastify);
await Promise.all(readyMap.values());

@@ -46,3 +46,3 @@ if (servicesWithDestructors.size)

if (verifyController(controller)) {
return controller[CREATOR].register(fastify);
return controller[CREATOR].register(fastify, config.prefix);
}

@@ -82,2 +82,2 @@ else if (!config.skipBroken) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdHN0cmFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2Jvb3RzdHJhcC9ib290c3RyYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBR0gsT0FBTyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDaEMsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLElBQUksQ0FBQztBQUNqQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzVCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFDcEMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFFdEUsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBR2xELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUN6RCxPQUFPLEVBQU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 # Changelog

## 3.10.0
### Added
- Option to specify global prefix
## 3.9.1

@@ -10,0 +16,0 @@

@@ -22,3 +22,3 @@ /**

injectControllerOptions(controller);
controller[CREATOR].register = async (instance, injectablesMap = injectables, cacheResult = true) => {
controller[CREATOR].register = async (instance, prefix = '', injectablesMap = injectables, cacheResult = true) => {
controller[INJECTABLES] = injectablesMap;

@@ -29,3 +29,3 @@ controller.prototype[INJECTABLES] = injectablesMap;

controllerInstance = ControllerTypeStrategies[type](instance, controller, injectablesMap, cacheResult);
}, { prefix: route });
}, { prefix: prefix + route });
return controllerInstance;

@@ -35,2 +35,2 @@ };

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL2NvbnRyb2xsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBS0gsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ2hFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzNELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ2pGLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRTNFLFNBQVMsVUFBVSxDQUFDLE1BQWtDO0lBQ3BELElBQUksT0FBTyxNQUFNLEtBQUssUUFBUTtRQUFFLE1BQU0sR0FBRyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsQ0FBQztJQUUzRCxPQUFPLEVBQUUsSUFBSSxFQUFFLGNBQWMsQ0FBQyxTQUFTLEVBQUU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mZpZyhjb25maWcpO1xuXG4gICAgaW5qZWN0Q29udHJvbGxlck9wdGlvbnMoY29udHJvbGxlcik7XG5cbiAgICBjb250cm9sbGVyW0NSRUFUT1JdLnJlZ2lzdGVyID0gYXN5bmMgKGluc3RhbmNlOiBGYXN0aWZ5SW5zdGFuY2UsIHByZWZpeCA9ICcnLCBpbmplY3RhYmxlc01hcCA9IGluamVjdGFibGVzLCBjYWNoZVJlc3VsdCA9IHRydWUpID0+IHtcbiAgICAgIGNvbnRyb2xsZXJbSU5KRUNUQUJMRVNdID0gaW5qZWN0YWJsZXNNYXA7XG4gICAgICBjb250cm9sbGVyLnByb3RvdHlwZVtJTkpFQ1RBQkxFU10gPSBpbmplY3RhYmxlc01hcDtcblxuICAgICAgbGV0IGNvbnRyb2xsZXJJbnN0YW5jZTtcblxuICAgICAgYXdhaXQgaW5zdGFuY2UucmVnaXN0ZXIoXG4gICAgICAgIGFzeW5jIChpbnN0YW5jZSkgPT4ge1xuICAgICAgICAgIGNvbnRyb2xsZXJJbnN0YW5jZSA9IENvbnRyb2xsZXJUeXBlU3RyYXRlZ2llc1t0eXBlXShpbnN0YW5jZSwgY29udHJvbGxlciwgaW5qZWN0YWJsZXNNYXAsIGNhY2hlUmVzdWx0KTtcbiAgICAgICAgfSxcbiAgICAgICAgeyBwcmVmaXg6IHByZWZpeCArIHJvdXRlIH0sXG4gICAgICApO1xuXG4gICAgICByZXR1cm4gY29udHJvbGxlckluc3RhbmNlO1xuICAgIH07XG4gIH07XG59XG4iXX0=

@@ -29,2 +29,6 @@ /**

skipBroken?: boolean;
/**
* Global prefix to be applied for all routes
*/
prefix?: string;
}

@@ -42,3 +46,7 @@ export interface ControllersListConfig extends FastifyPluginOptions {

skipBroken?: boolean;
/**
* Global prefix to be applied for all routes
*/
prefix?: string;
}
export declare type BootstrapConfig = AutoLoadConfig | ControllersListConfig;

@@ -9,2 +9,2 @@ /**

export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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vciBoYW5kbGVyXG4gICAqIFRoaXMgb3B0aW9uIGFsbG93cyB0byBjaGFuZ2UgdGhpcyBiZWhhdmlvclxuICAgKiBAZGVmYXVsdCBmYWxzZVxuICAgKi9cbiAgc2tpcEJyb2tlbj86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEdsb2JhbCBwcmVmaXggdG8gYmUgYXBwbGllZCBmb3IgYWxsIHJvdXRlc1xuICAgKi9cbiAgcHJlZml4Pzogc3RyaW5nO1xufVxuXG5leHBvcnQgdHlwZSBCb290c3RyYXBDb25maWcgPSBBdXRvTG9hZENvbmZpZyB8IENvbnRyb2xsZXJzTGlzdENvbmZpZztcbiJdfQ==

@@ -19,3 +19,3 @@ /**

[CREATOR]: {
register(instance?: FastifyInstance, injectables?: Injectables, cacheResult?: boolean): Promise<void>;
register(instance?: FastifyInstance, prefix?: string, injectables?: Injectables, cacheResult?: boolean): Promise<void>;
};

@@ -22,0 +22,0 @@ }

@@ -9,2 +9,2 @@ /**

export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0YWJsZS1jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9pbnRlcmZhY2VzL2luamVjdGFibGUtY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEFuZHJleSBDaGFsa2luIDxMMmpMaWdhQGdtYWlsLmNvbT4gKGh0dHBzOi8vZ2l0aHViLmNvbS9MMmpMaWdhKS4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91b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kcyBJbmplY3RhYmxlQ2xhc3MsIE9iamVjdCB7XG4gIFtDUkVBVE9SXToge1xuICAgIHJlZ2lzdGVyPFR5cGU+KGluamVjdGFibGVzPzogSW5qZWN0YWJsZXMsIGNhY2hlUmVzdWx0PzogYm9vbGVhbik6IFR5cGU7XG4gIH07XG5cbiAgW0lOSVRJQUxJWkVSXT88VHlwZT4oc2VsZjogVHlwZSk6IHZvaWQ7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgSW5qZWN0YWJsZUNvbnRyb2xsZXIgZXh0ZW5kcyBJbmplY3RhYmxlQ2xhc3Mge1xuICBbQ1JFQVRPUl06IHtcbiAgICByZWdpc3RlcihpbnN0YW5jZT86IEZhc3RpZnlJbnN0YW5jZSwgcHJlZml4Pzogc3RyaW5nLCBpbmplY3RhYmxlcz86IEluamVjdGFibGVzLCBjYWNoZVJlc3VsdD86IGJvb2xlYW4pOiBQcm9taXNlPHZvaWQ+O1xuICB9O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEluamVjdGFibGVDbGFzcyB7XG4gIFtJTkpFQ1RBQkxFU106IEluamVjdGFibGVzO1xuXG4gIG5ldyAoKTogYW55O1xuXG4gIG5ldyAoLi4uYXJnczogdW5rbm93bltdKTogYW55O1xufVxuIl19

@@ -16,8 +16,3 @@ /**

protected reply: FastifyReply<RawServer, RawRequest, RawReply, RequestGeneric, ContextConfig>;
protected constructor(request: FastifyRequest<RequestGeneric, RawServer, RawRequest>, reply: FastifyReply<RawServer, RawRequest, RawReply, RequestGeneric, ContextConfig>);
/**
* Main method for request handling
*/
abstract handle(): void | Promise<unknown>;
/**
* Static method to register handler by autoloader (bootstrap)

@@ -28,2 +23,7 @@ */

};
protected constructor(request: FastifyRequest<RequestGeneric, RawServer, RawRequest>, reply: FastifyReply<RawServer, RawRequest, RawReply, RequestGeneric, ContextConfig>);
/**
* Main method for request handling
*/
abstract handle(): void | Promise<unknown>;
}

@@ -30,0 +30,0 @@ export interface RequestHook {

@@ -18,2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ENvbnRleHRDb25maWc+LFxuICApIHt9XG5cbiAgLyoqXG4gICAqIE1haW4gbWV0aG9kIGZvciByZXF1ZXN0IGhhbmRsaW5nXG4gICAqL1xuICBhYnN0cmFjdCBoYW5kbGUoKTogdm9pZCB8IFByb21pc2U8dW5rbm93bj47XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgUmVxdWVzdEhvb2sge1xuICBuYW1lOiAnb25SZXF1ZXN0JyB8ICdwcmVQYXJzaW5nJyB8ICdwcmVWYWxpZGF0aW9uJyB8ICdwcmVIYW5kbGVyJyB8ICdwcmVTZXJpYWxpemF0aW9uJyB8ICdvblNlbmQnIHwgJ29uUmVzcG9uc2UnIHwgJ29uVGltZW91dCcgfCAnb25FcnJvcic7XG4gIGhhbmRsZXJOYW1lOiBzdHJpbmcgfCBzeW1ib2w7XG59XG4iXX0=
{
"name": "fastify-decorators",
"version": "3.9.1",
"version": "3.10.0",
"description": "Framework aimed to provide useful TypeScript decorators to implement controllers, services and request handlers, built with Fastify.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -23,3 +23,3 @@ /**

injectControllerOptions(target);
target[CREATOR].register = async (instance, injectablesMap = injectables, cacheResult = true) => {
target[CREATOR].register = async (instance, prefix = '', injectablesMap = injectables, cacheResult = true) => {
target[INJECTABLES] = injectablesMap;

@@ -29,3 +29,3 @@ target.prototype[INJECTABLES] = injectablesMap;

await instance.register(async (instance) => ControllerTypeStrategies[ControllerType.SINGLETON](instance, target, injectablesMap, cacheResult), {
prefix: route,
prefix: prefix + route,
});

@@ -65,2 +65,2 @@ };

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvcGx1Z2lucy9jb250cm9sbGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFHSCxPQUFPLEVBQU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VyZUVycm9ySGFuZGxlcnModGFyZ2V0KTtcbiAgdGFyZ2V0W0VSUk9SX0hBTkRMRVJTXS5wdXNoKGVycm9ySGFuZGxlcik7XG59XG4iXX0=

@@ -1,2 +0,2 @@

[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v3.9.1/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators)
[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v3.10.0/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators)

@@ -28,7 +28,6 @@ [![npm version](https://badge.fury.io/js/fastify-decorators.svg?colorB=brightgreen)](https://www.npmjs.com/package/fastify-decorators)

- [Getting started](#getting-started)
- [Bootstrapping]
- [Controllers]
- [Request Handlers]
- [Services and dependency injection]
- [Hooks]
- [Error handling]
- [Testing]

@@ -257,9 +256,7 @@ - [Migration guide (V3)]

[fastify resty]: https://github.com/FastifyResty/fastify-resty
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.1/docs/Bootstrapping.md
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.1/docs/Controllers.md
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.1/docs/Request%20Handlers.md
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.1/docs/Services%20and%20dependency%20injection.md
[hooks]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.1/docs/Hooks.md
[error handling]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.1/docs/Error%20handling.md
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.1/docs/Testing.md
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.1/docs/Migration%20to%20v3.md
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.10.0/docs/Bootstrapping.md
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.10.0/docs/Controllers.md
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.10.0/docs/Request%20Handlers.md
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.10.0/docs/Services%20and%20dependency%20injection.md
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.10.0/docs/Testing.md
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.10.0/docs/Migration%20to%20v3.md

@@ -24,3 +24,3 @@ /**

const controller = config.controller;
const controllerInstance = await controller[CREATOR].register(instance, injectablesWithMocks, false);
const controllerInstance = await controller[CREATOR].register(instance, '', injectablesWithMocks, false);
instance.decorate('controller', controllerInstance);

@@ -42,2 +42,2 @@ await Promise.all([...getInjectedProps(controller), ...getInjectedProps(controller.prototype), ...getConstructorArgs(controller)]

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJlLWNvbnRyb2xsZXItdGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi90ZXN0aW5nL2NvbmZpZ3VyZS1jb250cm9sbGVyLXRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFFLE9BQU8sRUFBbUIsTUFBTSxTQUFTLENBQUM7QUFDbkQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFFaEYsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBR2xELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLGlCQUFpQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkYsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQzdELE9BQU8sRUFBRSxXQUFXLEVBQVcsTUFBT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9OXS5tYXAoKGl0KSA9PiBpdC5uYW1lKTtcbn1cblxuZnVuY3Rpb24gZ2V0Q29uc3RydWN0b3JBcmdzKGNvbnN0cnVjdG9yOiBJbmplY3RhYmxlQ2xhc3MpOiBBcnJheTx1bmtub3duPiB7XG4gIHJldHVybiBSZWZsZWN0LmdldE1ldGFkYXRhKCdkZXNpZ246cGFyYW10eXBlcycsIGNvbnN0cnVjdG9yKSB8fCBbXTtcbn1cbiJdfQ==

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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