Skip to content

Commit

Permalink
Release 1.0.0-beta.2 🚀
Browse files Browse the repository at this point in the history
- Hotfixed missing validation on router file loader
  • Loading branch information
Jonathan committed May 22, 2018
1 parent 1d1ecf3 commit 8ac3bed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onixjs/core",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "An Enterprise Grade NodeJS Platform that implements Industry Standards and Patterns in order to provide Connectivity, Stability, High-Availability and High-Performance.",
"main": "dist/src/index.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/core/app.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,12 @@ export namespace AppRoute {
*/
export class Load {
static async file(instance, method, config, pathname, req, res, next) {
// Get configured filename from the config.file path.
const file: string =
typeof config.file === 'string' ? config.file.split('/').pop() : null;
// Verify if this static middleware should treat
// this request, otherwise just call the next one
if (!pathname.includes(config.file) && !pathname.includes(req.url)) {
if (!pathname.includes(file) && !pathname.includes(req.url)) {
return next();
}
if (req.url && req.method) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class OnixJS {
* @description Current Onix Version.
*/
get version(): string {
return '1.0.0-beta.1';
return '1.0.0-beta.2';
}
/**
* @property router
Expand Down

0 comments on commit 8ac3bed

Please sign in to comment.