5htp-core 0.6.2-99 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "5htp-core",
3
3
  "description": "Convenient TypeScript framework designed for Performance and Productivity.",
4
- "version": "0.6.2-99",
4
+ "version": "0.6.3",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-core.git",
7
7
  "license": "MIT",
@@ -174,7 +174,7 @@ export default abstract class Email<TConfig extends Config>
174
174
  console.info(LogPrefix, `Sending ${emailsToSend.length} emails:`, emailsToSend[0].subject);
175
175
 
176
176
  // Pas d'envoi d'email quand local
177
- if (this.app.env.name === 'local' && this.config.simulateWhenLocal === true) {
177
+ if (this.app.env.profile !== 'prod' && this.config.simulateWhenLocal === true) {
178
178
  console.log(LogPrefix, `Simulate email sending:\n`, emailsToSend[0].html);
179
179
  return;
180
180
  } else if (emailsToSend.length === 0) {