@adonisjs/ignitor
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -0,1 +1,11 @@ | ||
<a name="1.0.14"></a> | ||
## [1.0.14](https://github.com/adonisjs/adonis-ignitor/compare/v1.0.13...v1.0.14) (2017-10-31) | ||
### Bug Fixes | ||
* **helpers:** return true from isAceCommand when executed via adonis global ([6117093](https://github.com/adonisjs/adonis-ignitor/commit/6117093)), closes [#3](https://github.com/adonisjs/adonis-ignitor/issues/3) | ||
<a name="1.0.13"></a> | ||
@@ -2,0 +12,0 @@ ## [1.0.13](https://github.com/adonisjs/adonis-ignitor/compare/v1.0.12...v1.0.13) (2017-10-29) |
{ | ||
"name": "@adonisjs/ignitor", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Fire the adonis-app (in good sense)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -213,3 +213,11 @@ 'use strict' | ||
const processFile = process.mainModule.filename | ||
return processFile.endsWith('ace') | ||
if (processFile.endsWith('ace')) { | ||
return true | ||
} | ||
/** | ||
* When command is executed via `adonis cli`, then ace is a children | ||
* of the process mainModule | ||
*/ | ||
return !!process.mainModule.children.find((child) => child.filename.endsWith('ace')) | ||
} | ||
@@ -216,0 +224,0 @@ } |
@@ -20,5 +20,5 @@ 'use strict' | ||
const WARNING_MESSAGE = ` | ||
WARNING: Adonis has detect an unhandled promise rejection, which may | ||
WARNING: Adonis has detected an unhandled promise rejection, which may | ||
cause undesired behavior in production. | ||
Make sure to always attach (catch) method on promises and wrap await | ||
To stop this warning, use catch() on promises and wrap await | ||
calls inside try/catch. | ||
@@ -25,0 +25,0 @@ ` |
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
34696
962
10