@adonisjs/application
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -172,3 +172,3 @@ declare module '@ioc:Adonis/Core/Application' { | ||
*/ | ||
isReady: boolean; | ||
readonly isReady: boolean; | ||
/** | ||
@@ -175,0 +175,0 @@ * A boolean to know if application is running in production |
@@ -67,6 +67,5 @@ /// <reference path="../adonis-typings/application.d.ts" /> | ||
/** | ||
* A boolean to know if application has received a shutdown signal | ||
* like `SIGINT` or `SIGTERM`. | ||
* A boolean to know if app is preparing to shutdown | ||
*/ | ||
get isShuttingDown(): boolean; | ||
isShuttingDown: boolean; | ||
/** | ||
@@ -73,0 +72,0 @@ * The namespace of exception handler that will handle exceptions |
@@ -48,2 +48,6 @@ "use strict"; | ||
/** | ||
* A boolean to know if app is preparing to shutdown | ||
*/ | ||
this.isShuttingDown = false; | ||
/** | ||
* It is unknown until the `setup` method is called | ||
@@ -103,12 +107,5 @@ */ | ||
get isReady() { | ||
return this.state === 'ready'; | ||
return this.state === 'ready' && !this.isShuttingDown; | ||
} | ||
/** | ||
* A boolean to know if application has received a shutdown signal | ||
* like `SIGINT` or `SIGTERM`. | ||
*/ | ||
get isShuttingDown() { | ||
return this.state === 'shutdown'; | ||
} | ||
/** | ||
* Resolve a given module from the application root. The callback is invoked | ||
@@ -552,2 +549,3 @@ * when the module is missing | ||
} | ||
this.isShuttingDown = true; | ||
this.state = 'shutdown'; | ||
@@ -554,0 +552,0 @@ await this.profiler.profileAsync('providers:shutdown', {}, async () => { |
{ | ||
"name": "@adonisjs/application", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "AdonisJS application class to read app related data", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48342
1321