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

telegraf

Package Overview
Dependencies
Maintainers
3
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegraf - npm Package Compare versions

Comparing version 4.8.1 to 4.8.2

lib/telegraf-types.js

3

lib/core/network/client.js

@@ -42,2 +42,3 @@ "use strict";

attachmentAgent: undefined,
testEnv: false,
};

@@ -251,3 +252,3 @@ function includesMedia(payload) {

: await buildJSONConfig(payload);
const apiUrl = new url_1.URL(`./${options.apiMode}${token}/${method}`, options.apiRoot);
const apiUrl = new url_1.URL(`./${options.apiMode}${token}${options.testEnv ? '/test' : ''}/${method}`, options.apiRoot);
config.agent = options.agent;

@@ -254,0 +255,0 @@ config.signal = signal;

"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": "telegraf",
"version": "4.8.1",
"version": "4.8.2",
"description": "Modern Telegram Bot Framework",

@@ -31,13 +31,2 @@ "license": "MIT",

},
"scripts": {
"prepare": "npm run --silent build",
"build": "tsc --build docs/examples",
"build:docs": "typedoc src/index.ts",
"pretest": "npm run build",
"test": "ava test/*",
"lint": "eslint .",
"checks": "npm test && npm run lint",
"refresh": "npm run clean && npm ci",
"clean": "git clean -fX .eslintcache docs/build/ lib/ typings/"
},
"type": "commonjs",

@@ -86,3 +75,13 @@ "engines": {

"bot framework"
]
}
],
"scripts": {
"build": "tsc --build docs/examples",
"build:docs": "typedoc src/index.ts",
"pretest": "npm run build",
"test": "ava test/*",
"lint": "eslint .",
"checks": "npm test && npm run lint",
"refresh": "npm run clean && npm ci",
"clean": "git clean -fX .eslintcache docs/build/ lib/ typings/"
}
}

@@ -50,2 +50,3 @@ /* eslint @typescript-eslint/restrict-template-expressions: [ "error", { "allowNumber": true, "allowBoolean": true } ] */

webhookReply: boolean
testEnv: boolean
}

@@ -77,2 +78,3 @@

attachmentAgent: undefined,
testEnv: false,
}

@@ -358,3 +360,3 @@

const apiUrl = new URL(
`./${options.apiMode}${token}/${method}`,
`./${options.apiMode}${token}${options.testEnv ? '/test' : ''}/${method}`,
options.apiRoot

@@ -361,0 +363,0 @@ )

@@ -27,2 +27,3 @@ /// <reference types="node" />

webhookReply: boolean;
testEnv: boolean;
}

@@ -29,0 +30,0 @@ interface CallApiOptions {

Sorry, the diff of this file is not supported yet

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