New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fabernovel/heart-core

Package Overview
Dependencies
Maintainers
5
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fabernovel/heart-core - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

7

CHANGELOG.md

@@ -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

5

lib/model/Report.d.ts

@@ -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;

7

lib/model/Report.js

@@ -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",

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