From 17ea071678b3566c7de39e8b3d0b6a4baf911b22 Mon Sep 17 00:00:00 2001 From: Xavier Redondo Date: Fri, 24 May 2024 09:23:43 +0200 Subject: [PATCH] fix: unmake unnneded changes due to carriage returns --- packages/bautajs-core/src/bauta.ts | 4 ---- packages/bautajs-fastify/src/index.ts | 2 -- 2 files changed, 6 deletions(-) diff --git a/packages/bautajs-core/src/bauta.ts b/packages/bautajs-core/src/bauta.ts index 99852ee5..6d651934 100644 --- a/packages/bautajs-core/src/bauta.ts +++ b/packages/bautajs-core/src/bauta.ts @@ -141,7 +141,6 @@ export class BautaJS implements BautaJSInstance { if (this.bootstrapped === true) { throw new Error('The instance has already being bootstrapped.'); } - if (this.apiDefinition) { const parser = new Parser(this.logger); const parsedApiDefinition = await parser.asyncParse(this.apiDefinition); @@ -275,10 +274,8 @@ export class BautaJS implements BautaJSInstance { 'The given instance is not bootstrapped, thus operation schema will be no inherited.' ); } - Object.keys(bautajsInstance.operations).forEach(operationId => { const operation = bautajsInstance.operations[operationId]; - if ( operation.deprecated !== true && !Object.prototype.hasOwnProperty.call(this.operations, operationId) @@ -296,7 +293,6 @@ export class BautaJS implements BautaJSInstance { } } }); - return this; } } diff --git a/packages/bautajs-fastify/src/index.ts b/packages/bautajs-fastify/src/index.ts index db9bc5bd..ab20e47f 100644 --- a/packages/bautajs-fastify/src/index.ts +++ b/packages/bautajs-fastify/src/index.ts @@ -26,12 +26,10 @@ export async function bautajsFastify( fastify: FastifyInstance, opts: BautaJSFastifyPluginOptions ): Promise; - export async function bautajsFastify( fastify: FastifyInstance, opts: BautaJSFastifyPluginOptions & bautaJS.BautaJSOptions ): Promise; - export async function bautajsFastify(fastify: FastifyInstance, opts: any) { const bautajs = opts.bautajsInstance ? opts.bautajsInstance