New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/i18n

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/i18n - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

4

lib/translator.d.ts

@@ -6,4 +6,2 @@ import type { LocaleSet, Primitive, Translator } from './types';

*/
export declare function taggedTemplateTranslator(
localeSet?: LocaleSet,
): (strings: TemplateStringsArray, ...keys: Primitive[]) => string;
export declare function taggedTemplateTranslator(localeSet?: LocaleSet): (strings: Readonly<TemplateStringsArray>, ...keys: readonly Primitive[]) => string;

@@ -13,3 +13,3 @@ "use strict";

let message = messageTmpl;
if (Array.isArray(messageTmpl)) {
if (typeof messageTmpl !== 'string') {
const format = (localeSet === null || localeSet === void 0 ? void 0 : localeSet.listFormat) || defaultListFormat;

@@ -16,0 +16,0 @@ return `${format.quoteStart}${messageTmpl

@@ -1,16 +0,16 @@

export type Translator = (messageTmpl: string | string[], ...keywords: Primitive[]) => string;
export type Translator = (messageTmpl: string | readonly string[], ...keywords: readonly Primitive[]) => string;
export type LocaleSet = {
locale: string;
listFormat?: ListFormat;
keywords?: LocalesKeywords;
sentences?: LocalesKeywords;
readonly locale: string;
readonly listFormat?: ListFormat;
readonly keywords?: LocalesKeywords;
readonly sentences?: LocalesKeywords;
};
export type ListFormat = {
quoteStart: string;
quoteEnd: string;
separator: string;
readonly quoteStart: string;
readonly quoteEnd: string;
readonly separator: string;
};
export type Primitive = string | number | boolean;
export type LocalesKeywords = {
[messageId: string]: string | void;
readonly [messageId: string]: string;
};
{
"name": "@markuplint/i18n",
"version": "3.4.0",
"version": "3.5.0",
"description": "HTML parser for markuplint",

@@ -21,3 +21,3 @@ "repository": "git@github.com:markuplint/markuplint.git",

},
"gitHead": "a83e0f5f214a9bbcc0286b9e269074ddca6189e7"
"gitHead": "0c47b2c2722f6823a17f36edbab98486275f8ab4"
}
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