From 47b1355018eeed766299671d341fe730fa8357ab Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 20 Apr 2018 14:19:44 -0500 Subject: [PATCH 1/2] Release 1.0.0-alpha.18.1 :rocket: - Fixed conflicted readme --- README.md | 4 ---- package.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index f7a846e..f7d241d 100644 --- a/README.md +++ b/README.md @@ -47,11 +47,7 @@ The **[OnixJS] FrameWork** is an ***Enterprise Grade*** **Node.JS** platform tha - **Slightly Opinionated**: Though [OnixJS] provide with a business logic structure based on *SOA*, *MSA* and it does specify how to communicate your services or clients, *we do empower you* to decide which *Front-End Framework*, *ORM* or even an *Server Side Renderer* (Template Engine) to install. By using any of our provided [Factories], you'll be free to make most of the important decisions. -<<<<<<< HEAD -- **Stability**: We strongly believe that providing a highly featured, tested or covered framework is great but not enough. We also believe that staging or deploying a project now or in a year MUSTN'T be affected by the framework or any of its dependencies, being that the reason of why we decided to use the lowest amount of dependencies possible. -======= - **Stability**: We strongly believe that providing a highly featured, tested or covered platform might be great but definitely not enough. We also believe that staging or deploying a project now or in a year MUSTN'T be affected by the Framework or any of its dependencies, being that the reason of why we decided to use the lowest amount of dependencies possible. ->>>>>>> master - **High-Availability**: Either you choose Monolithic *SOA* or *MSA*, your services will run independently in separated processes. While implementing the right patterns and infrastructure, any failure on either of your services won't block or disable access to users or other services. - **High-Performance**: [OnixJS] provides with a really small footprint, we don't really add unnecessary and unused features, instead we provide you with artifacts all based on established design patterns for you to build projects with ease, as well as providing ways to flawlessly communicate services and clients. - **Security**: [OnixJS] provides with a fully [OIDC] featured *Single Sign On* IdP, so you can start avoiding expenses on authentication and authorization issues due far simplistic auth implementations not suited for enterprise grade projects. diff --git a/package.json b/package.json index c12c336..b42e195 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onixjs/core", - "version": "1.0.0-alpha.18", + "version": "1.0.0-alpha.18.1", "description": "The High-Performance SOA Real-Time Framework for Node.JS", "main": "dist/src/index.js", "scripts": { From 53df91af66bc65f8a19969f4dd55333a50947583 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 20 Apr 2018 15:53:40 -0500 Subject: [PATCH 2/2] Release 1.0.0-alpha.18.2 :rocket: - Fix router middleware function chain - Fix onixjs version --- package.json | 2 +- src/core/app.factory.ts | 4 +--- src/core/app.server.ts | 1 - src/index.ts | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b42e195..f6332ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onixjs/core", - "version": "1.0.0-alpha.18.1", + "version": "1.0.0-alpha.18.2", "description": "The High-Performance SOA Real-Time Framework for Node.JS", "main": "dist/src/index.js", "scripts": { diff --git a/src/core/app.factory.ts b/src/core/app.factory.ts index 8789d70..a0b0286 100644 --- a/src/core/app.factory.ts +++ b/src/core/app.factory.ts @@ -305,13 +305,11 @@ export class AppFactory { */ async routeWrapper(instance, method, req, res, next) { // Potentially register LifeCycles in here. - const result = await instance[method](req, res); + const result = await instance[method](req, res, next); // If the method returned a value, otherwise they might response their selves if (result) { // Send result to the requester res.end(Utils.IsJsonString(result) ? JSON.stringify(result) : result); - } else { - next(); } } /** diff --git a/src/core/app.server.ts b/src/core/app.server.ts index ca831b6..241f380 100644 --- a/src/core/app.server.ts +++ b/src/core/app.server.ts @@ -142,7 +142,6 @@ export class AppServer { (this.config.network && !this.config.network!.disabled) ) { // Requires to be started before creating websocket. - console.log('STARTING HTTP SERVER:', this.config); this.http.listen(this.config.port || 6000); // Ok now we can start the websocket this.websocket = new WebSocket.Server({ diff --git a/src/index.ts b/src/index.ts index e9c1cbe..c4538a1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,7 +33,7 @@ export class OnixJS { * @description Current Onix Version. */ get version(): string { - return '1.0.0-alpha.18'; + return '1.0.0-alpha.18.2'; } /** * @property server