Skip to content

Commit 1b3ba24

Browse files
committed
chore: bump version and fix linting
1 parent d54604a commit 1b3ba24

File tree

4 files changed

+9
-52
lines changed

4 files changed

+9
-52
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"email": "[email protected]",
66
"url": "https://snazzah.com/"
77
},
8-
"version": "8.1.0",
8+
"version": "8.1.1",
99
"description": "Taco Bot over Discord Interactions: Manage Trello boards straight from Discord!",
1010
"main": "dist/index.js",
1111
"license": "MIT",
@@ -59,7 +59,7 @@
5959
"@types/i18next-fs-backend": "1.1.2",
6060
"@types/ioredis": "4.28.10",
6161
"@types/node": "18.11.9",
62-
"eslint": "8.28.0",
62+
"eslint": "8.29.0",
6363
"eslint-config-snazzah": "1.2.1",
6464
"prisma": "4.7.0",
6565
"slash-up": "1.2.1",

src/actions/deleteWebhook.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ export const action: ActionFunction = {
2323
await prisma.webhook.delete({ where: { id: webhook.id } });
2424

2525
// Remove the internal webhook if there are no more webhooks depending on it
26-
const trelloMember = webhook.memberID ? await prisma.user.findUnique({
27-
where: { userID: webhook.memberID }
28-
}) : null;
26+
const trelloMember = webhook.memberID
27+
? await prisma.user.findUnique({
28+
where: { userID: webhook.memberID }
29+
})
30+
: null;
2931
try {
3032
if (trelloMember?.trelloToken) {
3133
const trello = new Trello(trelloMember.trelloToken);

src/util/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export function parseBigInt(value: string, radix: number) {
265265
return parts.reduce((r, v) => r * factor + BigInt(parseInt(v, radix)), 0n);
266266
}
267267

268-
const BOARD_ID_REGEX = /^(?:https?:\/\/trello\.com\/b\/)?([0-9a-f]{24}|[a-zA-Z0-9]{7,10})(?:[\/\w?=&%-]*)$/;
268+
const BOARD_ID_REGEX = /^(?:https?:\/\/trello\.com\/b\/)?([0-9a-f]{24}|[a-zA-Z0-9]{7,10})(?:[/\w?=&%-]*)$/;
269269

270270
export function getBoardID(value: string) {
271271
const match = BOARD_ID_REGEX.exec(value);

yarn.lock

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,52 +1207,7 @@ eslint-visitor-keys@^3.3.0:
12071207
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
12081208
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
12091209

1210-
1211-
version "8.28.0"
1212-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.28.0.tgz#81a680732634677cc890134bcdd9fdfea8e63d6e"
1213-
integrity sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==
1214-
dependencies:
1215-
"@eslint/eslintrc" "^1.3.3"
1216-
"@humanwhocodes/config-array" "^0.11.6"
1217-
"@humanwhocodes/module-importer" "^1.0.1"
1218-
"@nodelib/fs.walk" "^1.2.8"
1219-
ajv "^6.10.0"
1220-
chalk "^4.0.0"
1221-
cross-spawn "^7.0.2"
1222-
debug "^4.3.2"
1223-
doctrine "^3.0.0"
1224-
escape-string-regexp "^4.0.0"
1225-
eslint-scope "^7.1.1"
1226-
eslint-utils "^3.0.0"
1227-
eslint-visitor-keys "^3.3.0"
1228-
espree "^9.4.0"
1229-
esquery "^1.4.0"
1230-
esutils "^2.0.2"
1231-
fast-deep-equal "^3.1.3"
1232-
file-entry-cache "^6.0.1"
1233-
find-up "^5.0.0"
1234-
glob-parent "^6.0.2"
1235-
globals "^13.15.0"
1236-
grapheme-splitter "^1.0.4"
1237-
ignore "^5.2.0"
1238-
import-fresh "^3.0.0"
1239-
imurmurhash "^0.1.4"
1240-
is-glob "^4.0.0"
1241-
is-path-inside "^3.0.3"
1242-
js-sdsl "^4.1.4"
1243-
js-yaml "^4.1.0"
1244-
json-stable-stringify-without-jsonify "^1.0.1"
1245-
levn "^0.4.1"
1246-
lodash.merge "^4.6.2"
1247-
minimatch "^3.1.2"
1248-
natural-compare "^1.4.0"
1249-
optionator "^0.9.1"
1250-
regexpp "^3.2.0"
1251-
strip-ansi "^6.0.1"
1252-
strip-json-comments "^3.1.0"
1253-
text-table "^0.2.0"
1254-
1255-
eslint@^8.21.0:
1210+
[email protected], eslint@^8.21.0:
12561211
version "8.29.0"
12571212
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.29.0.tgz#d74a88a20fb44d59c51851625bc4ee8d0ec43f87"
12581213
integrity sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==

0 commit comments

Comments
 (0)