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

bay

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bay - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

17

application.js

@@ -47,2 +47,3 @@ 'use strict';

if (!this._controllerResolver) {
this.initControllers()
this._controllerResolver = resolver(this.specifiedControllers, PATH_SEPARATOR)

@@ -53,2 +54,11 @@ }

initControllers () {
if (!this.specifiedControllers) {
// Lazy loading all controllers before processing any
// HTTP requests. That introduces an limitation that all
// routes defined after `#listen()` will be ignored.
this.specifiedControllers = this._requireControllers();
}
}
/**

@@ -88,8 +98,3 @@ * Load all controllers from disk

listen() {
if (!this.specifiedControllers) {
// Lazy loading all controllers before processing any
// HTTP requests. That introduces an limitation that all
// routes defined after `#listen()` will be ignored.
this.specifiedControllers = this._requireControllers();
}
this.initControllers();
const server = http.createServer(this.callback());

@@ -96,0 +101,0 @@ return server.listen.apply(server, arguments);

{
"name": "bay",
"version": "0.6.0",
"version": "0.6.1",
"description": "The framework",

@@ -5,0 +5,0 @@ "main": "application.js",

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