Socket
Socket
Sign inDemoInstall

grammy

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grammy - npm Package Compare versions

Comparing version 1.28.0 to 1.29.0

28

out/convenience/session.d.ts

@@ -10,6 +10,5 @@ import { type MiddlewareFn } from "../composer.js";

* storage solution, and make it available to you on the context object. Check
* out the
* [documentation](https://grammy.dev/ref/core/session)
* on session middleware to know more, and read the section about sessions on
* the [website](https://grammy.dev/plugins/session).
* out the [documentation](https://grammy.dev/ref/core/session) on session
* middleware to know more, and read the section about sessions on the
* [website](https://grammy.dev/plugins/session).
*/

@@ -21,8 +20,8 @@ export interface SessionFlavor<S> {

* **WARNING:** You have to make sure that your session data is not
* undefined by _providing an initial value to the session middleware_, or by
* making sure that `ctx.session` is assigned if it is empty! The type
* undefined by _providing an initial value to the session middleware_, or
* by making sure that `ctx.session` is assigned if it is empty! The type
* system does not include `| undefined` because this is really annoying to
* work with.
*
* Accessing `ctx.session` by reading or writing will throw if
* Accessing `ctx.session` by reading or writing will throw if
* `getSessionKey(ctx) === undefined` for the respective context object

@@ -42,5 +41,4 @@ * `ctx`.

* same context object, the cached value will be used. Check out the
* [documentation](https://grammy.dev/ref/core/lazysession)
* on lazy session middleware to know more, and read the section about lazy
* sessions on the
* [documentation](https://grammy.dev/ref/core/lazysession) on lazy session
* middleware to know more, and read the section about lazy sessions on the
* [website](https://grammy.dev/plugins/session#lazy-sessions).

@@ -307,7 +305,7 @@ */

*
* This storage adapter features expiring sessions. When instantiating this class
* yourself, you can pass a time to live in milliseconds that will be used for
* each session object. If a session for a user expired, the session data will
* be discarded on its first read, and a fresh session object as returned by the
* `initial` option (or undefined) will be put into place.
* This storage adapter features expiring sessions. When instantiating this
* class yourself, you can pass a time to live in milliseconds that will be used
* for each session object. If a session for a user expired, the session data
* will be discarded on its first read, and a fresh session object as returned
* by the `initial` option (or undefined) will be put into place.
*/

@@ -314,0 +312,0 @@ export declare class MemorySessionStorage<S> implements StorageAdapter<S> {

@@ -378,7 +378,7 @@ "use strict";

*
* This storage adapter features expiring sessions. When instantiating this class
* yourself, you can pass a time to live in milliseconds that will be used for
* each session object. If a session for a user expired, the session data will
* be discarded on its first read, and a fresh session object as returned by the
* `initial` option (or undefined) will be put into place.
* This storage adapter features expiring sessions. When instantiating this
* class yourself, you can pass a time to live in milliseconds that will be used
* for each session object. If a session for a user expired, the session data
* will be discarded on its first read, and a fresh session object as returned
* by the `initial` option (or undefined) will be put into place.
*/

@@ -385,0 +385,0 @@ class MemorySessionStorage {

@@ -745,2 +745,3 @@ import { type Context } from "./context.js";

readonly custom_emoji: {};
readonly paid: {};
};

@@ -750,2 +751,3 @@ readonly new_reaction: {

readonly custom_emoji: {};
readonly paid: {};
};

@@ -757,2 +759,3 @@ };

readonly custom_emoji: {};
readonly paid: {};
};

@@ -759,0 +762,0 @@ };

@@ -244,2 +244,3 @@ "use strict";

custom_emoji: {},
paid: {},
};

@@ -246,0 +247,0 @@ // L2

{
"name": "grammy",
"description": "The Telegram Bot Framework.",
"version": "1.28.0",
"version": "1.29.0",
"author": "KnorpelSenf",

@@ -20,3 +20,3 @@ "license": "MIT",

"dependencies": {
"@grammyjs/types": "3.12.0",
"@grammyjs/types": "3.13.0",
"abort-controller": "^3.0.0",

@@ -23,0 +23,0 @@ "debug": "^4.3.4",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc