@fabernovel/heart-core
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -0,1 +1,8 @@ | ||
## [1.3.3] - 2019-06-05 | ||
### Added | ||
- Reports can now have a date | ||
### Fixed | ||
- The module loader was not able to load the new Storage module type | ||
## [1.3.2] - 2019-06-05 | ||
@@ -2,0 +9,0 @@ ### Added |
@@ -6,2 +6,3 @@ /** | ||
private _analyzedUrl; | ||
private _date; | ||
private _name; | ||
@@ -16,5 +17,7 @@ private _note; | ||
* @param name Name of the report | ||
* @param date Date of the report | ||
*/ | ||
constructor(analyzedUrl: string, note: string, resultUrl: string, name?: string); | ||
constructor(analyzedUrl: string, note: string, resultUrl: string, name?: string, date?: Date); | ||
readonly analyzedUrl: string; | ||
readonly date: Date; | ||
readonly name: string; | ||
@@ -21,0 +24,0 @@ readonly note: string; |
@@ -13,5 +13,7 @@ "use strict"; | ||
* @param name Name of the report | ||
* @param date Date of the report | ||
*/ | ||
constructor(analyzedUrl, note, resultUrl, name) { | ||
constructor(analyzedUrl, note, resultUrl, name = '', date = new Date()) { | ||
this._analyzedUrl = analyzedUrl; | ||
this._date = date; | ||
this._name = name; | ||
@@ -24,2 +26,5 @@ this._note = note; | ||
} | ||
get date() { | ||
return this._date; | ||
} | ||
get name() { | ||
@@ -26,0 +31,0 @@ return this._name; |
@@ -17,2 +17,3 @@ "use strict"; | ||
const ModuleNotificationGuard_1 = require("../module/notification/ModuleNotificationGuard"); | ||
const ModuleStorageGuard_1 = require("../module/storage/ModuleStorageGuard"); | ||
class ModuleLoader { | ||
@@ -113,3 +114,3 @@ constructor(debug = false) { | ||
// only keep the modules that are compatible | ||
if (ModuleAnalysisGuard_1.default(module) || ModuleNotificationGuard_1.default(module)) { | ||
if (ModuleAnalysisGuard_1.default(module) || ModuleNotificationGuard_1.default(module) || ModuleStorageGuard_1.default(module)) { | ||
promises.push(module); | ||
@@ -116,0 +117,0 @@ } |
{ | ||
"name": "@fabernovel/heart-core", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Centralize helpful code needed by the others @fabernovel/heart-* modules", | ||
@@ -5,0 +5,0 @@ "homepage": "https://gitlab.com/fabernovel/heart/heart-core", |
23846
477