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

gramio

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gramio - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

10

dist/index.d.ts

@@ -310,2 +310,5 @@ import { CallbackData } from '@gramio/callback-data';

onError(handler: Hooks.OnError<Errors, Context<AnyBot> & Derives["global"]>): this;
/**
* ! ** At the moment, it can only pick up types** */
extend<NewPlugin extends AnyPlugin>(plugin: MaybePromise<NewPlugin>): Plugin<Errors & NewPlugin["_"]["Errors"], Derives & NewPlugin["_"]["Derives"]>;
}

@@ -599,10 +602,11 @@

declare class Bot<Errors extends ErrorDefinitions = {}, Derives extends DeriveDefinitions = DeriveDefinitions> {
/** @deprecated use `~` instead*/
_: {
/** @internal. Remap generic */
/** @deprecated @internal. Remap generic */
derives: Derives;
};
/** @internal. Remap generic */
/** @deprecated use `~.derives` instead @internal. Remap generic */
__Derives: Derives;
"~": {
/** @internal. Remap generic */
/** @deprecated @internal. Remap generic */
derives: Derives;

@@ -609,0 +613,0 @@ };

@@ -311,2 +311,7 @@ import fs from 'node:fs/promises';

}
/**
* ! ** At the moment, it can only pick up types** */
extend(plugin) {
return this;
}
}

@@ -474,7 +479,8 @@ _init$1 = __decoratorStart$1();

class Bot {
/** @deprecated use `~` instead*/
_ = {
/** @internal. Remap generic */
/** @deprecated @internal. Remap generic */
derives: {}
};
/** @internal. Remap generic */
/** @deprecated use `~.derives` instead @internal. Remap generic */
__Derives;

@@ -573,3 +579,3 @@ "~" = this._;

const debug$api$method = debug$api.extend(method);
const url = `${this.options.api.baseURL}${this.options.token}/${method}`;
const url = `${this.options.api.baseURL}${this.options.token}/${this.options.api.useTest ? "test/" : ""}${method}`;
const reqOptions = {

@@ -576,0 +582,0 @@ method: "POST",

{
"name": "gramio",
"type": "module",
"version": "0.2.0",
"version": "0.2.1",
"description": "Powerful, extensible and really type-safe Telegram Bot API framework",

@@ -6,0 +6,0 @@ "main": "dist/index.cjs",

Sorry, the diff of this file is not supported yet

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