Socket
Socket
Sign inDemoInstall

@lingui/core

Package Overview
Dependencies
2
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-next.4 to 4.0.0-next.5

23

dist/index.d.ts

@@ -0,1 +1,3 @@

import { CompiledMessage } from '@lingui/message-utils/compileMessage';
declare class EventEmitter<Events extends {

@@ -15,2 +17,3 @@ [name: string]: (...args: any[]) => any;

};
type Locale = string;

@@ -21,3 +24,3 @@ type Locales = Locale | Locale[];

/**
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
*/

@@ -28,14 +31,9 @@ type LocaleData = {

/**
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
*/
type AllLocaleData = Record<Locale, LocaleData>;
type CompiledIcuChoices = Record<string, CompiledMessage> & {
offset: number;
};
type CompiledMessageToken = string | [name: string, type?: string, format?: null | string | CompiledIcuChoices];
type CompiledMessage = string | CompiledMessageToken[];
type Messages = Record<string, CompiledMessage>;
type AllMessages = Record<Locale, Messages>;
type MessageDescriptor = {
id?: string;
id: string;
comment?: string;

@@ -55,3 +53,3 @@ message?: string;

/**
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
*/

@@ -76,3 +74,3 @@ localeData?: AllLocaleData;

/**
* @deprecated this has no effect. Please remove this from the code. Introduced in v4
* @deprecated this has no effect. Please remove this from the code. Deprecated in v4
*/

@@ -82,7 +80,7 @@ get localeData(): LocaleData;

/**
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
*/
loadLocaleData(allLocaleData: AllLocaleData): void;
/**
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
*/

@@ -104,2 +102,3 @@ loadLocaleData(locale: Locale, localeData: LocaleData): void;

_(id: MessageDescriptor | string, values?: Values | undefined, { message, formats }?: MessageOptions | undefined): string;
t(descriptor: MessageDescriptor): string;
date(value: string | Date, format?: Intl.DateTimeFormatOptions): string;

@@ -106,0 +105,0 @@ number(value: number, format?: Intl.NumberFormatOptions): string;

{
"name": "@lingui/core",
"version": "4.0.0-next.4",
"version": "4.0.0-next.5",
"sideEffects": false,

@@ -47,12 +47,2 @@ "description": "I18n tools for javascript",

},
"./compile": {
"require": {
"types": "./dist/compile.d.ts",
"default": "./dist/compile.cjs"
},
"import": {
"types": "./dist/compile.d.ts",
"default": "./dist/compile.mjs"
}
},
"./package.json": "./package.json"

@@ -63,8 +53,7 @@ },

"README.md",
"dist/",
"compile.js"
"dist/"
],
"dependencies": {
"@babel/runtime": "^7.20.13",
"@messageformat/parser": "^5.0.0"
"@lingui/message-utils": "^4.0.0-next.5"
},

@@ -75,3 +64,3 @@ "devDependencies": {

},
"gitHead": "3b999e35d26e67dec7cf0591f794be782e11022c"
"gitHead": "bdbd6cf310cbcf09e1fe288f20ef530c28de481d"
}

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc