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 1.1.2 to 1.2.1

2

dist/format.d.ts

@@ -20,3 +20,3 @@ import type { MessageEntity } from "./deps.node.js";

declare const mentionUser: (stringLike: Stringable, userId: number) => FormattedString;
declare const fmt: (rawStringParts: TemplateStringsArray, ...stringLikes: Stringable[]) => FormattedString;
declare const fmt: (rawStringParts: TemplateStringsArray | string[], ...stringLikes: Stringable[]) => FormattedString;
export { bold, code, fmt, FormattedString, italic, link, mentionUser, pre, spoiler, strikethrough, underline, };
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

{
"name": "@grammyjs/parse-mode",
"version": "1.1.2",
"version": "1.2.1",
"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": "^1.2.1",
"deno2node": "^1.4.0",
"grammy": "^1.7.1",

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

@@ -21,2 +21,5 @@ # Parse Mode plugin for grammY

${bold(fmt`bold ${link('blink', 'example.com')} bold`)}`);
// fmt can also be called like a regular function
await ctx.replyFmt(fmt(['', ' and ', ' and ', ''], fmt`${bold('bold')}`, fmt`${bold(italic('bitalic'))}`, fmt`${italic('italic')}`));
});

@@ -31,5 +34,5 @@

import { Bot, Composer } from 'grammy';
import { hydrateReply, parseMode } from 'parse-mode';
import { hydrateReply, parseMode } from '@grammyjs/parse-mode';
import type { ParseModeContext } from 'parse-mode';
import type { ParseModeContext } from '@grammyjs/parse-mode';

@@ -36,0 +39,0 @@ const bot = new Bot<ParseModeContext>('');

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