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

@grammyjs/fluent

Package Overview
Dependencies
Maintainers
0
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.3 to 1.1.0-beta.1

3

dist/middleware.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFluent = void 0;
exports.useFluent = useFluent;
const locale_negotiator_1 = require("./locale-negotiator");

@@ -32,3 +32,2 @@ const fallbackLocale = 'en';

}
exports.useFluent = useFluent;
//# sourceMappingURL=middleware.js.map
import { LocaleId } from '@moebius/fluent';
import { Context } from 'grammy';
export declare type LocaleNegotiator<ContextType extends Context = Context> = (context: ContextType) => (LocaleId | undefined | PromiseLike<LocaleId | undefined>);
export type LocaleNegotiator<ContextType extends Context = Context> = (context: ContextType) => (LocaleId | undefined | PromiseLike<LocaleId | undefined>);
export declare const defaultLocaleNegotiator: LocaleNegotiator;

@@ -9,3 +9,3 @@ import { Fluent, LocaleId, TranslationContext } from '@moebius/fluent';

}
export declare type TranslateFunction = ((messageId: string, context?: TranslationContext) => string);
export type TranslateFunction = ((messageId: string, context?: TranslationContext) => string);
export interface FluentContextFlavor {

@@ -12,0 +12,0 @@ fluent: {

{
"name": "@grammyjs/fluent",
"version": "1.0.3",
"version": "1.1.0-beta.1",
"description": "Fluent localization system integration for grammY Telegram bot framework",

@@ -54,3 +54,3 @@ "scripts": {

"engines": {
"node": ">=12"
"node": ">=18"
},

@@ -64,12 +64,12 @@ "files": [

"peerDependencies": {
"@moebius/fluent": "^1.0.0",
"grammy": "^1.5.0"
"@moebius/fluent": "^1.1.0",
"grammy": "^1.33.0"
},
"dependencies": {},
"devDependencies": {
"@types/node": "^12.20.46",
"@types/node": "^18.19.68",
"npm-run-all": "^4.1.5",
"ts-node": "^10.6.0",
"typescript": "^4.6.2"
"ts-node": "^10.9.2",
"typescript": "^5.7.2"
}
}

@@ -349,3 +349,3 @@

Copyright © 2021 Slava Fomin II
Copyright © 2021—2024 Slava Fomin II

@@ -352,0 +352,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

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