@grammyjs/parse-mode
Advanced tools
Comparing version 0.1.3 to 1.0.0
@@ -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'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7165
0
1