Comparing version 4.8.1 to 4.8.2
@@ -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
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
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
449693
117
9632