Socket
Socket
Sign inDemoInstall

@grammyjs/menu

Package Overview
Dependencies
13
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

8

out/menu.js

@@ -174,6 +174,10 @@ "use strict";

submenu(text, menu, ...middleware) {
return this.text(text, (ctx, next) => (ctx.menu.nav(menu), next()), ...middleware);
return this.text(text, middleware.length === 0
? (ctx) => ctx.menu.nav(menu)
: (ctx, next) => (ctx.menu.nav(menu), next()), ...middleware);
}
back(text, ...middleware) {
return this.text(text, (ctx, next) => (ctx.menu.back(), next()), ...middleware);
return this.text(text, middleware.length === 0
? (ctx) => ctx.menu.back()
: (ctx, next) => (ctx.menu.back(), next()), ...middleware);
}

@@ -180,0 +184,0 @@ /**

{
"name": "@grammyjs/menu",
"description": "Interactive menus for grammY",
"version": "1.1.0",
"version": "1.1.1",
"author": "KnorpelSenf",

@@ -6,0 +6,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc