Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

boilerplate-server

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boilerplate-server - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

26

application/hooks/engine/engine.js

@@ -55,2 +55,4 @@ 'use strict';

application.log.info('[application]', 'Starting engine ...');
if (application.router) {

@@ -61,10 +63,10 @@ fuel.use(application.router.routes());

context$3$0.next = 8;
context$3$0.next = 9;
return regeneratorRuntime.awrap(_libraryUtilitiesPorts2['default'].test(port, host));
case 8:
case 9:
context$3$0.t0 = context$3$0.sent;
if (!(context$3$0.t0 !== true)) {
context$3$0.next = 17;
context$3$0.next = 18;
break;

@@ -74,3 +76,3 @@ }

if (!(server.autoPort !== true)) {
context$3$0.next = 12;
context$3$0.next = 13;
break;

@@ -81,9 +83,9 @@ }

case 12:
case 13:
application.log.warn('[application] Port ' + port + ' is taken, trying to obtain next open port... ');
context$3$0.next = 15;
context$3$0.next = 16;
return regeneratorRuntime.awrap(_libraryUtilitiesPorts2['default'].find(server.port + 1, server.port + 51, server.host));
case 15:
case 16:
server.port = context$3$0.sent;

@@ -104,14 +106,14 @@

case 17:
case 18:
application.log.info('[application]', 'Starting server at http://' + server.host + ':' + server.port + ' in environment \'' + application.configuration.environment + '\' ...');
application.log.info('[application]', 'Starting engine at http://' + server.host + ':' + server.port + ' in environment \'' + application.configuration.environment + '\' ...');
context$3$0.next = 20;
context$3$0.next = 21;
return regeneratorRuntime.awrap(fuel.listen(server.port, server.host));
case 20:
case 21:
http = context$3$0.sent;
return context$3$0.abrupt('return', application);
case 22:
case 23:
case 'end':

@@ -118,0 +120,0 @@ return context$3$0.stop();

@@ -75,3 +75,3 @@ 'use strict';

function boot(options) {
var application;
var application, result;
return regeneratorRuntime.async(function boot$(context$1$0) {

@@ -85,5 +85,6 @@ while (1) switch (context$1$0.prev = context$1$0.next) {

case 3:
return context$1$0.abrupt('return', context$1$0.sent);
result = context$1$0.sent;
return context$1$0.abrupt('return', result);
case 4:
case 5:
case 'end':

@@ -90,0 +91,0 @@ return context$1$0.stop();

{
"name": "boilerplate-server",
"version": "0.5.4",
"version": "0.5.5",
"description": "Lean and mean server module intended to get you kicking on the edge of things real fast.",

@@ -5,0 +5,0 @@ "main": "library/",

@@ -23,2 +23,4 @@ import koa from 'koa';

application.log.info( '[application]', `Starting engine ...` );
if ( application.router ) {

@@ -51,3 +53,3 @@ fuel.use(application.router.routes());

application.log.info( '[application]', `Starting server at http://${server.host}:${server.port} in environment '${application.configuration.environment}' ...` );
application.log.info( '[application]', `Starting engine at http://${server.host}:${server.port} in environment '${application.configuration.environment}' ...` );

@@ -54,0 +56,0 @@ http = await fuel.listen( server.port, server.host );

@@ -35,5 +35,6 @@ import { EventEmitter } from 'events';

let application = new BoilerPlateServer( options );
return await hooks( application );
let result = await hooks( application );
return result;
}
export default boot;
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