@lvnt/release-radar 1.9.4 → 1.9.6

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.
@@ -112,12 +112,8 @@
112
112
  },
113
113
  "YAML": {
114
114
  "displayName": "YAML Extension",
115
- "downloadUrl": "{{MIRROR_URL}}",
116
- "filename": "vscode-yaml-{{VERSION}}.vsix",
117
- "mirror": {
118
- "sourceUrl": "marketplace-api",
119
- "extensionId": "redhat.vscode-yaml"
120
- }
115
+ "downloadUrl": "github.com/redhat-developer/vscode-yaml/releases/download/{{VERSION}}/vscode-yaml-{{VERSION}}.vsix",
116
+ "filename": "vscode-yaml-{{VERSION}}.vsix"
121
117
  },
122
118
  "Python": {
123
119
  "displayName": "Python Extension",
package/config/tools.json CHANGED
@@ -100,8 +100,8 @@
100
100
  },
101
101
  {
102
102
  "name": "YAML",
103
- "type": "vscode-marketplace",
104
- "extensionId": "redhat.vscode-yaml"
103
+ "type": "github",
104
+ "repo": "redhat-developer/vscode-yaml"
105
105
  },
106
106
  {
107
107
  "name": "Python",
package/dist/storage.js CHANGED
@@ -14,10 +14,13 @@ export class Storage {
14
14
  }
15
15
  load() {
16
16
  if (!existsSync(this.filePath)) {
17
- return { lastCheck: null, versions: {} };
17
+ this.state = { lastCheck: null, versions: {} };
18
18
  }
19
- const content = readFileSync(this.filePath, 'utf-8');
20
- return JSON.parse(content);
19
+ else {
20
+ const content = readFileSync(this.filePath, 'utf-8');
21
+ this.state = JSON.parse(content);
22
+ }
23
+ return this.state;
21
24
  }
22
25
  save(state) {
23
26
  const tempPath = `${this.filePath}.tmp`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvnt/release-radar",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "Monitor tool versions and notify via Telegram when updates are detected",
5
5
  "main": "dist/index.js",
6
6
  "bin": {