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.11.0 to 3.12.0

4

bootstrap/bootstrap.js

@@ -31,3 +31,3 @@ /**

}, {
fastify: '^3.0.0',
fastify: '^3.0.0 || ^4.0.0',
name: 'fastifyDecorators',

@@ -89,2 +89,2 @@ });

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdHN0cmFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2Jvb3RzdHJhcC9ib290c3RyYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBR0gsT0FBTyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDaEMsT0FBTyxFQUFFLFNBQVMsRUFBWSxXQUFXLEVBQUUsTUFBTSxJQUFJLENBQUM7QUFDdEQsT0FBTyxFQUFFLGFBQWEsRUFBRSxHQUFHLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFDekMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFFdEUsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBR2xELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDdkUsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBRTdELE1BQU0s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
### Added
- Fastify v4 support
### Fixed
- Unable to use `@Inject` when `useDefineForClassFields` enabled in tsconfig (#750)
- `@Inject` does not work when `reflect-metadata` not present (#752)
### Removed
- Experimental plugin APIs
## 3.11.0

@@ -10,0 +25,0 @@

@@ -11,12 +11,24 @@ /**

export function createWithInjectedDependencies(constructor, injectables, cacheResult) {
if (typeof Reflect.getMetadata !== 'function')
return new constructor();
injectProperties(constructor, injectables, cacheResult, constructor.name);
injectProperties(constructor.prototype, injectables, cacheResult, constructor.name);
return new constructor(...getArguments(constructor, injectables, cacheResult, constructor.name));
/**
* Step 1: Patch constructor and prototype with Injectables (issue #752)
*/
injectProperties(constructor, constructor, injectables, cacheResult, constructor.name);
injectProperties(constructor.prototype, constructor.prototype, injectables, cacheResult, constructor.name);
/**
* Step 2: Create instance
*/
const instance = typeof Reflect.getMetadata === 'function' ? new constructor(...getArguments(constructor, injectables, cacheResult, constructor.name)) : new constructor();
/**
* Step 3: Inject dependencies into instance (issue #750)
*/
injectProperties(instance, constructor.prototype, injectables, cacheResult, constructor.name);
/**
* Step 4: Return instance with dependencies injected
*/
return instance;
}
function injectProperties(target, injectables, cacheResult, className) {
if (!hasServiceInjection(target))
function injectProperties(target, source, injectables, cacheResult, className) {
if (!hasServiceInjection(source))
return;
const viaInject = target[SERVICE_INJECTION];
const viaInject = source[SERVICE_INJECTION];
for (const { name, propertyKey } of viaInject) {

@@ -43,2 +55,2 @@ if (!injectables.has(name))

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0LWRlcGVuZGVuY2llcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9kZWNvcmF0b3JzL2hlbHBlcnMvaW5qZWN0LWRlcGVuZGVuY2llcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFHSCxPQUFPLEVBQUUsT0FBTyxFQUFF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29uc3RydWN0b3IpIHx8IFtdO1xuICByZXR1cm4gbWV0YWRhdGFcbiAgICAubWFwKCh2YWx1ZSkgPT4gaW5qZWN0YWJsZXMuZ2V0KHZhbHVlKSlcbiAgICAubWFwKCh2YWx1ZTogSW5qZWN0YWJsZVNlcnZpY2UgfCB1bmRlZmluZWQpID0+IHtcbiAgICAgIGlmICh2YWx1ZSkgcmV0dXJuIHZhbHVlW0NSRUFUT1JdLnJlZ2lzdGVyKGluamVjdGFibGVzLCBjYWNoZVJlc3VsdCk7XG4gICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKGBJbnZhbGlkIGFyZ3VtZW50IHByb3ZpZGVkIGluICR7Y2xhc3NOYW1lfSdzIGNvbnN0cnVjdG9yLiBFeHBlY3RlZCBjbGFzcyBhbm5vdGF0ZWQgd2l0aCBAU2VydmljZS5gKTtcbiAgICB9KTtcbn1cbiJdfQ==

@@ -69,3 +69,2 @@ <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',

@@ -72,0 +71,0 @@ },

{
"name": "fastify-decorators",
"version": "3.11.0",
"version": "3.12.0",
"description": "Framework aimed to provide useful TypeScript decorators to implement controllers, services and request handlers, built with Fastify.",

@@ -18,6 +18,2 @@ "type": "module",

"require": "./testing/index.cjs"
},
"./plugins": {
"import": "./plugins/index.js",
"require": "./plugins/index.cjs"
}

@@ -64,3 +60,3 @@ },

"@types/node": "*",
"fastify": "^3.0.1"
"fastify": "^3.0.1 || ^4.0.0"
},

@@ -67,0 +63,0 @@ "maintainers": [

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

[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v3.11.0/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators)
[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v3.12.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.11.0/docs/Bootstrapping.md
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.11.0/docs/Controllers.md
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.11.0/docs/Request%20Handlers.md
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.11.0/docs/Services%20and%20dependency%20injection.md
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.11.0/docs/Testing.md
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.11.0/docs/Migration%20to%20v3.md
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.12.0/docs/Bootstrapping.md
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.12.0/docs/Controllers.md
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.12.0/docs/Request%20Handlers.md
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.12.0/docs/Services%20and%20dependency%20injection.md
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.12.0/docs/Testing.md
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.12.0/docs/Migration%20to%20v3.md

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