gtx-cli 1.2.1 → 1.2.3
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.
|
@@ -32,7 +32,7 @@ function checkFileTranslations(apiKey, baseUrl, data, locales, timeoutDuration,
|
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const startTime = Date.now();
|
|
34
34
|
console.log();
|
|
35
|
-
const spinner = (0, console_1.createOraSpinner)();
|
|
35
|
+
const spinner = yield (0, console_1.createOraSpinner)();
|
|
36
36
|
spinner.start('Waiting for translation...');
|
|
37
37
|
// Initialize the query data
|
|
38
38
|
const fileQueryData = prepareFileQueryData(data, locales);
|
|
@@ -28,7 +28,7 @@ const generaltranslation_1 = require("generaltranslation");
|
|
|
28
28
|
*/
|
|
29
29
|
const waitForUpdates = (apiKey, baseUrl, versionId, locales, startTime, timeoutDuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
30
30
|
console.log();
|
|
31
|
-
const spinner = (0, console_1.createOraSpinner)();
|
|
31
|
+
const spinner = yield (0, console_1.createOraSpinner)();
|
|
32
32
|
spinner.start('Waiting for translation...');
|
|
33
33
|
const availableLocales = [];
|
|
34
34
|
const checkDeployment = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -17,7 +17,7 @@ export declare function createSpinner(indicator?: 'dots' | 'timer'): {
|
|
|
17
17
|
stop: (msg?: string, code?: number) => void;
|
|
18
18
|
message: (msg?: string) => void;
|
|
19
19
|
};
|
|
20
|
-
export declare function createOraSpinner(indicator?: 'dots' | 'circleHalves'): import("ora").Ora
|
|
20
|
+
export declare function createOraSpinner(indicator?: 'dots' | 'circleHalves'): Promise<import("ora").Ora>;
|
|
21
21
|
export declare function promptText({ message, defaultValue, validate, }: {
|
|
22
22
|
message: string;
|
|
23
23
|
defaultValue?: string;
|
package/dist/console/logging.js
CHANGED
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -41,7 +74,6 @@ exports.warnTemplateLiteral = warnTemplateLiteral;
|
|
|
41
74
|
exports.warnTernary = warnTernary;
|
|
42
75
|
const prompts_1 = require("@clack/prompts");
|
|
43
76
|
const chalk_1 = __importDefault(require("chalk"));
|
|
44
|
-
const ora_1 = __importDefault(require("ora"));
|
|
45
77
|
// Basic logging functions
|
|
46
78
|
function logInfo(message) {
|
|
47
79
|
prompts_1.log.info(message);
|
|
@@ -113,8 +145,12 @@ function createSpinner(indicator = 'timer') {
|
|
|
113
145
|
return (0, prompts_1.spinner)({ indicator });
|
|
114
146
|
}
|
|
115
147
|
// Spinner functionality
|
|
116
|
-
function createOraSpinner(
|
|
117
|
-
return (0,
|
|
148
|
+
function createOraSpinner() {
|
|
149
|
+
return __awaiter(this, arguments, void 0, function* (indicator = 'circleHalves') {
|
|
150
|
+
const oraModule = yield Promise.resolve().then(() => __importStar(require('ora')));
|
|
151
|
+
const ora = oraModule.default;
|
|
152
|
+
return ora({ spinner: indicator });
|
|
153
|
+
});
|
|
118
154
|
}
|
|
119
155
|
// Input prompts
|
|
120
156
|
function promptText(_a) {
|