Skip to content

Commit

Permalink
chore: ⬆️ upgrade all dependencies (#53)
Browse files Browse the repository at this point in the history
* chore: ⬆️ upgrade all dependencies

Upgrades all dependencies to latest using yarn

* fix: 💚 LTS node version, @slack/web-api to be compatible with @slack/bolt, build errors

* fix: 💚 fix ci build
  • Loading branch information
alphainfinitus authored Feb 15, 2024
1 parent 30f0925 commit 93f1a49
Show file tree
Hide file tree
Showing 4 changed files with 1,215 additions and 1,638 deletions.
51 changes: 26 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,39 @@
],
"license": "MIT",
"devDependencies": {
"@firebase/app-types": "^0.6.2",
"@types/jest": "^26.0.23",
"@types/lodash": "^4.14.170",
"@types/node-fetch": "^2.5.10",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"dotenv": "^10.0.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-promise": "^5.1.0",
"@firebase/app-types": "^0.9.0",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.14.202",
"@types/node-fetch": "^2.6.11",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"dotenv": "^16.4.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"glitch-deploy-tool": "^0.1.9-alpha",
"jest": "^27.0.4",
"jest-config": "^27.0.4",
"prettier": "^2.3.1",
"rimraf": "^3.0.2",
"jest": "^29.7.0",
"jest-config": "^29.7.0",
"jsesc": "^3.0.2",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typescript": "^4.3.2"
"typescript": "^5.3.3"
},
"dependencies": {
"@slack/bolt": "^3.4.0",
"@slack/web-api": "^6.2.4",
"axios": "^0.21.2",
"chrono-node": "^2.3.0",
"express": "^4.17.3",
"firebase-admin": "^9.10.0",
"@slack/bolt": "^3.17.1",
"@slack/web-api": "^6.11.2",
"axios": "^1.6.7",
"chrono-node": "^2.7.5",
"express": "^4.18.2",
"firebase-admin": "^12.0.0",
"lodash": "^4.17.21",
"moment-timezone": "^0.5.35",
"reflect-metadata": "^0.1.13"
"moment-timezone": "^0.5.45",
"reflect-metadata": "^0.2.1"
},
"engines": {
"node": ">=20.x"
Expand Down
4 changes: 2 additions & 2 deletions src/controller/convertDateMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const promptMsgDateConvert: Middleware<SlackEventMiddlewareArgs<'message'
});
}
} catch (err) {
console.log(err);
console.log((err as Error).message);
}
};

Expand Down Expand Up @@ -110,6 +110,6 @@ export const convertTimeInChannel: Middleware<SlackActionMiddlewareArgs<BlockAct
});
} catch (err) {
console.error(err);
await respond({ text: `*[Error]* ${err}`, replace_original: true });
await respond({ text: `*[Error]* ${(err as Error).message}`, replace_original: true });
}
};
2 changes: 1 addition & 1 deletion src/middleware/messageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const messageHasTimeRef: Middleware<SlackEventMiddlewareArgs<'message'>>
// Pass control to the next middleware function
next && (await next());
} catch (err) {
console.log(err);
console.log((err as Error).message);
}
};

Expand Down
Loading

0 comments on commit 93f1a49

Please sign in to comment.