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.0 to 0.5.1

23

application/hooks/routes/index.js

@@ -95,27 +95,14 @@ 'use strict';

application.router.register(routeName, routeConfig.path, methods, regeneratorRuntime.mark(function callee$2$0(next) {
return regeneratorRuntime.wrap(function callee$2$0$(context$3$0) {
application.router.register(routeName, routeConfig.path, methods, regeneratorRuntime.mark(function runRoute(next) {
return regeneratorRuntime.wrap(function runRoute$(context$3$0) {
while (1) switch (context$3$0.prev = context$3$0.next) {
case 0:
context$3$0.prev = 0;
context$3$0.next = 3;
context$3$0.next = 2;
return fn.bind(this)(next);
case 3:
context$3$0.next = 10;
break;
case 5:
context$3$0.prev = 5;
context$3$0.t2 = context$3$0['catch'](0);
application.log.error('Error while executing route ' + routeName);
application.log.error(context$3$0.t2.stack);
throw context$3$0.t2;
case 10:
case 2:
case 'end':
return context$3$0.stop();
}
}, callee$2$0, this, [[0, 5]]);
}, runRoute, this);
}));

@@ -122,0 +109,0 @@ });

@@ -39,5 +39,5 @@ 'use strict';

case 4:
context$1$0.t3 = context$1$0.sent;
context$1$0.t2 = context$1$0.sent;
if (!(context$1$0.t3 === false)) {
if (!(context$1$0.t2 === false)) {
context$1$0.next = 8;

@@ -44,0 +44,0 @@ break;

@@ -79,5 +79,5 @@ 'use strict';

context$1$0.prev = 17;
context$1$0.t4 = context$1$0['catch'](9);
context$1$0.t3 = context$1$0['catch'](9);
if (!(notfound.indexOf(context$1$0.t4.code) > -1)) {
if (!(notfound.indexOf(context$1$0.t3.code) > -1)) {
context$1$0.next = 21;

@@ -90,4 +90,4 @@ break;

case 21:
context$1$0.t4.status = 500;
throw context$1$0.t4;
context$1$0.t3.status = 500;
throw context$1$0.t3;

@@ -94,0 +94,0 @@ case 23:

@@ -41,5 +41,5 @@ #!/usr/bin/env node --harmony

context$2$0.prev = 6;
context$2$0.t5 = context$2$0['catch'](0);
context$2$0.t4 = context$2$0['catch'](0);
application.log.error(context$2$0.t5);
application.log.error(context$2$0.t4);
process.exit(1);

@@ -66,7 +66,7 @@

context$1$0.prev = 8;
context$1$0.t6 = context$1$0['catch'](2);
context$1$0.t5 = context$1$0['catch'](2);
log = application ? application.log || console : console;
log.trace(context$1$0.t6);
throw new Error(context$1$0.t6);
log.trace(context$1$0.t5);
throw new Error(context$1$0.t5);

@@ -82,6 +82,6 @@ case 13:

context$1$0.prev = 17;
context$1$0.t7 = context$1$0['catch'](13);
context$1$0.t6 = context$1$0['catch'](13);
application.log.error(context$1$0.t7);
throw new Error(context$1$0.t7);
application.log.error(context$1$0.t6);
throw new Error(context$1$0.t6);

@@ -88,0 +88,0 @@ case 21:

@@ -205,8 +205,8 @@ 'use strict';

context$2$0.prev = 14;
context$2$0.t8 = context$2$0['catch'](6);
context$2$0.t7 = context$2$0['catch'](6);
this.log.error('An error ocurred on stage ' + stageName + ' of hook \'' + this.name + '\'');
this.log.error(context$2$0.t8);
this.log.error(context$2$0.t7);
throw new Error(context$2$0.t8);
throw new Error(context$2$0.t7);

@@ -213,0 +213,0 @@ case 19:

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

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

@@ -75,10 +75,4 @@ import { resolve } from 'path';

application.router.register( routeName, routeConfig.path, methods, function * ( next ) {
try {
yield fn.bind( this )( next );
} catch ( error ) {
application.log.error( `Error while executing route ${routeName}` );
application.log.error( error.stack );
throw error;
}
application.router.register( routeName, routeConfig.path, methods, function * runRoute ( next ) {
yield fn.bind( this )( next );
} );

@@ -85,0 +79,0 @@

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