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.3.0 to 3.3.1

ts3.4/utils/deferred.d.ts

10

bootstrap/bootstrap.js

@@ -14,6 +14,6 @@ "use strict";

const path_1 = require("path");
const decorators_1 = require("../decorators");
const injectables_1 = require("../registry/injectables");
const symbols_1 = require("../symbols");
const wrap_injectable_1 = require("../utils/wrap-injectable");
const decorators_1 = require("../decorators");
const defaultMask = /\.(handler|controller)\./;

@@ -54,4 +54,4 @@ exports.bootstrap = fastify_plugin_1.default(async (fastify, config) => {

function* findModules(path, filter) {
const directoriesToRead = [path];
for (let dirPath = directoriesToRead.pop(); dirPath !== undefined; dirPath = directoriesToRead.pop()) {
const directoriesToRead = new Set([path]);
for (const dirPath of directoriesToRead) {
// TODO: can be replaced with for await (const filePath of fs.opendir) in Node.js >= 12.12

@@ -61,3 +61,3 @@ for (const filePath of fs_1.readdirSync(dirPath, { withFileTypes: true })) {

if (filePath.isDirectory()) {
directoriesToRead.push(fullFilePath);
directoriesToRead.add(fullFilePath);
}

@@ -76,2 +76,2 @@ else if (filter.test((filePath.name))) {

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

@@ -7,2 +7,6 @@ # Changelog

## 3.3.1
### Fixed
- Warning when install due to unsatisfied peer dependency - `fastify-plugin`
## 3.3.0

@@ -9,0 +13,0 @@ ### Added

@@ -12,16 +12,11 @@ "use strict";

*/
function Initializer(dependencies) {
function Initializer(dependencies = []) {
return (targetPrototype, propertyKey) => {
const target = targetPrototype.constructor;
const ready = new deferred_1.Deferred();
target[symbols_1.INITIALIZER] = async (self) => {
try {
if (dependencies)
await Promise.all(dependencies.map(dep => exports.readyMap.get(dep)));
await targetPrototype[propertyKey].call(self);
ready.resolve();
}
catch (e) {
ready.reject(e);
}
target[symbols_1.INITIALIZER] = (self) => {
Promise.all(dependencies.map(dep => exports.readyMap.get(dep)))
.then(targetPrototype[propertyKey].bind(self))
.then(ready.resolve)
.catch(ready.reject);
};

@@ -32,2 +27,2 @@ exports.readyMap.set(target, ready.promise);

exports.Initializer = Initializer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdGlhbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvZGVjb3JhdG9ycy9pbml0aWFsaXplci50cyJdLCJuYW1lcyI6W10sIm1h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WkVSXSA9IChzZWxmOiBhbnkpID0+IHtcbiAgICAgICAgICAgIFByb21pc2UuYWxsKGRlcGVuZGVuY2llcy5tYXAoZGVwID0+IHJlYWR5TWFwLmdldChkZXApKSlcbiAgICAgICAgICAgICAgICAudGhlbih0YXJnZXRQcm90b3R5cGVbcHJvcGVydHlLZXldLmJpbmQoc2VsZikgYXMgKCkgPT4gdm9pZClcbiAgICAgICAgICAgICAgICAudGhlbihyZWFkeS5yZXNvbHZlKVxuICAgICAgICAgICAgICAgIC5jYXRjaChyZWFkeS5yZWplY3QpO1xuICAgICAgICB9O1xuXG4gICAgICAgIHJlYWR5TWFwLnNldCh0YXJnZXQsIHJlYWR5LnByb21pc2UpO1xuICAgIH07XG59XG4iXX0=
{
"name": "fastify-decorators",
"version": "3.3.0",
"version": "3.3.1",
"description": "Set of Typescript decorators to build Fastify server with controllers, services and hooks",

@@ -40,6 +40,8 @@ "main": "index.js",

"type": "commonjs",
"dependencies": {
"fastify-plugin": "^2.0.0 || ^3.0.0"
},
"peerDependencies": {
"@types/node": "*",
"fastify": "^3.0.1",
"fastify-plugin": "^2.0.0 || ^3.0.0"
"fastify": "^3.0.1"
},

@@ -46,0 +48,0 @@ "maintainers": [

@@ -177,7 +177,7 @@ # Fastify decorators

[Getting Started]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.0/lib/docs/Getting-Started.md
[Request Handler]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.0/lib/docs/Request-Handlers.md
[Controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.0/lib/docs/Controllers.md
[Dependency Injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.0/lib/docs/Dependency-Injection.md
[Testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.0/lib/docs/Testing.md
[Migration guide (V3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.0/lib/docs/Migration-to-v3.md
[Getting Started]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.1/lib/docs/Getting-Started.md
[Request Handler]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.1/lib/docs/Request-Handlers.md
[Controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.1/lib/docs/Controllers.md
[Dependency Injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.1/lib/docs/Dependency-Injection.md
[Testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.1/lib/docs/Testing.md
[Migration guide (V3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.3.1/lib/docs/Migration-to-v3.md
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