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

puregram

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puregram - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-rc.1

src/api.d.ts

2

package.json
{
"name": "puregram",
"version": "1.1.0",
"version": "1.1.1-rc.1",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -31,4 +31,6 @@ let fetch = require('node-fetch');

if (query) {
if (query.reply_markup) {
query.reply_markup = query.reply_markup.toJSON();
if ('reply_markup' in query) {
query.reply_markup = typeof query.reply_markup === 'string'
? query.reply_markup
: query.reply_markup.toJSON();
}

@@ -40,5 +42,7 @@

url += `${key}=${
method === 'sendPoll' && Array.isArray(value)
? JSON.stringify(value)
: value.toString()
encodeURI(
method === 'sendPoll' && Array.isArray(value)
? JSON.stringify(value)
: value.toString()
)
}&`;

@@ -45,0 +49,0 @@ }

@@ -56,2 +56,17 @@ interface IPreParams {

/**
* Format brackets
*/
public static brackets(text: string): string;
/**
* Format curly braces
*/
public static curlyBraces(text: string): string;
/**
* Format square braces
*/
public static squareBraces(text: string): string;
public static get parseMode(): 'MarkdownV2';

@@ -58,0 +73,0 @@ }

@@ -41,2 +41,14 @@ class MarkdownV2 {

static brackets(text) {
return `\\(${text}\\)`
}
static curlyBraces(text) {
return `\\{${text}\\}`
}
static squareBraces(text) {
return `\\[${text}\\]`
}
static get parseMode() {

@@ -43,0 +55,0 @@ return 'MarkdownV2';

@@ -46,2 +46,17 @@ interface IPreParams {

/**
* Format brackets
*/
public static brackets(text: string): string;
/**
* Format curly braces
*/
public static curlyBraces(text: string): string;
/**
* Format square braces
*/
public static squareBraces(text: string): string;
public static get parseMode(): 'Markdown';

@@ -48,0 +63,0 @@ }

@@ -33,2 +33,14 @@ class Markdown {

static brackets(text) {
return `\\(${text}\\)`
}
static curlyBraces(text) {
return `\\{${text}\\}`
}
static squareBraces(text) {
return `\\[${text}\\]`
}
static get parseMode() {

@@ -35,0 +47,0 @@ return 'Markdown';

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