Skip to content

Commit

Permalink
v0.4.25
Browse files Browse the repository at this point in the history
  • Loading branch information
SecSimon committed Apr 25, 2024
1 parent 2dc6c46 commit 2f834d4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.4.25

* Fix: LocalStorage exception content too long
* Fix: Setting threat rule type in configuration

## 0.4.24

* Fix: Missing countermeasure state in export template
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ttmodeler",
"version": "0.4.24",
"version": "0.4.25",
"description": "Thing Threat Modeler for Internet of Things Devices",
"homepage": "https://www.simon-liebl.de/TTM",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ttmodeler",
"version": "0.4.24",
"version": "0.4.25",
"description": "Thing Threat Modeler for Internet of Things Devices",
"homepage": "https://www.simon-liebl.de/TTM",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/model/threat-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ export class ThreatRuleGroup extends DatabaseBase {
}

public get RuleType(): RuleTypes { return this.Data['RuleType']; }
public set RuleType(val: RuleTypes) { this.Data['RuleType']; }
public set RuleType(val: RuleTypes) { this.Data['RuleType'] = val; }

constructor(data, cf: ConfigFile) {
super(data);
Expand Down
7 changes: 4 additions & 3 deletions src/app/util/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,10 +1180,11 @@ export class DataService {
const history = this.getLastFileHistory();
const index = history.findIndex(x => this.compareFiles(x, file));
if (index >= 0) history.splice(index, 1);
history.splice(0, 0, file);
const fileCopy = JSON.parse(JSON.stringify(file));
delete fileCopy.importData;
history.splice(0, 0, fileCopy);
this.locStorage.Set(LocStorageKeys.FILE_HISTORY, JSON.stringify(history));

this.locStorage.Set(LocStorageKeys.LAST_FILE, JSON.stringify(file));
this.locStorage.Set(LocStorageKeys.LAST_FILE, JSON.stringify(fileCopy));

this.addFileToAvailableFiles(file);
}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.4.24"
"version": "0.4.25"
}

0 comments on commit 2f834d4

Please sign in to comment.