@formatjs/cli-lib 6.3.3 → 6.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/cli-lib",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.5",
|
|
4
4
|
"description": "Lib for CLI for formatjs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"loud-rejection": "^2.2.0",
|
|
44
44
|
"tslib": "^2.4.0",
|
|
45
45
|
"typescript": "5",
|
|
46
|
-
"@formatjs/
|
|
47
|
-
"@formatjs/
|
|
46
|
+
"@formatjs/icu-messageformat-parser": "2.7.5",
|
|
47
|
+
"@formatjs/ts-transformer": "3.13.11"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@vue/compiler-core": "^3.3.4",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FormatFn, SerializeFn, CompileFn } from './default';
|
|
2
1
|
import type { Comparator } from 'json-stable-stringify';
|
|
2
|
+
import { CompileFn, FormatFn, SerializeFn } from './default';
|
|
3
3
|
export interface Formatter {
|
|
4
|
-
serialize
|
|
4
|
+
serialize?: SerializeFn;
|
|
5
5
|
format: FormatFn;
|
|
6
6
|
compile: CompileFn;
|
|
7
7
|
compareMessages?: Comparator;
|
package/src/formatters/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveBuiltinFormatter = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const defaultFormatter = tslib_1.__importStar(require("./default"));
|
|
6
|
-
const transifex = tslib_1.__importStar(require("./transifex"));
|
|
7
|
-
const smartling = tslib_1.__importStar(require("./smartling"));
|
|
8
|
-
const simple = tslib_1.__importStar(require("./simple"));
|
|
9
|
-
const lokalise = tslib_1.__importStar(require("./lokalise"));
|
|
10
|
-
const crowdin = tslib_1.__importStar(require("./crowdin"));
|
|
11
5
|
const path_1 = require("path");
|
|
12
6
|
const url_1 = require("url");
|
|
7
|
+
const crowdin = tslib_1.__importStar(require("./crowdin"));
|
|
8
|
+
const defaultFormatter = tslib_1.__importStar(require("./default"));
|
|
9
|
+
const lokalise = tslib_1.__importStar(require("./lokalise"));
|
|
10
|
+
const simple = tslib_1.__importStar(require("./simple"));
|
|
11
|
+
const smartling = tslib_1.__importStar(require("./smartling"));
|
|
12
|
+
const transifex = tslib_1.__importStar(require("./transifex"));
|
|
13
13
|
async function resolveBuiltinFormatter(format) {
|
|
14
14
|
if (!format) {
|
|
15
15
|
return defaultFormatter;
|