@formatjs/cli-lib
Advanced tools
Comparing version 5.1.4 to 5.1.6
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1165
58287
1
+ Added@formatjs/ecma402-abstract@1.14.2(transitive)
+ Added@formatjs/icu-messageformat-parser@2.1.13(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.17(transitive)
+ Added@formatjs/ts-transformer@3.11.4(transitive)
- Removed@formatjs/ecma402-abstract@1.14.0(transitive)
- Removed@formatjs/icu-messageformat-parser@2.1.11(transitive)
- Removed@formatjs/icu-skeleton-parser@1.3.15(transitive)
- Removed@formatjs/ts-transformer@3.11.2(transitive)