gramio 0.4.0 → 0.4.1

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.
package/dist/index.cjs CHANGED
@@ -54,14 +54,14 @@ class Composer {
54
54
  )) {
55
55
  context[key] = value;
56
56
  }
57
- next();
57
+ return await next();
58
58
  });
59
59
  else if (handler)
60
60
  this.on(updateNameOrHandler, async (context, next) => {
61
61
  for (const [key, value] of Object.entries(await handler(context))) {
62
62
  context[key] = value;
63
63
  }
64
- next();
64
+ return await next();
65
65
  });
66
66
  return this;
67
67
  }
package/dist/index.js CHANGED
@@ -56,14 +56,14 @@ class Composer {
56
56
  )) {
57
57
  context[key] = value;
58
58
  }
59
- next();
59
+ return await next();
60
60
  });
61
61
  else if (handler)
62
62
  this.on(updateNameOrHandler, async (context, next) => {
63
63
  for (const [key, value] of Object.entries(await handler(context))) {
64
64
  context[key] = value;
65
65
  }
66
- next();
66
+ return await next();
67
67
  });
68
68
  return this;
69
69
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gramio",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "description": "Powerful, extensible and really type-safe Telegram Bot API framework",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",