@worktango/ai-assistant 0.0.31 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/express.js +2 -2
  2. package/package.json +1 -1
package/dist/express.js CHANGED
@@ -4465,11 +4465,11 @@ import_dayjs6.default.extend(import_timezone2.default);
4465
4465
  function setupAiAssistantRoutes(args) {
4466
4466
  const logger = coalesce(args.logger, console);
4467
4467
  const routePath = args.route ?? "/ai-assistant";
4468
- args.app.all(
4468
+ args.app.use(
4469
4469
  routePath,
4470
4470
  ...coalesce(args.preflightMiddlewares, []),
4471
4471
  async (req, res) => {
4472
- const bearerToken = await args.getBearerToken().catch((error) => {
4472
+ const bearerToken = await args.getBearerToken(req).catch((error) => {
4473
4473
  logger.error("Error getting bearer token:", error);
4474
4474
  res.status(500).send("Error getting bearer token");
4475
4475
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktango/ai-assistant",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "files": [
5
5
  "dist",
6
6
  "express.d.ts",