🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@formatjs/cli-lib

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/cli-lib - npm Package Compare versions

Comparing version

to
5.1.6

6

package.json
{
"name": "@formatjs/cli-lib",
"version": "5.1.4",
"version": "5.1.6",
"description": "Lib for CLI for formatjs.",

@@ -34,4 +34,4 @@ "keywords": [

"dependencies": {
"@formatjs/icu-messageformat-parser": "2.1.11",
"@formatjs/ts-transformer": "3.11.2",
"@formatjs/icu-messageformat-parser": "2.1.13",
"@formatjs/ts-transformer": "3.11.4",
"@types/estree": "^0.0.50",

@@ -38,0 +38,0 @@ "@types/fs-extra": "^9.0.1",

import { Formatter } from './formatters';
export declare type CompileFn = (msgs: any) => Record<string, string>;
export declare type PseudoLocale = 'xx-LS' | 'xx-AC' | 'xx-HA' | 'en-XA' | 'en-XB';
export type CompileFn = (msgs: any) => Record<string, string>;
export type PseudoLocale = 'xx-LS' | 'xx-AC' | 'xx-HA' | 'en-XA' | 'en-XB';
export interface CompileCLIOpts extends Opts {

@@ -5,0 +5,0 @@ /**

@@ -27,3 +27,3 @@ import { Opts, MessageDescriptor } from '@formatjs/ts-transformer';

}
export declare type ExtractCLIOptions = Omit<ExtractOpts, 'overrideIdFn' | 'onMsgExtracted' | 'onMetaExtracted'> & {
export type ExtractCLIOptions = Omit<ExtractOpts, 'overrideIdFn' | 'onMsgExtracted' | 'onMetaExtracted'> & {
/**

@@ -38,3 +38,3 @@ * Output File

};
export declare type ExtractOpts = Opts & {
export type ExtractOpts = Opts & {
/**

@@ -41,0 +41,0 @@ * Whether to throw an error if we had any issues with

import { CompileFn, FormatFn } from './default';
export declare type SmartlingJson = Record<string, {
export type SmartlingJson = Record<string, {
message: string;

@@ -4,0 +4,0 @@ description?: string;

import { MessageDescriptor } from '@formatjs/ts-transformer';
export declare type FormatFn<T = Record<string, MessageDescriptor>> = (msgs: Record<string, MessageDescriptor>) => T;
export declare type CompileFn<T = Record<string, MessageDescriptor>> = (msgs: T) => Record<string, string>;
export type FormatFn<T = Record<string, MessageDescriptor>> = (msgs: Record<string, MessageDescriptor>) => T;
export type CompileFn<T = Record<string, MessageDescriptor>> = (msgs: T) => Record<string, string>;
export declare const format: FormatFn;
export declare const compile: CompileFn;
//# sourceMappingURL=default.d.ts.map
"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -34,3 +35,3 @@ exports.resolveBuiltinFormatter = void 0;

// eslint-disable-next-line import/dynamic-import-chunkname
return Promise.resolve().then(() => tslib_1.__importStar(require((0, url_1.pathToFileURL)((0, path_1.resolve)(process.cwd(), format)).href)));
return _a = (0, url_1.pathToFileURL)((0, path_1.resolve)(process.cwd(), format)).href, Promise.resolve().then(() => tslib_1.__importStar(require(_a)));
}

@@ -37,0 +38,0 @@ catch (e) {

import { CompileFn, FormatFn } from './default';
export declare type StructuredJson = Record<string, {
export type StructuredJson = Record<string, {
translation: string;

@@ -4,0 +4,0 @@ notes?: string;

import { CompileFn, FormatFn } from './default';
export declare type PhraseJson = Record<string, string>;
export type PhraseJson = Record<string, string>;
export declare const format: FormatFn<PhraseJson>;
export declare const compile: CompileFn<PhraseJson>;
//# sourceMappingURL=simple.d.ts.map

@@ -15,3 +15,3 @@ import { Comparator } from 'json-stable-stringify';

}
export declare type SmartlingJson = {
export type SmartlingJson = {
smartling: SmartlingDirectives;

@@ -18,0 +18,0 @@ } & Record<string, {

import { CompileFn, FormatFn } from './default';
export declare type StructuredJson = Record<string, {
export type StructuredJson = Record<string, {
string: string;

@@ -4,0 +4,0 @@ developer_comment?: string;

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

export declare type ScriptParseFn = (source: string) => void;
export type ScriptParseFn = (source: string) => void;
export declare function parseFile(source: string, filename: string, parseScriptFn: ScriptParseFn): any;
//# sourceMappingURL=vue_extractor.d.ts.map

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

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

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