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

@grammyjs/fluent

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammyjs/fluent - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

dist/locale-negotiator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultLocaleNegotiator = void 0;
function defaultLocaleNegotiator(context) {
var _a;
return (_a = context.from) === null || _a === void 0 ? void 0 : _a.language_code;
}
exports.defaultLocaleNegotiator = defaultLocaleNegotiator;
exports.defaultLocaleNegotiator = (context => { var _a; return (_a = context.from) === null || _a === void 0 ? void 0 : _a.language_code; });
//# sourceMappingURL=locale-negotiator.js.map

4

dist/types/locale-negotiator.d.ts
import { LocaleId } from '@moebius/fluent';
import { Context } from 'grammy';
export declare type LocaleNegotiator<ContextType extends Context = Context> = (context: ContextType) => (LocaleId | PromiseLike<LocaleId>);
export declare function defaultLocaleNegotiator(context: Context): string | undefined;
export declare type LocaleNegotiator<ContextType extends Context = Context> = (context: ContextType) => (LocaleId | undefined | PromiseLike<LocaleId | undefined>);
export declare const defaultLocaleNegotiator: LocaleNegotiator;
{
"name": "@grammyjs/fluent",
"version": "1.0.1",
"version": "1.0.2",
"description": "Fluent localization system integration for grammY Telegram bot framework",

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

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