fastify-decorators
Advanced tools
Comparing version 3.13.1 to 3.14.0
@@ -8,2 +8,12 @@ # Changelog | ||
## 3.14.0 | ||
### Added | ||
- FastifyRequest and FastifyReply injection option (backport #555) | ||
### Fixed | ||
- Undefined when extending from abstract class (#802) | ||
## 3.13.1 | ||
@@ -15,3 +25,2 @@ | ||
## 3.13.0 | ||
@@ -18,0 +27,0 @@ |
@@ -11,2 +11,3 @@ /** | ||
import { injectControllerOptions } from './helpers/inject-controller-options.js'; | ||
import { patchMethods } from './helpers/patch-methods.js'; | ||
import { ControllerTypeStrategies } from './strategies/controller-type.js'; | ||
@@ -22,2 +23,3 @@ function makeConfig(config) { | ||
injectControllerOptions(controller); | ||
patchMethods(controller); | ||
controller[CREATOR].register = async (instance, prefix = '', classLoader = instance[CLASS_LOADER]) => { | ||
@@ -32,2 +34,2 @@ let controllerInstance; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL2NvbnRyb2xsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBS0gsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ2hFLE9BQU8sRUFBRSxZQUFZLEVBQUUsT0FBTyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDNUQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDakYsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFFM0UsU0FBUyxVQUFVLENBQUMsTUFBa0M7SUFDcEQsSUFBSSxPQUFPLE1BQU0sS0FBSyxRQUFRO1FBQUUsTUFBTSxHQUFHLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSx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BU1NfTE9BREVSXSkgPT4ge1xuICAgICAgbGV0IGNvbnRyb2xsZXJJbnN0YW5jZTtcblxuICAgICAgYXdhaXQgaW5zdGFuY2UucmVnaXN0ZXIoXG4gICAgICAgIGFzeW5jIChpbnN0YW5jZSkgPT4ge1xuICAgICAgICAgIGNvbnRyb2xsZXJJbnN0YW5jZSA9IENvbnRyb2xsZXJUeXBlU3RyYXRlZ2llc1t0eXBlXShpbnN0YW5jZSwgY29udHJvbGxlciwgY2xhc3NMb2FkZXIsIHRhZ3MpO1xuICAgICAgICB9LFxuICAgICAgICB7IHByZWZpeDogcHJlZml4ICsgcm91dGUgfSxcbiAgICAgICk7XG5cbiAgICAgIHJldHVybiBjb250cm9sbGVySW5zdGFuY2U7XG4gICAgfTtcbiAgfTtcbn1cbiJdfQ== |
@@ -71,3 +71,3 @@ /** | ||
handlers.forEach((handler) => { | ||
instance[handler.method](handler.url, tags.length > 0 ? { ...handler.options, schema: { tags: tags.map((it) => it.name), ...handler.options.schema } } : handler.options, controllerInstance[handler.handlerMethod].bind(controllerInstance)); | ||
instance[handler.method](handler.url, tags.length > 0 ? { ...handler.options, schema: { tags: tags.map((it) => it.name), ...handler.options.schema } } : handler.options, (...args) => controllerInstance[handler.handlerMethod](...args)); | ||
}); | ||
@@ -83,2 +83,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci10eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGliL2RlY29yYXRvcnMvc3RyYXRlZ2llcy9jb250cm9sbGVyLXR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBS0gsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQ25FLE9BQU8sRUFBRSxjQUFjLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFB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Mgc3RyaW5nXS5iaW5kKGNvbnRyb2xsZXJJbnN0YW5jZSkpO1xuICB9KTtcbn1cblxuZnVuY3Rpb24gcmVnaXN0ZXJFcnJvckhhbmRsZXJzKFxuICBlcnJvckhhbmRsZXJzOiBJRXJyb3JIYW5kbGVyW10sXG4gIGluc3RhbmNlOiBGYXN0aWZ5SW5zdGFuY2UsXG4gIGNsYXNzSW5zdGFuY2U6IFJlY29yZDxzdHJpbmcsIChlcnJvcjogRXJyb3IsIHJlcXVlc3Q6IEZhc3RpZnlSZXF1ZXN0LCByZXBseTogRmFzdGlmeVJlcGx5KSA9PiB2b2lkPixcbikge1xuICBpbnN0YW5jZS5zZXRFcnJvckhhbmRsZXIoY3JlYXRlRXJyb3JzSGFuZGxlcihlcnJvckhhbmRsZXJzLCBjbGFzc0luc3RhbmNlKSk7XG59XG4iXX0= |
@@ -0,0 +0,0 @@ <h1 style="text-align: center">Fastify decorators</h1> |
@@ -0,0 +0,0 @@ <h1 style="text-align: center">Fastify decorators</h1> |
@@ -21,3 +21,3 @@ /** | ||
export { getInstanceByToken } from './utils/get-instance-by-token.js'; | ||
export { FastifyInstanceToken } from './symbols/index.js'; | ||
export { FastifyInstanceToken, FastifyRequestToken, FastifyReplyToken } from './symbols/index.js'; | ||
export { ALL } from './decorators/request-handlers.js'; | ||
@@ -24,0 +24,0 @@ export { DELETE } from './decorators/request-handlers.js'; |
@@ -19,3 +19,3 @@ /** | ||
export { getInstanceByToken } from './utils/get-instance-by-token.js'; | ||
export { FastifyInstanceToken } from './symbols/index.js'; | ||
export { FastifyInstanceToken, FastifyRequestToken, FastifyReplyToken } from './symbols/index.js'; | ||
export { ALL } from './decorators/request-handlers.js'; | ||
@@ -29,2 +29,2 @@ export { DELETE } from './decorators/request-handlers.js'; | ||
export { PUT } from './decorators/request-handlers.js'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291c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W4uanMnO1xuZXhwb3J0IHsgRmFzdGlmeUluc3RhbmNlVG9rZW4sIEZhc3RpZnlSZXF1ZXN0VG9rZW4sIEZhc3RpZnlSZXBseVRva2VuIH0gZnJvbSAnLi9zeW1ib2xzL2luZGV4LmpzJztcblxuZXhwb3J0IHsgQUxMIH0gZnJvbSAnLi9kZWNvcmF0b3JzL3JlcXVlc3QtaGFuZGxlcnMuanMnO1xuZXhwb3J0IHsgREVMRVRFIH0gZnJvbSAnLi9kZWNvcmF0b3JzL3JlcXVlc3QtaGFuZGxlcnMuanMnO1xuZXhwb3J0IHsgR0VUIH0gZnJvbSAnLi9kZWNvcmF0b3JzL3JlcXVlc3QtaGFuZGxlcnMuanMnO1xuZXhwb3J0IHsgSEVBRCB9IGZyb20gJy4vZGVjb3JhdG9ycy9yZXF1ZXN0LWhhbmRsZXJzLmpzJztcbmV4cG9ydCB7IE9QVElPTlMgfSBmcm9tICcuL2RlY29yYXRvcnMvcmVxdWVzdC1oYW5kbGVycy5qcyc7XG5leHBvcnQgeyBQQVRDSCB9IGZyb20gJy4vZGVjb3JhdG9ycy9yZXF1ZXN0LWhhbmRsZXJzLmpzJztcbmV4cG9ydCB7IFBPU1QgfSBmcm9tICcuL2RlY29yYXRvcnMvcmVxdWVzdC1oYW5kbGVycy5qcyc7XG5leHBvcnQgeyBQVVQgfSBmcm9tICcuL2RlY29yYXRvcnMvcmVxdWVzdC1oYW5kbGVycy5qcyc7XG5leHBvcnQgeyBSb3V0ZUNvbmZpZyB9IGZyb20gJy4vaW50ZXJmYWNlcy9yb3V0ZS1jb25maWcuanMnO1xuIl19 |
{ | ||
"name": "fastify-decorators", | ||
"version": "3.13.1", | ||
"version": "3.14.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", |
@@ -1,2 +0,2 @@ | ||
[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v3.13.1/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators) | ||
[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v3.14.0/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators) | ||
@@ -255,7 +255,7 @@ [![npm version](https://badge.fury.io/js/fastify-decorators.svg?colorB=brightgreen)](https://www.npmjs.com/package/fastify-decorators) | ||
[fastify resty]: https://github.com/FastifyResty/fastify-resty | ||
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Bootstrapping.md | ||
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Controllers.md | ||
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Request%20Handlers.md | ||
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Services%20and%20dependency%20injection.md | ||
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Testing.md | ||
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Migration%20to%20v3.md | ||
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.14.0/docs/Bootstrapping.md | ||
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.14.0/docs/Controllers.md | ||
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.14.0/docs/Request%20Handlers.md | ||
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.14.0/docs/Services%20and%20dependency%20injection.md | ||
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.14.0/docs/Testing.md | ||
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.14.0/docs/Migration%20to%20v3.md |
@@ -8,3 +8,8 @@ /** | ||
*/ | ||
export const injectables = new Map(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0YWJsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvcmVnaXN0cnkvaW5qZWN0YWJsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBSUgsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFnQixJQUFJLEdBQUcsRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEFuZHJleSBDaGFsa2luIDxMMmpMaWdhQGdtYWlsLmNvbT4gKGh0dHBzOi8vZ2l0aHViLmNvbS9MMmpMaWdhKS4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2dpdGh1Yi5jb20vTDJqTGlnYS9mYXN0aWZ5LWRlY29yYXRvcnMvYmxvYi9tYXN0ZXIvTElDRU5TRVxuICovXG5cbmltcG9ydCB0eXBlIHsgSW5qZWN0YWJsZXMgfSBmcm9tICcuLi9pbnRlcmZhY2VzL2luamVjdGFibGUtY2xhc3MuanMnO1xuXG5leHBvcnQgY29uc3QgaW5qZWN0YWJsZXM6IEluamVjdGFibGVzID0gbmV3IE1hcCgpO1xuIl19 | ||
import { FASTIFY_REPLY, FASTIFY_REQUEST, FastifyReplyToken, FastifyRequestToken } from '../symbols/index.js'; | ||
import { wrapInjectable } from '../utils/wrap-injectable.js'; | ||
export const injectables = new Map([ | ||
[FastifyRequestToken, wrapInjectable(FASTIFY_REQUEST)], | ||
[FastifyReplyToken, wrapInjectable(FASTIFY_REPLY)], | ||
]); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0YWJsZXMuanMiLCJzb3VyY2VSb290I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GQVNUSUZZX1JFUVVFU1QsIEZhc3RpZnlSZXBseVRva2VuLCBGYXN0aWZ5UmVxdWVzdFRva2VuIH0gZnJvbSAnLi4vc3ltYm9scy9pbmRleC5qcyc7XG5pbXBvcnQgeyB3cmFwSW5qZWN0YWJsZSB9IGZyb20gJy4uL3V0aWxzL3dyYXAtaW5qZWN0YWJsZS5qcyc7XG5cbmV4cG9ydCBjb25zdCBpbmplY3RhYmxlczogSW5qZWN0YWJsZXMgPSBuZXcgTWFwKFtcbiAgW0Zhc3RpZnlSZXF1ZXN0VG9rZW4sIHdyYXBJbmplY3RhYmxlKEZBU1RJRllfUkVRVUVTVCldLFxuICBbRmFzdGlmeVJlcGx5VG9rZW4sIHdyYXBJbmplY3RhYmxlKEZBU1RJRllfUkVQTFkpXSxcbl0pO1xuIl19 |
@@ -15,2 +15,6 @@ /** | ||
export declare const CLASS_LOADER: unique symbol; | ||
export declare const FASTIFY_REQUEST: unique symbol; | ||
export declare const FASTIFY_REPLY: unique symbol; | ||
export declare const FastifyInstanceToken: unique symbol; | ||
export declare const FastifyRequestToken: unique symbol; | ||
export declare const FastifyReplyToken: unique symbol; |
@@ -15,3 +15,7 @@ /** | ||
export const CLASS_LOADER = Symbol.for('fastify-decorators.class-loader'); | ||
export const FASTIFY_REQUEST = Symbol.for('fastify-decorators.fastify-request'); | ||
export const FASTIFY_REPLY = Symbol.for('fastify-decorators.fastify-reply'); | ||
export const FastifyInstanceToken = Symbol.for('fastify-decorators.fastify-instance'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvc3ltYm9scy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyw0Q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WZ5LWRlY29yYXRvcnMvYmxvYi9tYXN0ZXIvTElDRU5TRVxuICovXG5cbmV4cG9ydCBjb25zdCBDUkVBVE9SID0gU3ltYm9sLmZvcignZmFzdGlmeS1kZWNvcmF0b3JzLmNyZWF0b3InKTtcbmV4cG9ydCBjb25zdCBJTklUSUFMSVpFUiA9IFN5bWJvbC5mb3IoJ2Zhc3RpZnktZGVjb3JhdG9ycy5pbml0aWFsaXplcicpO1xuZXhwb3J0IGNvbnN0IEVSUk9SX0hBTkRMRVJTID0gU3ltYm9sLmZvcignZmFzdGlmeS1kZWNvcmF0b3JzLmVycm9yLWhhbmRsZXJzJyk7XG5leHBvcnQgY29uc3QgSEFORExFUlMgPSBTeW1ib2wuZm9yKCdmYXN0aWZ5LWRlY29yYXRvcnMuaGFuZGxlcnMnKTtcbmV4cG9ydCBjb25zdCBIT09LUyA9IFN5bWJvbC5mb3IoJ2Zhc3RpZnktZGVjb3JhdG9ycy5ob29rcycpO1xuZXhwb3J0IGNvbnN0IFNFUlZJQ0VfSU5KRUNUSU9OID0gU3ltYm9sLmZvcignZmFzdGlmeS1kZWNvcmF0b3JzLnNlcnZpY2UtaW5qZWN0aW9uJyk7XG5cbmV4cG9ydCBjb25zdCBDTEFTU19MT0FERVIgPSBTeW1ib2wuZm9yKCdmYXN0aWZ5LWRlY29yYXRvcnMuY2xhc3MtbG9hZGVyJyk7XG5cbmV4cG9ydCBjb25zdCBGYXN0aWZ5SW5zdGFuY2VUb2tlbiA9IFN5bWJvbC5mb3IoJ2Zhc3RpZnktZGVjb3JhdG9ycy5mYXN0aWZ5LWluc3RhbmNlJyk7XG4iXX0= | ||
export const FastifyRequestToken = Symbol.for('fastify-decorators.token.fastify-request'); | ||
export const FastifyReplyToken = Symbol.for('fastify-decorators.token.fastify-instance'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8u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NvbnN0IFNFUlZJQ0VfSU5KRUNUSU9OID0gU3ltYm9sLmZvcignZmFzdGlmeS1kZWNvcmF0b3JzLnNlcnZpY2UtaW5qZWN0aW9uJyk7XG5cbmV4cG9ydCBjb25zdCBDTEFTU19MT0FERVIgPSBTeW1ib2wuZm9yKCdmYXN0aWZ5LWRlY29yYXRvcnMuY2xhc3MtbG9hZGVyJyk7XG5cbmV4cG9ydCBjb25zdCBGQVNUSUZZX1JFUVVFU1QgPSBTeW1ib2wuZm9yKCdmYXN0aWZ5LWRlY29yYXRvcnMuZmFzdGlmeS1yZXF1ZXN0Jyk7XG5leHBvcnQgY29uc3QgRkFTVElGWV9SRVBMWSA9IFN5bWJvbC5mb3IoJ2Zhc3RpZnktZGVjb3JhdG9ycy5mYXN0aWZ5LXJlcGx5Jyk7XG5cbmV4cG9ydCBjb25zdCBGYXN0aWZ5SW5zdGFuY2VUb2tlbiA9IFN5bWJvbC5mb3IoJ2Zhc3RpZnktZGVjb3JhdG9ycy5mYXN0aWZ5LWluc3RhbmNlJyk7XG5leHBvcnQgY29uc3QgRmFzdGlmeVJlcXVlc3RUb2tlbiA9IFN5bWJvbC5mb3IoJ2Zhc3RpZnktZGVjb3JhdG9ycy50b2tlbi5mYXN0aWZ5LXJlcXVlc3QnKTtcbmV4cG9ydCBjb25zdCBGYXN0aWZ5UmVwbHlUb2tlbiA9IFN5bWJvbC5mb3IoJ2Zhc3RpZnktZGVjb3JhdG9ycy50b2tlbi5mYXN0aWZ5LWluc3RhbmNlJyk7XG4iXX0= |
@@ -14,2 +14,3 @@ /** | ||
controller: C; | ||
instance?: FastifyInstance; | ||
mocks?: ServiceMock[]; | ||
@@ -16,0 +17,0 @@ plugins?: Plugins; |
@@ -18,3 +18,4 @@ /** | ||
export async function configureControllerTest(config) { | ||
const instance = fastify(); | ||
var _a; | ||
const instance = (_a = config.instance) !== null && _a !== void 0 ? _a : fastify(); | ||
loadPlugins(instance, config.plugins); | ||
@@ -44,2 +45,2 @@ const inject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hbmNlLCBUeXBlU2NyaXB0IGNhbid0IGhhbmRsZSBpdCA6KFxuICByZXR1cm4gaW5zdGFuY2U7XG59XG5cbmZ1bmN0aW9uIGdldEluamVjdGVkUHJvcHModGFyZ2V0OiB1bmtub3duKTogQXJyYXk8dW5rbm93bj4ge1xuICBpZiAoIWhhc1NlcnZpY2VJbmplY3Rpb24odGFyZ2V0KSkgcmV0dXJuIFtdO1xuICByZXR1cm4gdGFyZ2V0W1NFUlZJQ0VfSU5KRUNUSU9OXS5tYXAoKGl0KSA9PiBpdC5uYW1lKTtcbn1cblxuZnVuY3Rpb24gZ2V0Q29uc3RydWN0b3JBcmdzKGNvbnN0cnVjdG9yOiBJbmplY3RhYmxlQ2xhc3MpOiBBcnJheTx1bmtub3duPiB7XG4gIHJldHVybiBSZWZsZWN0LmdldE1ldGFkYXRhKCdkZXNpZ246cGFyYW10eXBlcycsIGNvbnN0cnVjdG9yKSB8fCBbXTtcbn1cbiJdfQ== |
@@ -8,2 +8,3 @@ /** | ||
*/ | ||
import { FastifyInstance } from 'fastify'; | ||
import { Constructor } from '../decorators/helpers/inject-dependencies.js'; | ||
@@ -14,2 +15,3 @@ import { Plugins } from './fastify-plugins.js'; | ||
service: Constructor<Service>; | ||
instance?: FastifyInstance; | ||
mocks?: ServiceMock[]; | ||
@@ -16,0 +18,0 @@ plugins?: Plugins; |
@@ -22,6 +22,7 @@ /** | ||
export function configureServiceTest(config) { | ||
var _a; | ||
const service = config.service; | ||
const injectablesWithMocks = MocksManager.create(injectables, config.mocks); | ||
if (!injectablesWithMocks.has(FastifyInstanceToken)) { | ||
const fastifyInstance = fastify(); | ||
const fastifyInstance = (_a = config.instance) !== null && _a !== void 0 ? _a : fastify(); | ||
loadPlugins(fastifyInstance, config.plugins); | ||
@@ -57,2 +58,2 @@ injectablesWithMocks.set(FastifyInstanceToken, wrapInjectable(fastifyInstance)); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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HRhcmdldFtwXTtcbiAgICB9LFxuICB9KSBhcyBQcm9taXNlPFNlcnZpY2U+ICYgU2VydmljZTtcbn1cblxuZnVuY3Rpb24gaXNJbmplY3RhYmxlPFNlcnZpY2U+KHNlcnZpY2U6IENvbnN0cnVjdG9yPFNlcnZpY2U+KTogYXNzZXJ0cyBzZXJ2aWNlIGlzIEluamVjdGFibGVTZXJ2aWNlIHtcbiAgaWYgKCEoQ1JFQVRPUiBpbiBzZXJ2aWNlKSkge1xuICAgIHRocm93IG5ldyBFcnJvcignUHJvdmlkZWQgc2VydmljZSBkb2VzIG5vdCBhbm5vdGF0ZWQgd2l0aCBAU2VydmljZSEnKTtcbiAgfVxufVxuXG5mdW5jdGlvbiBoYXNBc3luY0luaXRpYWxpemVyKHNlcnZpY2U6IEluamVjdGFibGVTZXJ2aWNlKTogc2VydmljZSBpcyBJbmplY3RhYmxlU2VydmljZSAmIFJlcXVpcmVkPEluamVjdGFibGVTZXJ2aWNlPiB7XG4gIHJldHVybiBJTklUSUFMSVpFUiBpbiBzZXJ2aWNlO1xufVxuIl19 |
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
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
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
342977
120
2930