Skip to content

Commit fad9869

Browse files
matthttamclaude
andcommitted
Fix floating promise and update lib target to ESNext
- Add void to writer.write() in Game Icons decompression - Update tsconfig lib from ES2018 to ESNext so eslint can catch floating promises on modern APIs like DecompressionStream - Bump version to 1.0.7 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 15d337a commit fad9869

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "ttrpg-maps",
33
"name": "TTRPG Maps",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"minAppVersion": "1.5.0",
66
"description": "Render interactive TTRPG maps from code blocks with markers, templates, and distance measurement tools.",
77
"author": "matthttam",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-ttrpg-maps",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Render interactive TTRPG maps from code blocks with markers, templates, and distance measurement tools.",
55
"main": "main.js",
66
"repository": {

src/utils/mapIcon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function extractAndLoadGameIcons(
4242
const binary = Uint8Array.from(atob(GI_ICONS_COMPRESSED), (c) => c.charCodeAt(0));
4343
const ds = new DecompressionStream("deflate");
4444
const writer = ds.writable.getWriter();
45-
writer.write(binary);
45+
void writer.write(binary);
4646
void writer.close();
4747
const reader = ds.readable.getReader();
4848
const chunks: Uint8Array[] = [];

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"strictNullChecks": true,
1515
"lib": [
1616
"DOM",
17-
"ES2018"
17+
"ESNext"
1818
]
1919
},
2020
"include": [

0 commit comments

Comments
 (0)