Skip to content

Commit 6c40496

Browse files
authored
chore: bump eslint to v10
1 parent 98d89c0 commit 6c40496

5 files changed

Lines changed: 18 additions & 10 deletions

File tree

dist/AdvancedFlagging.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@
10691069
return fkey;
10701070
} catch (error) {
10711071
console.error(error);
1072-
throw new Error("Failed to get chat fkey");
1072+
throw new Error("Failed to get chat fkey", { cause: error });
10731073
}
10741074
}, expiryDate);
10751075
}
@@ -1852,7 +1852,7 @@
18521852
json = JSON.parse(response);
18531853
} catch (error) {
18541854
console.error(error, response);
1855-
throw new Error("could not parse JSON");
1855+
throw new Error("could not parse JSON", { cause: error });
18561856
}
18571857
if (!json.Success) {
18581858
console.error(json);

npm-shrinkwrap.json

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Robert Rudman <rjrudman@gmail.com> (https://github.com/rjrudman)",
1111
"license": "ISC",
1212
"devDependencies": {
13-
"@eslint/js": "^9.39.2",
13+
"@eslint/js": "^10.0.1",
1414
"@stylistic/eslint-plugin": "^5.9.0",
1515
"@types/jquery": "4.0.0",
1616
"@types/node": "^25.3.0",

src/UserscriptTools/ChatApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export class ChatApi {
199199
return fkey;
200200
} catch (error) {
201201
console.error(error);
202-
throw new Error('Failed to get chat fkey');
202+
throw new Error('Failed to get chat fkey', { cause: error });
203203
}
204204
}, expiryDate);
205205
}

src/UserscriptTools/Post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default class Post {
213213
} catch (error) {
214214
console.error(error, response);
215215

216-
throw new Error('could not parse JSON');
216+
throw new Error('could not parse JSON', { cause: error });
217217
}
218218

219219
if (!json.Success) {

0 commit comments

Comments
 (0)