fastify-decorators
Advanced tools
Comparing version 3.8.0 to 3.9.0
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
import type { FastifyPluginAsync } from 'fastify'; | ||
import type { BootstrapConfig } from '../interfaces/index.js'; | ||
import { FastifyPluginAsync } from 'fastify'; | ||
import { BootstrapConfig } from '../interfaces/index.js'; | ||
export declare const bootstrap: FastifyPluginAsync<BootstrapConfig>; |
@@ -72,3 +72,3 @@ /** | ||
if (typeof require !== 'undefined') { | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
return require(module).__esModule ? require(module).default : require(module); | ||
@@ -81,2 +81,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdHN0cmFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2Jvb3RzdHJhcC9ib290c3RyYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBR0gsT0FBTyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDaEMsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLElBQUksQ0FBQztBQUNqQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzVCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFDcEMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFFdEUsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBR2xELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEUsT0FBTyxFQUFFLGtCQU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4vKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuYXN5bmMgZnVuY3Rpb24gbG9hZE1vZHVsZShtb2R1bGU6IHN0cmluZyk6IFByb21pc2U8SW5qZWN0YWJsZUNvbnRyb2xsZXI+IHtcbiAgaWYgKHR5cGVvZiByZXF1aXJlICE9PSAndW5kZWZpbmVkJykge1xuICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tdmFyLXJlcXVpcmVzXG4gICAgcmV0dXJuIHJlcXVpcmUobW9kdWxlKS5fX2VzTW9kdWxlID8gcmVxdWlyZShtb2R1bGUpLmRlZmF1bHQgOiByZXF1aXJlKG1vZHVsZSk7XG4gIH1cblxuICByZXR1cm4gaW1wb3J0KHBhdGhUb0ZpbGVVUkwobW9kdWxlKS50b1N0cmluZygpKS50aGVuKChtKSA9PiBtLmRlZmF1bHQpO1xufVxuXG5mdW5jdGlvbiB1c2VHcmFjZWZ1bFNodXRkb3duKGZhc3RpZnk6IEZhc3RpZnlJbnN0YW5jZSk6IHZvaWQge1xuICBmYXN0aWZ5LmFkZEhvb2soJ29uQ2xvc2UnLCAoKSA9PlxuICAgIFByb21pc2UuYWxsKFsuLi5zZXJ2aWNlc1dpdGhEZXN0cnVjdG9yc10ubWFwKChbU2VydmljZSwgcHJvcGVydHldKSA9PiBnZXRJbnN0YW5jZUJ5VG9rZW48dHlwZW9mIFNlcnZpY2U+KFNlcnZpY2UpW3Byb3BlcnR5XSgpKSksXG4gICk7XG59XG4iXX0= |
@@ -8,2 +8,15 @@ # Changelog | ||
## 3.9.0 | ||
### Added | ||
- Experimental plugins APIs | ||
- `repository.directory` field to `package.json` | ||
### Changed | ||
- Inline CJS source maps | ||
- Provide TypeScript 3.4 compatible typings by default | ||
- Documentation minor updates | ||
## 3.8.0 | ||
@@ -10,0 +23,0 @@ |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { ControllerConfig } from '../interfaces/index.js'; | ||
import { ControllerConfig } from '../interfaces/index.js'; | ||
/** | ||
@@ -11,0 +11,0 @@ * Creates register method on controller to allow bootstrap it |
@@ -33,2 +33,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL2NvbnRyb2xsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBS0gsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ2hFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzNELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ2pGLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRTNFLFNBQVMsVUFBVSxDQUFDLE1BQWtDO0lBQ3BELElBQUksT0FBTyxNQUFNLEtBQUssUUFBUTtRQUFFLE1BQU0sR0FBRyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsQ0FBQztJQUUzRCxPQUFPLEVBQUUsSUFBSSxFQUFFLGNBQWMsQ0FBQyxTQUFTLEVBQUUsS0FBSyxFQUFFLEdBQUcsRUFBRSxHQUFHLE1BQU0sRUFBRSxDQUFDO0FBQ25FLENBQUM7QUFRRCxNQUFNLFVBQVUsVUFBVSxDQUFDLE1BQWtDO0lBQzNELE9BQU8sQ0FBQyxVQUEyQixFQUFRLEVBQUU7UUFDM0MsTUFBTSxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsR0FBRyxVQUFVLENBQUMsTUFB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x0ID0gdHJ1ZSkgPT4ge1xuICAgICAgY29udHJvbGxlcltJTkpFQ1RBQkxFU10gPSBpbmplY3RhYmxlc01hcDtcbiAgICAgIGNvbnRyb2xsZXIucHJvdG90eXBlW0lOSkVDVEFCTEVTXSA9IGluamVjdGFibGVzTWFwO1xuXG4gICAgICBsZXQgY29udHJvbGxlckluc3RhbmNlO1xuXG4gICAgICBhd2FpdCBpbnN0YW5jZS5yZWdpc3RlcihcbiAgICAgICAgYXN5bmMgKGluc3RhbmNlKSA9PiB7XG4gICAgICAgICAgY29udHJvbGxlckluc3RhbmNlID0gQ29udHJvbGxlclR5cGVTdHJhdGVnaWVzW3R5cGVdKGluc3RhbmNlLCBjb250cm9sbGVyLCBpbmplY3RhYmxlc01hcCwgY2FjaGVSZXN1bHQpO1xuICAgICAgICB9LFxuICAgICAgICB7IHByZWZpeDogcm91dGUgfSxcbiAgICAgICk7XG5cbiAgICAgIHJldHVybiBjb250cm9sbGVySW5zdGFuY2U7XG4gICAgfTtcbiAgfTtcbn1cbiJdfQ== |
@@ -8,5 +8,5 @@ /** | ||
*/ | ||
import type { Constructor } from './helpers/inject-dependencies.js'; | ||
import { Constructor } from './helpers/inject-dependencies.js'; | ||
export declare function ErrorHandler(): PropertyDecorator; | ||
export declare function ErrorHandler(code: string): PropertyDecorator; | ||
export declare function ErrorHandler<T extends Error>(configuration: Constructor<T>): PropertyDecorator; |
@@ -27,2 +27,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL2Vycm9yLWhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBR0gsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3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G5cbmludGVyZmFjZSBFcnJvcldpdGhDb2RlIGV4dGVuZHMgRXJyb3Ige1xuICBjb2RlPzogc3RyaW5nO1xufVxuXG5mdW5jdGlvbiBoYW5kbGVyRmFjdG9yeShhY2NlcHRzOiA8VCBleHRlbmRzIEVycm9yPihlcnJvcj86IFQpID0+IGJvb2xlYW4sIGhhbmRsZXJOYW1lOiBzdHJpbmcgfCBzeW1ib2wpOiBJRXJyb3JIYW5kbGVyIHtcbiAgcmV0dXJuIHsgYWNjZXB0cywgaGFuZGxlck5hbWUgfTtcbn1cbiJdfQ== |
@@ -13,13 +13,9 @@ /** | ||
[HANDLERS]?: IHandler[]; | ||
}): asserts val is { | ||
}): void; | ||
export declare function hasHandlers<Constructor>(val: Constructor): val is Constructor & { | ||
[HANDLERS]: IHandler[]; | ||
}; | ||
export declare function hasHandlers<T>(val: T): val is T & { | ||
[HANDLERS]: IHandler[]; | ||
}; | ||
export declare function ensureErrorHandlers(val: { | ||
[ERROR_HANDLERS]?: IErrorHandler[]; | ||
}): asserts val is { | ||
[ERROR_HANDLERS]: IErrorHandler[]; | ||
}; | ||
}): void; | ||
export declare function hasErrorHandlers<T>(val: T): val is T & { | ||
@@ -30,5 +26,3 @@ [ERROR_HANDLERS]: IErrorHandler[]; | ||
[HOOKS]?: IHook[]; | ||
}): asserts val is { | ||
[HOOKS]: IHook[]; | ||
}; | ||
}): void; | ||
export declare function hasHooks<T>(val: T): val is T & { | ||
@@ -39,7 +33,5 @@ [HOOKS]: IHook[]; | ||
[SERVICE_INJECTION]?: ServiceInjection[]; | ||
}): asserts val is { | ||
[SERVICE_INJECTION]: ServiceInjection[]; | ||
}; | ||
}): void; | ||
export declare function hasServiceInjection<T>(val: T): val is T & { | ||
[SERVICE_INJECTION]: ServiceInjection[]; | ||
}; |
@@ -61,2 +61,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3MtcHJvcGVydGllcy5qcyI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RJT05dPzogU2VydmljZUluamVjdGlvbltdIH0pOiBhc3NlcnRzIHZhbCBpcyB7IFtTRVJWSUNFX0lOSkVDVElPTl06IFNlcnZpY2VJbmplY3Rpb25bXSB9IHtcbiAgaWYgKCEoU0VSVklDRV9JTkpFQ1RJT04gaW4gdmFsKSkge1xuICAgIFJlZmxlY3QuZGVmaW5lUHJvcGVydHkodmFsLCBTRVJWSUNFX0lOSkVDVElPTiwge1xuICAgICAgdmFsdWU6IFtdLFxuICAgICAgZW51bWVyYWJsZTogZmFsc2UsXG4gICAgICBjb25maWd1cmFibGU6IGZhbHNlLFxuICAgICAgd3JpdGFibGU6IGZhbHNlLFxuICAgIH0pO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBoYXNTZXJ2aWNlSW5qZWN0aW9uPFQ+KHZhbDogVCk6IHZhbCBpcyBUICYgeyBbU0VSVklDRV9JTkpFQ1RJT05dOiBTZXJ2aWNlSW5qZWN0aW9uW10gfSB7XG4gIHJldHVybiBTRVJWSUNFX0lOSkVDVElPTiBpbiB2YWw7XG59XG4iXX0= |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
import type { FastifyReply, FastifyRequest } from 'fastify'; | ||
import { FastifyReply, FastifyRequest } from 'fastify'; | ||
import { IErrorHandler } from '../../interfaces/controller.js'; | ||
export declare function createErrorsHandler(errorHandlers: IErrorHandler[], classInstance: any): (error: Error, request: FastifyRequest, reply: FastifyReply) => Promise<void>; | ||
export declare function createErrorsHandler(errorHandlers: IErrorHandler[], classInstance: Record<string, (error: Error, request: FastifyRequest, reply: FastifyReply) => void>): (error: Error, request: FastifyRequest, reply: FastifyReply) => Promise<void>; |
@@ -17,2 +17,2 @@ export function createErrorsHandler(errorHandlers, classInstance) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWVycm9ycy1oYW5kbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi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VxuICAgIH1cblxuICAgIHRocm93IGVycm9yO1xuICB9O1xufVxuIl19 |
@@ -9,2 +9,2 @@ /** | ||
import { InjectableController } from '../../interfaces/injectable-class.js'; | ||
export declare function injectControllerOptions(controller: unknown): asserts controller is InjectableController; | ||
export declare function injectControllerOptions(controller: unknown): void; |
@@ -25,2 +25,3 @@ /** | ||
Object.defineProperty(target, propertyKey, { | ||
// @ts-expect-error checked above | ||
value: injectables.get(name)[CREATOR].register(injectables, cacheResult), | ||
@@ -42,2 +43,2 @@ enumerable: true, | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0LWRlcGVuZGVuY2llcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL2hlbHBlcnMvaW5qZWN0LWRlcGVuZGVuY2llcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFHSCxPQUFPLEVBQUUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDcEUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFjNUQsTUFBTSxVQUFVLDhCQUE4QixDQUM1QyxXQUEyQixFQUMzQixXQUF3QixFQUN4QixXQUFvQjtJQUVwQixJQUFJLE9BQU8sT0FBTyxDQUFDLFdBQVcsS0FBSyxVQUFVO1FBQUUsT0FBTyxJQUFJLFdBQVcsRUFBRSxDQUFDO0lBRXhFLGdCQUFnQixDQUFDLFdBQVcsRUFBRSxXQUFXLEVBQUUsV0FBVyxFQUFFLFdBQVcsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUMxRSxnQkFBZ0IsQ0FBQyxXQUFXLENBQUMsU0FBUyxFQUFFLFdBQVcsRUFBRSxXQUFXLEVBQUUsV0FBVyxDQUFDLElBQUksQ0FB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3IFR5cGVFcnJvcihgSW52YWxpZCBhcmd1bWVudCBwcm92aWRlZCBpbiAke2NsYXNzTmFtZX0ncyBjb25zdHJ1Y3Rvci4gRXhwZWN0ZWQgY2xhc3MgYW5ub3RhdGVkIHdpdGggQFNlcnZpY2UuYCk7XG4gICAgfSk7XG59XG4iXX0= |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { RouteShorthandOptions } from 'fastify'; | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { HttpMethods } from '../../interfaces/http-methods.js'; | ||
@@ -11,0 +11,0 @@ import { RouteConfig } from '../../interfaces/route-config.js'; |
@@ -75,2 +75,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC1kZWNvcmF0b3JzLmZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWIvZGVjb3JhdG9ycy9oZWxwZXJzL3JlcXVlc3QtZGVjb3JhdG9ycy5mYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQU1ILE9BQU8sRUFBRSxPQUFPLEVBQUUsY0FBYyxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNsRixPQUFPLEVBQUUsY0FBYyxFQUFFLGdCQUFnQixFQUFFLFFBQVEsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ25GLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBSWpFLFNBQVMsV0FBVyxDQUFDLFNBQStCLEdBQUcsRUFBRSxVQUFpQyxFQUFFO0lBQzFGLElBQUksT0FBTyxNQUFNLEtBQUssUUFBUTtRQUFFLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxFQUFFLE9BQU8sRUFBRSxDQUFDO0lBRWhFLE1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SA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGdldFRhcmdldCh0YXJnZXQsIHJlcXVlc3QsIC4uLnJlc3QpW2hvb2suaGFuZGxlck5hbWVdKHJlcXVlc3QsIC4uLnJlc3QpO1xuICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAgIGNvbnN0IG9wdGlvbiA9IGNvbmZpZy5vcHRpb25zW2hvb2submFtZV07XG4gICAgICAgICAgICAgIGlmIChvcHRpb24gPT0gbnVsbCkgY29uZmlnLm9wdGlvbnNbaG9vay5uYW1lXSA9IGhvb2tGbjtcbiAgICAgICAgICAgICAgZWxzZSBpZiAoQXJyYXkuaXNBcnJheShvcHRpb24pKSBvcHRpb24ucHVzaChob29rRm4pO1xuICAgICAgICAgICAgICBlbHNlIGNvbmZpZy5vcHRpb25zW2hvb2submFtZV0gPSBbb3B0aW9uIGFzICguLi5hcmdzOiB1bmtub3duW10pID0+IHZvaWQsIGhvb2tGbl07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmIChoYXNFcnJvckhhbmRsZXJzKHRhcmdldCkpIHtcbiAgICAgICAgICAgIGNvbmZpZy5vcHRpb25zLmVycm9ySGFuZGxlciA9IChlcnJvciwgcmVxdWVzdCwgLi4ucmVzdCkgPT4ge1xuICAgICAgICAgICAgICBjb25zdCBlcnJvcnNIYW5kbGVyID0gY3JlYXRlRXJyb3JzSGFuZGxlcih0YXJnZXRbRVJST1JfSEFORExFUlNdLCBnZXRUYXJnZXQodGFyZ2V0LCByZXF1ZXN0LCAuLi5yZXN0KSk7XG5cbiAgICAgICAgICAgICAgcmV0dXJuIGVycm9yc0hhbmRsZXIoZXJyb3IsIHJlcXVlc3QsIC4uLnJlc3QpO1xuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9XG4gICAgICAgICAgaW5zdGFuY2VbbWV0aG9kXShjb25maWcudXJsLCBjb25maWcub3B0aW9ucywgZnVuY3Rpb24gKHJlcXVlc3QsIC4uLn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ICAgICAgICAgIGlmIChoYXNIb29rcyh0YXJnZXQpKSB7XG4gICAgICAgICAgICBmb3IgKGNvbnN0IGhvb2sgb2YgdGFyZ2V0W0hPT0tTXSBhcyBSZXF1ZXN0SG9va1tdKSB7XG4gICAgICAgICAgICAgIGNvbnN0IGhvb2tGbiA9IChyZXF1ZXN0OiBGYXN0aWZ5UmVxdWVzdCwgLi4ucmVzdDogdW5rbm93bltdKSA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGdldFRhcmdldCh0YXJnZXQsIHJlcXVlc3QsIC4uLnJlc3QpW2hvb2suaGFuZGxlck5hbWVdKHJlcXVlc3QsIC4uLnJlc3QpO1xuICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAgIGNvbnN0IG9wdGlvbiA9IGNvbmZpZy5vcHRpb25zW2hvb2submFtZV07XG4gICAgICAgICAgICAgIGlmIChvcHRpb24gPT0gbnVsbCkgY29uZmlnLm9wdGlvbnNbaG9vay5uYW1lXSA9IGhvb2tGbjtcbiAgICAgICAgICAgICAgZWxzZSBpZiAoQXJyYXkuaXNBcnJheShvcHRpb24pKSBvcHRpb24ucHVzaChob29rRm4pO1xuICAgICAgICAgICAgICBlbHNlIGNvbmZpZy5vcHRpb25zW2hvb2submFtZV0gPSBbb3B0aW9uIGFzICguLi5hcmdzOiB1bmtub3duW10pID0+IHZvaWQsIGhvb2tGbl07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmIChoYXNFcnJvckhhbmRsZXJzKHRhcmdldCkpIHtcbiAgICAgICAgICAgIGNvbmZpZy5vcHRpb25zLmVycm9ySGFuZGxlciA9IChlcnJvciwgcmVxdWVzdCwgLi4ucmVzdCkgPT4ge1xuICAgICAgICAgICAgICBjb25zdCBlcnJvcnNIYW5kbGVyID0gY3JlYXRlRXJyb3JzSGFuZGxlcih0YXJnZXRbRVJST1JfSEFORExFUlNdLCBnZXRUYXJnZXQodGFyZ2V0LCByZXF1ZXN0LCAuLi5yZXN0KSk7XG5cbiAgICAgICAgICAgICAgcmV0dXJuIGVycm9yc0hhbmRsZXIoZXJyb3IsIHJlcXVlc3QsIC4uLnJlc3QpO1xuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9XG4gICAgICAgICAgaW5zdGFuY2VbbWV0aG9kXShjb25maWcudXJsLCBjb25maWcub3B0aW9ucywgZnVuY3Rpb24gKHJlcXVlc3QsIC4uLnJlc3QpIHtcbiAgICAgICAgICAgIHJldHVybiBnZXRUYXJnZXQodGFyZ2V0LCByZXF1ZXN0LCAuLi5yZXN0KS5oYW5kbGUoKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgIH07XG4gICAgfTtcbiAgfTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNvbnRyb2xsZXJNZXRob2REZWNvcmF0b3JzRmFjdG9yeShtZXRob2Q6IEh0dHBNZXRob2RzLCBjb25maWc6IFBhcnNlZFJvdXRlQ29uZmlnLCB7IGNvbnN0cnVjdG9yIH06IGFueSwgcHJvcEtleTogc3RyaW5nIHwgc3ltYm9sKTogdm9pZCB7XG4gIGVuc3VyZUhhbmRsZXJzKGNvbnN0cnVjdG9yKTtcblxuICBjb25zdHJ1Y3RvcltIQU5ETEVSU10ucHVzaCh7XG4gICAgdXJsOiBjb25maWcudXJsLFxuICAgIG1ldGhvZCxcbiAgICBvcHRpb25zOiBjb25maWcub3B0aW9ucyxcbiAgICBoYW5kbGVyTWV0aG9kOiBwcm9wS2V5LFxuICB9KTtcbn1cbiJdfQ== |
@@ -7,2 +7,2 @@ export declare const readyMap: Map<unknown, Promise<void>>; | ||
*/ | ||
export declare function Initializer(dependencies?: any[]): PropertyDecorator; | ||
export declare function Initializer(dependencies?: unknown[]): PropertyDecorator; |
@@ -22,2 +22,2 @@ import { INITIALIZER } from '../symbols/index.js'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdGlhbGl6ZXIu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5jb25zdHJ1Y3RvcjtcbiAgICBjb25zdCByZWFkeSA9IG5ldyBEZWZlcnJlZCgpO1xuXG4gICAgdGFyZ2V0W0lOSVRJQUxJWkVSXSA9IChzZWxmOiBSZWNvcmQ8dHlwZW9mIHByb3BlcnR5S2V5LCAoKSA9PiB2b2lkPikgPT4ge1xuICAgICAgUHJvbWlzZS5hbGwoZGVwZW5kZW5jaWVzLm1hcCgoZGVwKSA9PiByZWFkeU1hcC5nZXQoZGVwKSkpXG4gICAgICAgIC50aGVuKCgpID0+IHNlbGZbcHJvcGVydHlLZXkgYXMgc3RyaW5nXSgpKVxuICAgICAgICAudGhlbihyZWFkeS5yZXNvbHZlKVxuICAgICAgICAuY2F0Y2gocmVhZHkucmVqZWN0KTtcbiAgICB9O1xuXG4gICAgcmVhZHlNYXAuc2V0KHRhcmdldCwgcmVhZHkucHJvbWlzZSk7XG4gIH07XG59XG4iXX0= |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
import type { RouteShorthandOptions } from 'fastify'; | ||
import type { RouteConfig } from '../interfaces/index.js'; | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { RouteConfig } from '../interfaces/index.js'; | ||
export declare function ALL(): (target: unknown, propKey?: string | symbol) => void; | ||
@@ -12,0 +12,0 @@ export declare function ALL(url: string): (target: unknown, propKey?: string | symbol) => void; |
@@ -33,2 +33,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC1oYW5kbGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL3JlcXVlc3QtaGFuZGxlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBSUgsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFNbkYsTUFBTSxVQUFVLEdBQUcsQ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esMap = injectables, cacheResult = true) { | ||
var _a; | ||
target[INJECTABLES] = injectablesMap; | ||
@@ -25,4 +26,3 @@ target.prototype[INJECTABLES] = injectablesMap; | ||
instance = createWithInjectedDependencies(target, injectablesMap, cacheResult); | ||
if (target[INITIALIZER]) | ||
target[INITIALIZER](instance); | ||
(_a = target[INITIALIZER]) === null || _a === void 0 ? void 0 : _a.call(target, instance); | ||
return instance; | ||
@@ -33,2 +33,2 @@ }, | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL3NlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxPQUFPLEVBQUUsV0FBVyxFQUFFLFdBQVcsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3hFLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBT2xGLE1BQU0sVUFBVSxPQUFPLENBQUMsZUFBaUM7SUFDdkQsT0FBTyxDQUFDLE1BQVcsRUFBRSxFQUFFO1FBQ3JCLElBQUksUUFBaUIsQ0FBQztRQUV0QixXQUFXLENBQUMsR0FBRyxDQUFDLE1BQU0sRUFBRSxNQUFNLENBQUMsQ0FBQztRQUNoQyxJQUFJLGVBQWU7WUFBRSxXQUFXLENBQUMsR0FBRyxDQUFDLGVBQWUsRUFBRSxNQUFNLENBQUMsQ0FBQztRQUM5RCxNQUFNLENBQUMsT0FBTyxDQUFDLEdBQUc7WUFDaEIsUUFBUSxDQUFDLGNBQWMsR0FBRyxXQUFXLEVBQUUsV0FBVyxHQUFHLElBQUk7Z0JBQ3ZELE1BQU0s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hcyBUeXBlO1xuICAgICAgICBpbnN0YW5jZSA9IGNyZWF0ZVdpdGhJbmplY3RlZERlcGVuZGVuY2llczxUeXBlPih0YXJnZXQsIGluamVjdGFibGVzTWFwLCBjYWNoZVJlc3VsdCk7XG5cbiAgICAgICAgdGFyZ2V0W0lOSVRJQUxJWkVSXT8uKGluc3RhbmNlKTtcblxuICAgICAgICByZXR1cm4gaW5zdGFuY2UgYXMgVHlwZTtcbiAgICAgIH0sXG4gICAgfTtcbiAgfTtcbn1cbiJdfQ== |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
import type { FastifyInstance } from 'fastify'; | ||
import type { InjectableController } from '../../interfaces/index.js'; | ||
import { FastifyInstance } from 'fastify'; | ||
import { InjectableController } from '../../interfaces/index.js'; | ||
import { Injectables } from '../../interfaces/injectable-class.js'; | ||
@@ -12,0 +12,0 @@ import { ControllerType } from '../../registry/controller-type.js'; |
@@ -78,2 +78,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci10eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGliL2RlY29yYXRvcnMvc3RyYXRlZ2llcy9jb250cm9sbGVyLXR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBS0gsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQ25FLE9BQU8sRUFBRSxjQUFjLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxXQUFXLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDekYsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUFDMUUsT0FBTyxFQU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W5zdGFuY2U6IEZhc3RpZnlJbnN0YW5jZSwgY29udHJvbGxlckluc3RhbmNlOiBhbnkpOiB2b2lkIHtcbiAgaGFuZGxlcnMuZm9yRWFjaCgoaGFuZGxlcikgPT4ge1xuICAgIGluc3RhbmNlW2hhbmRsZXIubWV0aG9kXShcbiAgICAgIGhhbmRsZXIudXJsLFxuICAgICAgaGFuZGxlci5vcHRpb25zLFxuICAgICAgY29udHJvbGxlckluc3RhbmNlW2hhbmRsZXIuaGFuZGxlck1ldGhvZF0uYmluZChjb250cm9sbGVySW5zdGFuY2UpLFxuICAgICk7XG4gIH0pO1xufVxuXG5mdW5jdGlvbiByZWdpc3Rlckhvb2tzKGhvb2tzOiBJSG9va1tdLCBpbnN0YW5jZTogRmFzdGlmeUluc3RhbmNlLCBjb250cm9sbGVySW5zdGFuY2U6IGFueSk6IHZvaWQge1xuICBob29rcy5mb3JFYWNoKChob29rKSA9PiB7XG4gICAgaW5zdGFuY2UuYWRkSG9vayhob29rLm5hbWUsIGNvbnRyb2xsZXJJbnN0YW5jZVtob29rLmhhbmRsZXJOYW1lXS5iaW5kKGNvbnRyb2xsZXJJbnN0YW5jZSkpO1xuICB9KTtcbn1cblxuZnVuY3Rpb24gcmVnaXN0ZXJFcnJvckhhbmRsZXJzKGVycm9ySGFuZGxlcnM6IElFcnJvckhhbmRsZXJbXSwgaW5zdGFuY2U6IEZhc3RpZnlJbnN0YW5jZSwgY2xhc3NJbnN0YW5jZTogYW55KSB7XG4gIGluc3RhbmNlLnNldEVycm9ySGFuZGxlcihjcmVhdGVFcnJvcnNIYW5kbGVyKGVycm9ySGFuZGxlcnMsIGNsYXNzSW5zdGFuY2UpKTtcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci10eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGliL2RlY29yYXRvcnMvc3RyY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9pZD4sXG4pOiB2b2lkIHtcbiAgaG9va3MuZm9yRWFjaCgoaG9vaykgPT4ge1xuICAgIGluc3RhbmNlLmFkZEhvb2soaG9vay5uYW1lIGFzICdvblJlcXVlc3QnLCBjb250cm9sbGVySW5zdGFuY2VbaG9vay5oYW5kbGVyTmFtZSBhcyBzdHJpbmddLmJpbmQoY29udHJvbGxlckluc3RhbmNlKSk7XG4gIH0pO1xufVxuXG5mdW5jdGlvbiByZWdpc3RlckVycm9ySGFuZGxlcnMoXG4gIGVycm9ySGFuZGxlcnM6IElFcnJvckhhbmRsZXJbXSxcbiAgaW5zdGFuY2U6IEZhc3RpZnlJbnN0YW5jZSxcbiAgY2xhc3NJbnN0YW5jZTogUmVjb3JkPHN0cmluZywgKGVycm9yOiBFcnJvciwgcmVxdWVzdDogRmFzdGlmeVJlcXVlc3QsIHJlcGx5OiBGYXN0aWZ5UmVwbHkpID0+IHZvaWQ+LFxuKSB7XG4gIGluc3RhbmNlLnNldEVycm9ySGFuZGxlcihjcmVhdGVFcnJvcnNIYW5kbGVyKGVycm9ySGFuZGxlcnMsIGNsYXNzSW5zdGFuY2UpKTtcbn1cbiJdfQ== |
@@ -0,0 +0,0 @@ <h1 style="text-align: center">Fastify decorators</h1> |
@@ -0,0 +0,0 @@ <h1 style="text-align: center">Fastify decorators</h1> |
@@ -0,0 +0,0 @@ # Migration from v2.x to v3.x |
@@ -0,0 +0,0 @@ <h1 style="text-align: center">Fastify decorators</h1> |
@@ -0,0 +0,0 @@ <h1 style="text-align: center">Fastify decorators</h1> |
@@ -69,2 +69,3 @@ <h1 style="text-align: center">Fastify decorators</h1> | ||
'^fastify-decorators/testing$': 'fastify-decorators/testing/index.cjs', | ||
'^fastify-decorators/plugins$': 'fastify-decorators/plugins/index.cjs', | ||
'^fastify-decorators$': 'fastify-decorators/index.cjs', | ||
@@ -234,4 +235,3 @@ }, | ||
rolesService.isAdmin.and.returnValue(false); | ||
const bearer = | ||
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlcyI6W119.0Dd6yUeJ4UbCr8WyXOiK3BhqVVwJFk5c53ipJBWenmc'; | ||
const bearer = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlcyI6W119.0Dd6yUeJ4UbCr8WyXOiK3BhqVVwJFk5c53ipJBWenmc'; | ||
@@ -275,4 +275,3 @@ const result = service.hasSufficientRole(bearer); | ||
rolesService.isAdmin.and.returnValue(false); | ||
const bearer = | ||
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlcyI6W119.0Dd6yUeJ4UbCr8WyXOiK3BhqVVwJFk5c53ipJBWenmc'; | ||
const bearer = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlcyI6W119.0Dd6yUeJ4UbCr8WyXOiK3BhqVVwJFk5c53ipJBWenmc'; | ||
@@ -336,3 +335,3 @@ const result = service.hasSufficientRole(bearer); | ||
[`reflect-metadata`]: http://npmjs.com/package/reflect-metadata | ||
[`reflect-metadata`]: https://npmjs.com/package/reflect-metadata | ||
[`jest.environment.cjs`]: ../jest.environment.cjs |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { FastifyPluginOptions } from 'fastify'; | ||
import { FastifyPluginOptions } from 'fastify'; | ||
import { Constructor } from '../decorators/helpers/inject-dependencies.js'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { ControllerType } from '../registry/controller-type.js'; | ||
import { ControllerType } from '../registry/controller-type.js'; | ||
/** | ||
@@ -11,0 +11,0 @@ * Config for controllers |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
import type { RouteShorthandOptions } from 'fastify'; | ||
import type { HttpMethods } from './http-methods.js'; | ||
import { RouteShorthandOptions } from 'fastify'; | ||
import { HttpMethods } from './http-methods.js'; | ||
export interface IHandler { | ||
@@ -22,4 +22,4 @@ url: string; | ||
export interface IHook { | ||
name: any; | ||
name: string; | ||
handlerName: string | symbol; | ||
} |
@@ -9,2 +9,2 @@ /** | ||
export {}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9pbnRlcmZhY2VzL2NvbnRyb2xsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEFuZHJleSBDaGFsa2luIDxMMmpMaWdhQGdtYWlsLmNvbT4gKGh0dHBzOi8vZ2l0aHViLmNvbS9MMmpMaWdhKS4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2dpdGh1Yi5jb20vTDJqTGlnYS9mYXN0aWZ5LWRlY29yYXRvcnMvYmxvYi9tYXN0ZXIvTElDRU5TRVxuICovXG5cbmltcG9ydCB0eXBlIHsgUm91dGVTaG9ydGhhbmRPcHRpb25zIH0gZnJvbSAnZmFzdGlmeSc7XG5pbXBvcnQgdHlwZSB7IEh0dHBNZXRob2RzIH0gZnJvbSAnLi9odHRwLW1ldGhvZHMuanMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIElIYW5kbGVyIHtcbiAgdXJsOiBzdHJpbmc7XG4gIG1ldGhvZDogSHR0cE1ldGhvZHM7XG4gIG9wdGlvbnM6IFJvdXRlU2hvcnRoYW5kT3B0aW9ucztcbiAgaGFuZGxlck1ldGhvZDogc3RyaW5nIHwgc3ltYm9sO1xufVxuXG5le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QgaW50ZXJmYWNlIElIYW5kbGVyIHtcbiAgdXJsOiBzdHJpbmc7XG4gIG1ldGhvZDogSHR0cE1ldGhvZHM7XG4gIG9wdGlvbnM6IFJvdXRlU2hvcnRoYW5kT3B0aW9ucztcbiAgaGFuZGxlck1ldGhvZDogc3RyaW5nIHwgc3ltYm9sO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIElFcnJvckhhbmRsZXIge1xuICBhY2NlcHRzPFQgZXh0ZW5kcyBFcnJvcj4oZXJyb3I/OiBUKTogYm9vbGVhbjtcblxuICBoYW5kbGVyTmFtZTogc3RyaW5nIHwgc3ltYm9sO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIElIb29rIHtcbiAgbmFtZTogc3RyaW5nO1xuICBoYW5kbGVyTmFtZTogc3RyaW5nIHwgc3ltYm9sO1xufVxuIl19 |
@@ -1,14 +0,7 @@ | ||
/** | ||
* @license | ||
* Copyright Andrey Chalkin <L2jLiga@gmail.com> (https://github.com/L2jLiga). All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://github.com/L2jLiga/fastify-decorators/blob/master/LICENSE | ||
*/ | ||
export type { BootstrapConfig } from './bootstrap-config.js'; | ||
export type { IErrorHandler, IHandler, IHook } from './controller.js'; | ||
export type { ControllerConfig } from './controller-config.js'; | ||
export { BootstrapConfig } from './bootstrap-config.js'; | ||
export { IErrorHandler, IHandler, IHook } from './controller.js'; | ||
export { ControllerConfig } from './controller-config.js'; | ||
export { HttpMethods } from './http-methods.js'; | ||
export type { InjectableController } from './injectable-class.js'; | ||
export { InjectableController } from './injectable-class.js'; | ||
export { RequestHandler, RequestHook } from './request-handler.js'; | ||
export type { RouteConfig } from './route-config.js'; | ||
export { RouteConfig } from './route-config.js'; |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
import type { FastifyInstance } from 'fastify'; | ||
import type { CREATOR, INITIALIZER, INJECTABLES } from '../symbols/index.js'; | ||
import { FastifyInstance } from 'fastify'; | ||
import { CREATOR, INITIALIZER, INJECTABLES } from '../symbols/index.js'; | ||
export declare type Injectables = Map<string | symbol | unknown, InjectableService>; | ||
@@ -12,0 +12,0 @@ export interface InjectableService extends InjectableClass, Object { |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { ContextConfigDefault, FastifyInstance, FastifyReply, FastifyRequest, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerBase, RawServerDefault, RequestGenericInterface } from 'fastify'; | ||
import { ContextConfigDefault, FastifyInstance, FastifyReply, FastifyRequest, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerBase, RawServerDefault, RequestGenericInterface } from 'fastify'; | ||
import { CREATOR } from '../symbols/index.js'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -18,2 +18,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC1oYW5kbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2ludGVyZmFjZXMvcmVxdWVzdC1oYW5kbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQWFILE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUU5Qzs7R0FFRztBQUNILE1BQU0sT0FBZ0IsY0FBYztJQU9sQyxZQUNZLE9BQThELEVBQzlELEtBQW1GO1FBRG5GLFlBQU8sR0FBUCxPQUFPLENBQXVEO1FBQzlELFVBQUssR0FBTCxLQUFLLENBQThFO0lBQzVGLENBQUM7Q0FXTCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBBbmRyZXkgQ2hhbGtpbiA8TDJqTGlnYUBnbWFpbC5jb20+IChodHRwczovL2dpdGh1Yi5jb20vTDJqTGlnYSkuIEFsbCBSaWdodHMgUmVzZXJ2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ge1xuICBwcm90ZWN0ZWQgY29uc3RydWN0b3IoXG4gICAgcHJvdGVjdGVkIHJlcXVlc3Q6IEZhc3RpZnlSZXF1ZXN0PFJlcXVlc3RHZW5lcmljLCBSYXdTZXJ2ZXIsIFJhd1JlcXVlc3Q+LFxuICAgIHByb3RlY3RlZCByZXBseTogRmFzdGlmeVJlcGx5PFJhd1NlcnZlciwgUmF3UmVxdWVzdCwgUmF3UmVwbHksIFJlcXVlc3RHZW5lcmljLCBDb250ZXh0Q29uZmlnPixcbiAgKSB7fVxuXG4gIC8qKlxuICAgKiBNYWluIG1ldGhvZCBmb3IgcmVxdWVzdCBoYW5kbGluZ1xuICAgKi9cbiAgYWJzdHJhY3QgaGFuZGxlKCk6IHZvaWQgfCBQcm9taXNlPHVua25vd24+O1xuXG4gIC8qKlxuICAgKiBTdGF0aWMgbWV0aG9kIHRvIHJlZ2lzdGVyIGhhbmRsZXIgYnkgYXV0b2xvYWRlciAoYm9vdHN0cmFwKVxuICAgKi9cbiAgc3RhdGljIHJlYWRvbmx5IFtDUkVBVE9SXTogeyByZWdpc3RlcjogKGluc3RhbmNlOiBGYXN0aWZ5SW5zdGFuY2UpID0+IHZvaWQgfTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSZXF1ZXN0SG9vayB7XG4gIG5hbWU6ICdvblJlcXVlc3QnIHwgJ3ByZVBhcnNpbmcnIHwgJ3ByZVZhbGlkYXRpb24nIHwgJ3ByZUhhbmRsZXInIHwgJ3ByZVNlcmlhbGl6YXRpb24nIHwgJ29uU2VuZCcgfCAnb25SZXNwb25zZScgfCAnb25UaW1lb3V0JyB8ICdvbkVycm9yJztcbiAgaGFuZGxlck5hbWU6IHN0cmluZyB8IHN5bWJvbDtcbn1cbiJdfQ== |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { RouteShorthandOptions } from 'fastify'; | ||
import { RouteShorthandOptions } from 'fastify'; | ||
/** | ||
@@ -11,0 +11,0 @@ * Common config for all route handlers |
{ | ||
"name": "fastify-decorators", | ||
"version": "3.8.0", | ||
"version": "3.9.0", | ||
"description": "Framework aimed to provide useful TypeScript decorators to implement controllers, services and request handlers, built with Fastify.", | ||
@@ -10,9 +10,2 @@ "type": "module", | ||
"typings": "index.d.ts", | ||
"typesVersions": { | ||
"<3.9": { | ||
"*": [ | ||
"ts3.4/*" | ||
] | ||
} | ||
}, | ||
"exports": { | ||
@@ -26,7 +19,19 @@ ".": { | ||
"require": "./testing/index.cjs" | ||
}, | ||
"./plugins": { | ||
"import": "./plugins/index.js", | ||
"require": "./plugins/index.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "rollup -c rollup-config.js && tsc -p tsconfig.lib.json && yarn downlevel", | ||
"prebuild": "rimraf ../dist/", | ||
"postbuild": "cp -r ./package.json ../README.md ../CHANGELOG.md ../LICENSE ../docs ../dist/fastify-decorators && node ../patch-readme.cjs", | ||
"downlevel": "downlevel-dts ../dist/fastify-decorators ../dist/fastify-decorators", | ||
"test": "jest --config jest.config.cjs" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/L2jLiga/fastify-decorators.git" | ||
"url": "git+https://github.com/L2jLiga/fastify-decorators.git", | ||
"directory": "lib" | ||
}, | ||
@@ -69,4 +74,5 @@ "keywords": [ | ||
"Муравьёв Семён <s01@ngs.ru> (https://github.com/Zulcom)", | ||
"Mihai Voicescu <mihaivo@intern.pch> (https://github.com/mihai1voicescu)" | ||
"Mihai Voicescu <mihaivo@intern.pch> (https://github.com/mihai1voicescu)", | ||
"Mati Kärner <mati.karner@gmail.com>" | ||
] | ||
} |
[![Fastify decorators](./assets/logo.png)](https://github.com/L2jLiga/fastify-decorators) | ||
[![npm version](https://badge.fury.io/js/fastify-decorators.svg?colorB=brightgreen)](https://www.npmjs.com/package/fastify-decorators) | ||
[![Jetbrains plugin version](https://img.shields.io/jetbrains/plugin/v/13801.svg)](https://plugins.jetbrains.com/plugin/13801) | ||
[![npm](https://img.shields.io/npm/dm/fastify-decorators.svg?colorB=brightgreen)](https://www.npmjs.com/package/fastify-decorators) | ||
@@ -8,3 +9,2 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) | ||
[![Node.js CI](https://github.com/L2jLiga/fastify-decorators/workflows/Node.js%20CI/badge.svg)](https://github.com/L2jLiga/fastify-decorators/actions?query=workflow%3A%22Node.js+CI%22) | ||
[![Build example](https://github.com/L2jLiga/fastify-decorators/workflows/Build%20example/badge.svg)](https://github.com/L2jLiga/fastify-decorators/actions?query=workflow%3A%22Build+example%22) | ||
[![codecov](https://codecov.io/gh/L2jLiga/fastify-decorators/branch/v3/graph/badge.svg)](https://codecov.io/gh/L2jLiga/fastify-decorators) | ||
@@ -257,9 +257,9 @@ [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/L2jLiga/fastify-decorators.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/L2jLiga/fastify-decorators/context:javascript) | ||
[fastify resty]: https://github.com/FastifyResty/fastify-resty | ||
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.8.0/docs/Bootstrapping.md | ||
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.8.0/docs/Controllers.md | ||
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.8.0/docs/Request%20Handlers.md | ||
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.8.0/docs/Services%20and%20dependency%20injection.md | ||
[hooks]: https://github.com/L2jLiga/fastify-decorators/blob/v3.8.0/docs/Hooks.md | ||
[error handling]: https://github.com/L2jLiga/fastify-decorators/blob/v3.8.0/docs/Error%20handling.md | ||
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.8.0/docs/Testing.md | ||
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.8.0/docs/Migration%20to%20v3.md | ||
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.0/docs/Bootstrapping.md | ||
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.0/docs/Controllers.md | ||
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.0/docs/Request%20Handlers.md | ||
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.0/docs/Services%20and%20dependency%20injection.md | ||
[hooks]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.0/docs/Hooks.md | ||
[error handling]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.0/docs/Error%20handling.md | ||
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.0/docs/Testing.md | ||
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.9.0/docs/Migration%20to%20v3.md |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { Injectables } from '../interfaces/injectable-class.js'; | ||
import { Injectables } from '../interfaces/injectable-class.js'; | ||
export declare const injectables: Injectables; |
@@ -11,4 +11,4 @@ /** | ||
import { Plugins } from './fastify-plugins.js'; | ||
import type { ServiceMock } from './service-mock.js'; | ||
export interface ControllerTestConfig<C = any> { | ||
import { ServiceMock } from './service-mock.js'; | ||
export interface ControllerTestConfig<C> { | ||
controller: C; | ||
@@ -15,0 +15,0 @@ mocks?: ServiceMock[]; |
@@ -41,2 +41,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJlLWNvbnRyb2xsZXItdGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi90ZXN0aW5nL2NvbmZpZ3VyZS1jb250cm9sbGVyLXRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFFLE9BQU8sRUFBbUIsTUFBTSxTQUFTLENBQUM7QUFDbkQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMkNB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5KCk7XG5cbiAgLy8gQHRzLWV4cGVjdC1lcnJvciB3ZSBoYXZlIGRlY29yYXRlZCBpbnN0YW5jZSwgVHlwZVNjcmlwdCBjYW4ndCBoYW5kbGUgaXQgOihcbiAgcmV0dXJuIGluc3RhbmNlO1xufVxuXG5mdW5jdGlvbiBnZXRJbmplY3RlZFByb3BzKHRhcmdldDogdW5rbm93bik6IEFycmF5PHVua25vd24+IHtcbiAgaWYgKCFoYXNTZXJ2aWNlSW5qZWN0aW9uKHRhcmdldCkpIHJldHVybiBbXTtcbiAgcmV0dXJuIHRhcmdldFtTRVJWSUNFX0lOSkVDVElPTl0ubWFwKChpdCkgPT4gaXQubmFtZSk7XG59XG5cbmZ1bmN0aW9uIGdldENvbnN0cnVjdG9yQXJncyhjb25zdHJ1Y3RvcjogSW5qZWN0YWJsZUNsYXNzKTogQXJyYXk8dW5rbm93bj4ge1xuICByZXR1cm4gUmVmbGVjdC5nZXRNZXRhZGF0YSgnZGVzaWduOnBhcmFtdHlwZXMnLCBjb25zdHJ1Y3RvcikgfHwgW107XG59XG4iXX0= |
@@ -8,5 +8,5 @@ /** | ||
*/ | ||
import type { Constructor } from '../decorators/helpers/inject-dependencies.js'; | ||
import { Constructor } from '../decorators/helpers/inject-dependencies.js'; | ||
import { Plugins } from './fastify-plugins.js'; | ||
import type { ServiceMock } from './service-mock.js'; | ||
import { ServiceMock } from './service-mock.js'; | ||
export interface ServiceTestConfig<Service> { | ||
@@ -22,2 +22,2 @@ service: Constructor<Service>; | ||
*/ | ||
export declare function configureServiceTest<Service extends object>(config: ServiceTestConfig<Service>): Promise<Service> & Service; | ||
export declare function configureServiceTest<Service>(config: ServiceTestConfig<Service>): Promise<Service> & Service; |
@@ -20,3 +20,2 @@ /** | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
export function configureServiceTest(config) { | ||
@@ -33,2 +32,3 @@ const service = config.service; | ||
let promise = null; | ||
// @ts-expect-error TS doesn't know that we have class instance here | ||
return new Proxy(instance, { | ||
@@ -38,3 +38,6 @@ get(target, p) { | ||
if (promise == null) | ||
promise = hasAsyncInitializer(service) ? readyMap.get(service).then(() => target) : Promise.resolve(target); | ||
promise = hasAsyncInitializer(service) | ||
? // @ts-expect-error if service has async initializer then it exists in readyMap | ||
readyMap.get(service).then(() => target) | ||
: Promise.resolve(target); | ||
return promise[p].bind(promise); | ||
@@ -54,2 +57,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJlLXNlcnZpY2UtdGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi90ZXN0aW5nL2NvbmZpZ3VyZS1zZXJ2aWNlLXRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUVsQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFbEQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsV0FBVyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDakYsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQzdELE9BQU8sRUFBRSxXQUFXLEVBQVcsTUFBTSxzQkFBc0IsQ0FBQztBQUM1RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFTbEQ7Ozs7R0FJRztBQUNILHdEQUF3RDtBQUN4RCxNQUFNLFVBQVUsb0JBQW9CLENBQ2xDLE1BQWtDO0lBRWxDLE1BQU0sT0FBTyxHQUF5QixNQUFNLENBQUMsT0FBTyxDQUFDO0lBQ3JELE1BQU0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XJ2aWNlKVxuICAgICAgICAgICAgPyAvLyBAdHMtZXhwZWN0LWVycm9yIGlmIHNlcnZpY2UgaGFzIGFzeW5jIGluaXRpYWxpemVyIHRoZW4gaXQgZXhpc3RzIGluIHJlYWR5TWFwXG4gICAgICAgICAgICAgIHJlYWR5TWFwLmdldChzZXJ2aWNlKS50aGVuKCgpID0+IHRhcmdldClcbiAgICAgICAgICAgIDogUHJvbWlzZS5yZXNvbHZlKHRhcmdldCk7XG5cbiAgICAgICAgcmV0dXJuIHByb21pc2VbcCBhcyAndGhlbicgfCAnY2F0Y2gnIHwgJ2ZpbmFsbHknXS5iaW5kKHByb21pc2UpO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gdGFyZ2V0W3BdO1xuICAgIH0sXG4gIH0pIGFzIFByb21pc2U8U2VydmljZT4gJiBTZXJ2aWNlO1xufVxuXG5mdW5jdGlvbiBpc0luamVjdGFibGU8U2VydmljZT4oc2VydmljZTogQ29uc3RydWN0b3I8U2VydmljZT4pOiBhc3NlcnRzIHNlcnZpY2UgaXMgSW5qZWN0YWJsZVNlcnZpY2Uge1xuICBpZiAoIShDUkVBVE9SIGluIHNlcnZpY2UpKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKCdQcm92aWRlZCBzZXJ2aWNlIGRvZXMgbm90IGFubm90YXRlZCB3aXRoIEBTZXJ2aWNlIScpO1xuICB9XG59XG5cbmZ1bmN0aW9uIGhhc0FzeW5jSW5pdGlhbGl6ZXIoc2VydmljZTogSW5qZWN0YWJsZVNlcnZpY2UpOiBzZXJ2aWNlIGlzIEluamVjdGFibGVTZXJ2aWNlICYgUmVxdWlyZWQ8SW5qZWN0YWJsZVNlcnZpY2U+IHtcbiAgcmV0dXJuIElOSVRJQUxJWkVSIGluIHNlcnZpY2U7XG59XG4iXX0= |
@@ -8,4 +8,10 @@ /** | ||
*/ | ||
import { FastifyInstance, FastifyPluginAsync, FastifyPluginCallback } from 'fastify'; | ||
export declare type Plugins = Array<FastifyPluginAsync<any> | FastifyPluginCallback<any> | [plugin: FastifyPluginAsync<any>, options?: Record<any, any>] | [plugin: FastifyPluginCallback<any>, options?: Record<any, any>]>; | ||
import { FastifyInstance, FastifyPluginAsync, FastifyPluginCallback, FastifyPluginOptions } from 'fastify'; | ||
export declare type Plugins = Array<FastifyPluginAsync<any> | FastifyPluginCallback<any> | [ | ||
/*plugin*/ FastifyPluginAsync<any>, | ||
/*options*/ FastifyPluginOptions | ||
] | [ | ||
/*plugin*/ FastifyPluginCallback<any>, | ||
/*options*/ FastifyPluginOptions | ||
]>; | ||
export declare function loadPlugins(instance: FastifyInstance, plugins?: Plugins): void; |
@@ -18,2 +18,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFzdGlmeS1wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL3Rlc3RpbmcvZmFzdGlmeS1wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQVdILE1BQU0sVUFBVSxXQUFXLENBQUMsUUFBeUIsRUFBRSxPQUFpQjtJQUN0RSxLQUFLLE1BQU0sTUFBTSxJQUFJLE9BQU8sYUFBUCxPQUFPLGNBQVAsT0FBTyxHQUFJLEVBQUUsRUFBRTtRQUNsQyxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLEVBQUU7WUFDekIsUUFBUSxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDekM7YUFBTTtZQUNMLFFBQVEsQ0FBQyxRQUFRLENBQUMsTUFBK0IsQ0FBQyxDQUFDO1NBQ3BEO0tBQ0Y7QUFDSCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5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 -1,10 +0,3 @@ | ||
/** | ||
* @license | ||
* Copyright Andrey Chalkin <L2jLiga@gmail.com> (https://github.com/L2jLiga). All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://github.com/L2jLiga/fastify-decorators/blob/master/LICENSE | ||
*/ | ||
export type { ServiceMock } from './service-mock.js'; | ||
export { ControllerTestConfig, FastifyInstanceWithController, configureControllerTest, } from './configure-controller-test.js'; | ||
export { ServiceMock } from './service-mock.js'; | ||
export { ControllerTestConfig, FastifyInstanceWithController, configureControllerTest } from './configure-controller-test.js'; | ||
export { ServiceTestConfig, configureServiceTest } from './configure-service-test.js'; |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
export { configureControllerTest, } from './configure-controller-test.js'; | ||
export { configureControllerTest } from './configure-controller-test.js'; | ||
export { configureServiceTest } from './configure-service-test.js'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvdGVzdGluZy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFHSCxPQUFPLEVBR0wsdUJBQXVCLEdBQ3hCLE1BQU0sZ0NBQWdDLENBQUM7QUFDeEMsT0FBTyxFQUFxQixvQkFBb0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEFuZHJleSBDaGFsa2luIDxMMmpMaWdhQGdtYWlsLmNvbT4gKGh0dHBzOi8vZ2l0aHViLmNvbS9MMmpMaWdhKS4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5z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yY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2dpdGh1Yi5jb20vTDJqTGlnYS9mYXN0aWZ5LWRlY29yYXRvcnMvYmxvYi9tYXN0ZXIvTElDRU5TRVxuICovXG5cbmV4cG9ydCB0eXBlIHsgU2VydmljZU1vY2sgfSBmcm9tICcuL3NlcnZpY2UtbW9jay5qcyc7XG5leHBvcnQgeyBDb250cm9sbGVyVGVzdENvbmZpZywgRmFzdGlmeUluc3RhbmNlV2l0aENvbnRyb2xsZXIsIGNvbmZpZ3VyZUNvbnRyb2xsZXJUZXN0IH0gZnJvbSAnLi9jb25maWd1cmUtY29udHJvbGxlci10ZXN0LmpzJztcbmV4cG9ydCB7IFNlcnZpY2VUZXN0Q29uZmlnLCBjb25maWd1cmVTZXJ2aWNlVGVzdCB9IGZyb20gJy4vY29uZmlndXJlLXNlcnZpY2UtdGVzdC5qcyc7XG4iXX0= |
@@ -8,6 +8,6 @@ /** | ||
*/ | ||
import type { Injectables } from '../interfaces/injectable-class.js'; | ||
import type { ServiceMock } from './service-mock.js'; | ||
import { Injectables } from '../interfaces/injectable-class.js'; | ||
import { ServiceMock } from './service-mock.js'; | ||
export declare class MocksManager { | ||
static create(injectables: Injectables, mocks?: ServiceMock[]): Injectables; | ||
} |
export declare class Deferred<T = void> { | ||
get promise(): Promise<T>; | ||
get resolve(): (value: T | PromiseLike<T>) => void; | ||
get reject(): (reason?: Error) => void; | ||
readonly promise: Promise<T>; | ||
readonly resolve: (value: T | PromiseLike<T>) => void; | ||
readonly reject: (reason?: Error) => void; | ||
private readonly _promise; | ||
@@ -6,0 +6,0 @@ private _resolve; |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { Constructor } from '../decorators/helpers/inject-dependencies.js'; | ||
import { Constructor } from '../decorators/helpers/inject-dependencies.js'; | ||
export declare function getInstanceByToken<Type>(token: string | symbol | Constructor<Type>): Type; |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import type { InjectableService } from '../interfaces/injectable-class.js'; | ||
import { InjectableService } from '../interfaces/injectable-class.js'; | ||
export declare function wrapInjectable<T>(object: T): InjectableService; |
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
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
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
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
392584
120
2791