You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gramio

Package Overview
Dependencies
Maintainers
1
Versions
74
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

to
0.4.8

23

dist/index.js

@@ -433,3 +433,3 @@ import fs from 'node:fs/promises';

filters = {
context: (name2) => (context) => context.is(name2)
context: (name) => (context) => context.is(name)
};

@@ -657,14 +657,23 @@ /** Options provided to instance */

decorate(nameOrRecordValue, value) {
for (const contextName of Object.keys(contextsMappings)) {
for (const contextName of Object.keys(
contextsMappings
)) {
if (typeof nameOrRecordValue === "string")
Object.defineProperty(contextsMappings[contextName].prototype, name, {
value
});
Object.defineProperty(
contextsMappings[contextName].prototype,
nameOrRecordValue,
{
value,
configurable: true
}
);
else
Object.defineProperties(
// @ts-expect-error
contextsMappings[contextName].prototype,
Object.keys(nameOrRecordValue).reduce(
(acc, key) => {
acc[key] = { value: nameOrRecordValue[key] };
acc[key] = {
value: nameOrRecordValue[key],
configurable: true
};
return acc;

@@ -671,0 +680,0 @@ },

{
"name": "gramio",
"type": "module",
"version": "0.4.7",
"version": "0.4.8",
"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