@formatjs/ts-transformer 3.13.15 → 3.13.16
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 +4 -4
- package/src/console_utils.js +3 -4
- package/src/interpolate-name.js +1 -2
- package/src/transform.js +2 -3
- package/ts-jest-integration.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/ts-transformer",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.16",
|
|
4
4
|
"description": "TS Compiler transformer for formatjs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@types/json-stable-stringify": "^1.0.32",
|
|
21
|
-
"@types/node": "14 || 16 || 17",
|
|
21
|
+
"@types/node": "14 || 16 || 17 || 18",
|
|
22
22
|
"chalk": "^4.0.0",
|
|
23
23
|
"json-stable-stringify": "^1.0.1",
|
|
24
|
-
"tslib": "^2.
|
|
24
|
+
"tslib": "^2.7.0",
|
|
25
25
|
"typescript": "5",
|
|
26
|
-
"@formatjs/icu-messageformat-parser": "2.7.
|
|
26
|
+
"@formatjs/icu-messageformat-parser": "2.7.10"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"ts-jest": ">=27"
|
package/src/console_utils.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.debug = debug;
|
|
4
|
+
exports.warn = warn;
|
|
5
|
+
exports.error = error;
|
|
4
6
|
const chalk_1 = require("chalk");
|
|
5
7
|
const util_1 = require("util");
|
|
6
8
|
const LEVEL_COLORS = {
|
|
@@ -18,14 +20,11 @@ async function debug(message, ...args) {
|
|
|
18
20
|
console.error((0, util_1.format)(label('debug', message), ...args));
|
|
19
21
|
console.error('\n');
|
|
20
22
|
}
|
|
21
|
-
exports.debug = debug;
|
|
22
23
|
function warn(message, ...args) {
|
|
23
24
|
console.error((0, util_1.format)(label('warn', message), ...args));
|
|
24
25
|
console.error('\n');
|
|
25
26
|
}
|
|
26
|
-
exports.warn = warn;
|
|
27
27
|
function error(message, ...args) {
|
|
28
28
|
console.error((0, util_1.format)(label('error', message), ...args));
|
|
29
29
|
console.error('\n');
|
|
30
30
|
}
|
|
31
|
-
exports.error = error;
|
package/src/interpolate-name.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.interpolateName =
|
|
3
|
+
exports.interpolateName = interpolateName;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path = tslib_1.__importStar(require("path"));
|
|
6
6
|
const crypto_1 = require("crypto");
|
|
@@ -87,4 +87,3 @@ function interpolateName(loaderContext, name, options) {
|
|
|
87
87
|
}
|
|
88
88
|
return url;
|
|
89
89
|
}
|
|
90
|
-
exports.interpolateName = interpolateName;
|
package/src/transform.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.transformWithTs = transformWithTs;
|
|
4
|
+
exports.transform = transform;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const icu_messageformat_parser_1 = require("@formatjs/icu-messageformat-parser");
|
|
6
7
|
const json_stable_stringify_1 = tslib_1.__importDefault(require("json-stable-stringify"));
|
|
@@ -473,8 +474,6 @@ function transformWithTs(ts, opts) {
|
|
|
473
474
|
};
|
|
474
475
|
return transformFn;
|
|
475
476
|
}
|
|
476
|
-
exports.transformWithTs = transformWithTs;
|
|
477
477
|
function transform(opts) {
|
|
478
478
|
return transformWithTs(typescript, opts);
|
|
479
479
|
}
|
|
480
|
-
exports.transform = transform;
|
package/ts-jest-integration.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.version = exports.name = void 0;
|
|
4
|
+
exports.factory = factory;
|
|
4
5
|
const _1 = require(".");
|
|
5
6
|
exports.name = '@formatjs/ts-transformer';
|
|
6
7
|
exports.version = '2.10.1';
|
|
7
8
|
function factory(compilerInstance, opts) {
|
|
8
9
|
return (0, _1.transformWithTs)(compilerInstance.configSet.compilerModule, opts);
|
|
9
10
|
}
|
|
10
|
-
exports.factory = factory;
|