grammy 1.20.3 → 1.20.4
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/README.md +5 -1
- package/out/convenience/frameworks.js +2 -3
- package/out/web.mjs +2 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -165,7 +165,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
165
165
|
</tr>
|
|
166
166
|
<tr>
|
|
167
167
|
<td align="center" valign="top" width="11.11%"><a href="https://github.com/ppsimn"><img src="https://avatars.githubusercontent.com/u/88509883?v=4?s=100" width="100px;" alt="ppsimn"/><br /><sub><b>ppsimn</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3Appsimn" title="Bug reports">🐛</a></td>
|
|
168
|
-
<td align="center" valign="top" width="11.11%"><a href="https://
|
|
168
|
+
<td align="center" valign="top" width="11.11%"><a href="https://github.com/satont"><img src="https://avatars.githubusercontent.com/u/42675886?v=4?s=100" width="100px;" alt="Satont"/><br /><sub><b>Satont</b></sub></a><br /><a href="#plugin-Satont" title="Plugin/utility libraries">🔌</a> <a href="https://github.com/grammyjs/grammY/commits?author=Satont" title="Documentation">📖</a></td>
|
|
169
169
|
<td align="center" valign="top" width="11.11%"><a href="https://github.com/deptyped"><img src="https://avatars.githubusercontent.com/u/26162440?v=4?s=100" width="100px;" alt="deptyped"/><br /><sub><b>deptyped</b></sub></a><br /><a href="#example-deptyped" title="Examples">💡</a> <a href="https://github.com/grammyjs/grammY/commits?author=deptyped" title="Documentation">📖</a> <a href="#tutorial-deptyped" title="Tutorials">✅</a> <a href="https://github.com/grammyjs/grammY/issues?q=author%3Adeptyped" title="Bug reports">🐛</a> <a href="#translation-deptyped" title="Translation">🌍</a></td>
|
|
170
170
|
<td align="center" valign="top" width="11.11%"><a href="https://github.com/dzek69"><img src="https://avatars.githubusercontent.com/u/4936805?v=4?s=100" width="100px;" alt="Jacek Nowacki"/><br /><sub><b>Jacek Nowacki</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=dzek69" title="Documentation">📖</a> <a href="https://github.com/grammyjs/grammY/commits?author=dzek69" title="Code">💻</a> <a href="https://github.com/grammyjs/grammY/issues?q=author%3Adzek69" title="Bug reports">🐛</a> <a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Adzek69" title="Reviewed Pull Requests">👀</a> <a href="#ideas-dzek69" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
171
171
|
<td align="center" valign="top" width="11.11%"><a href="https://blog.outv.im"><img src="https://avatars.githubusercontent.com/u/19144373?v=4?s=100" width="100px;" alt="Outvi V"/><br /><sub><b>Outvi V</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=outloudvi" title="Code">💻</a></td>
|
|
@@ -282,6 +282,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
282
282
|
<td align="center" valign="top" width="11.11%"><a href="https://github.com/HeySreelal"><img src="https://avatars.githubusercontent.com/u/94184909?v=4?s=100" width="100px;" alt="Sree (Taylor's Version)"/><br /><sub><b>Sree (Taylor's Version)</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3AHeySreelal" title="Bug reports">🐛</a> <a href="https://github.com/grammyjs/grammY/commits?author=HeySreelal" title="Code">💻</a></td>
|
|
283
283
|
<td align="center" valign="top" width="11.11%"><a href="http://linkedin.com/in/thecoorum"><img src="https://avatars.githubusercontent.com/u/32096016?v=4?s=100" width="100px;" alt="Yaroslav Vovchenko"/><br /><sub><b>Yaroslav Vovchenko</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/issues?q=author%3Athecoorum" title="Bug reports">🐛</a></td>
|
|
284
284
|
<td align="center" valign="top" width="11.11%"><a href="https://github.com/gabeklavans"><img src="https://avatars.githubusercontent.com/u/32149200?v=4?s=100" width="100px;" alt="gabe"/><br /><sub><b>gabe</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/pulls?q=is%3Apr+reviewed-by%3Agabeklavans" title="Reviewed Pull Requests">👀</a></td>
|
|
285
|
+
<td align="center" valign="top" width="11.11%"><a href="https://github.com/Rnbsov"><img src="https://avatars.githubusercontent.com/u/73550760?v=4?s=100" width="100px;" alt="Lavrentiy Rubtsov"/><br /><sub><b>Lavrentiy Rubtsov</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=Rnbsov" title="Documentation">📖</a></td>
|
|
286
|
+
</tr>
|
|
287
|
+
<tr>
|
|
288
|
+
<td align="center" valign="top" width="11.11%"><a href="https://linktr.ee/joshgillies"><img src="https://avatars.githubusercontent.com/u/319694?v=4?s=100" width="100px;" alt="Josh Gillies"/><br /><sub><b>Josh Gillies</b></sub></a><br /><a href="https://github.com/grammyjs/grammY/commits?author=joshgillies" title="Code">💻</a></td>
|
|
285
289
|
</tr>
|
|
286
290
|
</tbody>
|
|
287
291
|
</table>
|
|
@@ -125,13 +125,12 @@ const hono = (ctx) => {
|
|
|
125
125
|
let resolveResponse;
|
|
126
126
|
return {
|
|
127
127
|
update: ctx.req.json(),
|
|
128
|
-
header: ctx.req.
|
|
128
|
+
header: ctx.req.header(SECRET_HEADER),
|
|
129
129
|
end: () => {
|
|
130
130
|
resolveResponse(ctx.body());
|
|
131
131
|
},
|
|
132
132
|
respond: (json) => {
|
|
133
|
-
ctx.
|
|
134
|
-
resolveResponse(ctx.body(json));
|
|
133
|
+
resolveResponse(ctx.json(json));
|
|
135
134
|
},
|
|
136
135
|
unauthorized: () => {
|
|
137
136
|
ctx.status(401);
|
package/out/web.mjs
CHANGED
|
@@ -4505,13 +4505,12 @@ const hono = (ctx)=>{
|
|
|
4505
4505
|
let resolveResponse;
|
|
4506
4506
|
return {
|
|
4507
4507
|
update: ctx.req.json(),
|
|
4508
|
-
header: ctx.req.
|
|
4508
|
+
header: ctx.req.header(SECRET_HEADER),
|
|
4509
4509
|
end: ()=>{
|
|
4510
4510
|
resolveResponse(ctx.body());
|
|
4511
4511
|
},
|
|
4512
4512
|
respond: (json)=>{
|
|
4513
|
-
ctx.
|
|
4514
|
-
resolveResponse(ctx.body(json));
|
|
4513
|
+
resolveResponse(ctx.json(json));
|
|
4515
4514
|
},
|
|
4516
4515
|
unauthorized: ()=>{
|
|
4517
4516
|
ctx.status(401);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grammy",
|
|
3
3
|
"description": "The Telegram Bot Framework.",
|
|
4
|
-
"version": "1.20.
|
|
4
|
+
"version": "1.20.4",
|
|
5
5
|
"author": "KnorpelSenf",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"engines": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"backport": "deno2node tsconfig.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@grammyjs/types": "
|
|
20
|
+
"@grammyjs/types": "3.4.6",
|
|
21
21
|
"abort-controller": "^3.0.0",
|
|
22
22
|
"debug": "^4.3.4",
|
|
23
23
|
"node-fetch": "^2.7.0"
|