Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grammyjs/parse-mode

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammyjs/parse-mode - npm Package Compare versions

Comparing version 0.1.3 to 1.0.0

6

dist/transformer.js

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

}
const transformer = (prev, method, payload) => {
const transformer = (prev, method, payload, signal) => {
if (!payload || 'parse_mode' in payload) {
return prev(method, payload);
return prev(method, payload, signal);
}
return prev(method, { ...payload, ...{ parse_mode: normalisedParseMode } });
return prev(method, { ...payload, ...{ parse_mode: normalisedParseMode } }, signal);
};

@@ -21,0 +21,0 @@ return transformer;

{
"name": "@grammyjs/parse-mode",
"version": "0.1.3",
"version": "1.0.0",
"description": "Plugin for hydrating ctx with familiar reply variants and for setting default parse_mode",

@@ -27,3 +27,3 @@ "author": "KnightNiwrem",

"@types/node": "^16.6.1",
"deno2node": "^0.8.0",
"deno2node": "^1.0.0",
"grammy": "^1.3.1",

@@ -30,0 +30,0 @@ "typescript": "^4.3.5"

@@ -7,3 +7,3 @@ # Parse Mode plugin for grammY

```
```ts
import { Bot, Composer } from 'grammy';

@@ -10,0 +10,0 @@ import { hydrateReply, parseMode } from 'parse-mode';

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