Skip to content

Commit

Permalink
chore: bump version and fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Dec 3, 2022
1 parent d54604a commit 1b3ba24
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 52 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"email": "[email protected]",
"url": "https://snazzah.com/"
},
"version": "8.1.0",
"version": "8.1.1",
"description": "Taco Bot over Discord Interactions: Manage Trello boards straight from Discord!",
"main": "dist/index.js",
"license": "MIT",
Expand Down Expand Up @@ -59,7 +59,7 @@
"@types/i18next-fs-backend": "1.1.2",
"@types/ioredis": "4.28.10",
"@types/node": "18.11.9",
"eslint": "8.28.0",
"eslint": "8.29.0",
"eslint-config-snazzah": "1.2.1",
"prisma": "4.7.0",
"slash-up": "1.2.1",
Expand Down
8 changes: 5 additions & 3 deletions src/actions/deleteWebhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ export const action: ActionFunction = {
await prisma.webhook.delete({ where: { id: webhook.id } });

// Remove the internal webhook if there are no more webhooks depending on it
const trelloMember = webhook.memberID ? await prisma.user.findUnique({
where: { userID: webhook.memberID }
}) : null;
const trelloMember = webhook.memberID
? await prisma.user.findUnique({
where: { userID: webhook.memberID }
})
: null;
try {
if (trelloMember?.trelloToken) {
const trello = new Trello(trelloMember.trelloToken);
Expand Down
2 changes: 1 addition & 1 deletion src/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export function parseBigInt(value: string, radix: number) {
return parts.reduce((r, v) => r * factor + BigInt(parseInt(v, radix)), 0n);
}

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

export function getBoardID(value: string) {
const match = BOARD_ID_REGEX.exec(value);
Expand Down
47 changes: 1 addition & 46 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1207,52 +1207,7 @@ eslint-visitor-keys@^3.3.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==

[email protected]:
version "8.28.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.28.0.tgz#81a680732634677cc890134bcdd9fdfea8e63d6e"
integrity sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==
dependencies:
"@eslint/eslintrc" "^1.3.3"
"@humanwhocodes/config-array" "^0.11.6"
"@humanwhocodes/module-importer" "^1.0.1"
"@nodelib/fs.walk" "^1.2.8"
ajv "^6.10.0"
chalk "^4.0.0"
cross-spawn "^7.0.2"
debug "^4.3.2"
doctrine "^3.0.0"
escape-string-regexp "^4.0.0"
eslint-scope "^7.1.1"
eslint-utils "^3.0.0"
eslint-visitor-keys "^3.3.0"
espree "^9.4.0"
esquery "^1.4.0"
esutils "^2.0.2"
fast-deep-equal "^3.1.3"
file-entry-cache "^6.0.1"
find-up "^5.0.0"
glob-parent "^6.0.2"
globals "^13.15.0"
grapheme-splitter "^1.0.4"
ignore "^5.2.0"
import-fresh "^3.0.0"
imurmurhash "^0.1.4"
is-glob "^4.0.0"
is-path-inside "^3.0.3"
js-sdsl "^4.1.4"
js-yaml "^4.1.0"
json-stable-stringify-without-jsonify "^1.0.1"
levn "^0.4.1"
lodash.merge "^4.6.2"
minimatch "^3.1.2"
natural-compare "^1.4.0"
optionator "^0.9.1"
regexpp "^3.2.0"
strip-ansi "^6.0.1"
strip-json-comments "^3.1.0"
text-table "^0.2.0"

eslint@^8.21.0:
[email protected], eslint@^8.21.0:
version "8.29.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.29.0.tgz#d74a88a20fb44d59c51851625bc4ee8d0ec43f87"
integrity sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==
Expand Down

0 comments on commit 1b3ba24

Please sign in to comment.