Socket
Socket
Sign inDemoInstall

puregram

Package Overview
Dependencies
11
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.20.0 to 2.20.1

4

lib/common/parse-mode/html.d.ts

@@ -24,7 +24,7 @@ /** HTML parse mode */

/** Preformatted code */
static code(source: string, language?: string, escape?: boolean): string;
static code(source: string, escape?: boolean): string;
/** Preformatted code */
static pre(source: string, escape?: boolean): string;
static pre(source: string, language?: string, escape?: boolean): string;
/** Custom emoji */
static emoji(emoji: string, id: string): string;
}

@@ -50,11 +50,12 @@ "use strict";

/** Preformatted code */
static code(source, language, escape = true) {
const additional = (language
? ` class="language-${language}"`
: '');
return `<code${additional}>${escape ? HTML.escape(source) : source}</code>`;
static code(source, escape = true) {
return `<code>${escape ? HTML.escape(source) : source}</code>`;
}
/** Preformatted code */
static pre(source, escape = true) {
return `<pre>${escape ? HTML.escape(source) : source}</pre>`;
static pre(source, language, escape = true) {
const string = escape ? HTML.escape(source) : source;
if (language !== undefined) {
return `<pre><code class="language-${language}">${string}</code></pre>`;
}
return `<pre>${string}</pre>`;
}

@@ -61,0 +62,0 @@ /** Custom emoji */

{
"name": "puregram",
"version": "2.20.0",
"version": "2.20.1",
"description": "powerful and modern telegram bot api sdk for node.js and typescript 😁",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -946,3 +946,3 @@ <!-- inspired by prisma.io & telegraf docs -->

if you ¯\\\_(ツ)_/¯ what to do and want to ask a question, **[@pureforum](pureforum) is definitely the way!**
if you ¯\\\_(ツ)_/¯ what to do and want to ask a question, **[@pureforum][pureforum] is definitely the way!**

@@ -949,0 +949,0 @@ [pureforum]: https://t.me/pureforum

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc