@reliverse/rempts 1.7.60 → 1.7.62
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/bin/libs/figures/figures-mod.d.ts +2 -2
- package/bin/libs/spinner/spinner-impl.d.ts +2 -2
- package/bin/libs/spinner/spinner-impl.js +2 -2
- package/bin/libs/spinner/spinner-mod.d.ts +0 -5
- package/bin/libs/spinner/spinner-mod.js +2 -6
- package/bin/libs/utils/stream-text.js +1 -1
- package/bin/mod.d.ts +2 -2
- package/bin/mod.js +10 -5
- package/bin/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -229,7 +229,7 @@ export declare const mainSymbols: {
|
|
|
229
229
|
lineSlash: string;
|
|
230
230
|
};
|
|
231
231
|
export declare const fallbackSymbols: Record<string, string>;
|
|
232
|
-
export declare const figures: {
|
|
232
|
+
export declare const figures: Record<string, string> | {
|
|
233
233
|
tick: string;
|
|
234
234
|
info: string;
|
|
235
235
|
warning: string;
|
|
@@ -458,4 +458,4 @@ export declare const figures: {
|
|
|
458
458
|
lineCross: string;
|
|
459
459
|
lineBackslash: string;
|
|
460
460
|
lineSlash: string;
|
|
461
|
-
}
|
|
461
|
+
};
|
|
@@ -63,8 +63,8 @@ export declare class Ora {
|
|
|
63
63
|
info(text?: string): this;
|
|
64
64
|
stopAndPersist(options?: StopAndPersistOptions): this;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export declare function ora(options?: string | OraOptions): Ora;
|
|
67
67
|
export declare function oraPromise<T>(action: ((spinner: Ora) => Promise<T>) | Promise<T>, options?: string | (OraPromiseOptions<T> & {
|
|
68
68
|
text?: string | undefined;
|
|
69
69
|
})): Promise<T>;
|
|
70
|
-
export { default as spinners } from "cli-spinners";
|
|
70
|
+
export { default as spinners, randomSpinner } from "cli-spinners";
|
|
@@ -307,7 +307,7 @@ export class Ora {
|
|
|
307
307
|
return this;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
export
|
|
310
|
+
export function ora(options) {
|
|
311
311
|
return new Ora(options);
|
|
312
312
|
}
|
|
313
313
|
export async function oraPromise(action, options) {
|
|
@@ -333,4 +333,4 @@ export async function oraPromise(action, options) {
|
|
|
333
333
|
throw error2;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
export { default as spinners } from "cli-spinners";
|
|
336
|
+
export { default as spinners, randomSpinner } from "cli-spinners";
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
* Defaults:
|
|
7
7
|
* - spinner: "dots", color: "cyan", hideCursor: true, discardStdin: true, stream defaults to stderr.
|
|
8
8
|
*/
|
|
9
|
-
import { randomSpinner } from "cli-spinners";
|
|
10
|
-
import prettyBytes from "pretty-bytes";
|
|
11
|
-
import prettyMilliseconds from "pretty-ms";
|
|
12
9
|
import { type Ora, type OraOptions, type OraPromiseOptions } from "./spinner-impl.js";
|
|
13
10
|
export interface SpinnerOptions extends Omit<OraOptions, "text"> {
|
|
14
11
|
readonly respectEnv?: boolean;
|
|
@@ -168,5 +165,3 @@ export declare function createTransferSpinner(operation: string, options?: Spinn
|
|
|
168
165
|
complete: (message?: string, totalBytesTransferred?: number) => void;
|
|
169
166
|
error: (error: Error | string) => void;
|
|
170
167
|
};
|
|
171
|
-
export { default as cliSpinners } from "cli-spinners";
|
|
172
|
-
export { randomSpinner, prettyBytes, prettyMilliseconds };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { re } from "@reliverse/relico";
|
|
2
|
-
import { randomSpinner } from "cli-spinners";
|
|
3
2
|
import prettyBytes from "pretty-bytes";
|
|
4
3
|
import prettyMilliseconds from "pretty-ms";
|
|
5
|
-
import ora
|
|
6
|
-
|
|
7
|
-
} from "./spinner-impl.js";
|
|
4
|
+
import { ora } from "./spinner-impl.js";
|
|
5
|
+
import { oraPromise } from "./spinner-impl.js";
|
|
8
6
|
function isColorsEnabled(isSpinnerEnabledFlag) {
|
|
9
7
|
if (process.env["CLI_NO_COLOR"] === "1") return false;
|
|
10
8
|
return isSpinnerEnabledFlag;
|
|
@@ -447,5 +445,3 @@ export function createTransferSpinner(operation, options) {
|
|
|
447
445
|
}
|
|
448
446
|
};
|
|
449
447
|
}
|
|
450
|
-
export { default as cliSpinners } from "cli-spinners";
|
|
451
|
-
export { randomSpinner, prettyBytes, prettyMilliseconds };
|
|
@@ -6,7 +6,7 @@ import wrapAnsi from "wrap-ansi";
|
|
|
6
6
|
import { toBaseColor } from "../msg-fmt/colors.js";
|
|
7
7
|
import { colorMap } from "../msg-fmt/mapping.js";
|
|
8
8
|
import { msg } from "../msg-fmt/messages.js";
|
|
9
|
-
import ora from "../spinner/spinner-impl.js";
|
|
9
|
+
import { ora } from "../spinner/spinner-impl.js";
|
|
10
10
|
function getTerminalWidth() {
|
|
11
11
|
return terminalSize().columns;
|
|
12
12
|
}
|
package/bin/mod.d.ts
CHANGED
|
@@ -37,9 +37,9 @@ export { select, selectSimple } from "./libs/select/select-alias";
|
|
|
37
37
|
export { selectPrompt } from "./libs/select/select-prompt";
|
|
38
38
|
export { togglePrompt } from "./libs/select/toggle-prompt";
|
|
39
39
|
export type { Ora, OraOptions, OraPromiseOptions, StopAndPersistOptions, } from "./libs/spinner/spinner-impl";
|
|
40
|
-
export { error, info, oraPromise, spinners, success, warning } from "./libs/spinner/spinner-impl";
|
|
40
|
+
export { error, info, ora, oraPromise, randomSpinner, spinners, success, warning, } from "./libs/spinner/spinner-impl";
|
|
41
41
|
export type { FileProgressOptions, SimpleSpinner, SpinnerGroupOptions, SpinnerOptions, } from "./libs/spinner/spinner-mod";
|
|
42
|
-
export {
|
|
42
|
+
export { createBuildSpinner, createFileProgressSpinner, createMultiStepSpinner, createSpinner, createSpinnerGroup, createTimedSpinner, createTransferSpinner, defaultSpinnerOptions, formatSpinnerBytes, formatSpinnerElapsed, formatSpinnerTiming, isSpinnerEnabled, isSpinnerRunning, safeStopSpinner, stopAndPersist, updateSpinnerText, withEnhancedSpinner, withSpinner, withSpinnerPromise, } from "./libs/spinner/spinner-mod";
|
|
43
43
|
export { colorize } from "./libs/utils/colorize";
|
|
44
44
|
export { errorHandler } from "./libs/utils/errors";
|
|
45
45
|
export { preventUnsupportedTTY, preventWindowsHomeDirRoot, preventWrongTerminalSize, } from "./libs/utils/prevent";
|
package/bin/mod.js
CHANGED
|
@@ -71,9 +71,17 @@ export { numSelectPrompt } from "./libs/select/numselect-prompt.js";
|
|
|
71
71
|
export { select, selectSimple } from "./libs/select/select-alias.js";
|
|
72
72
|
export { selectPrompt } from "./libs/select/select-prompt.js";
|
|
73
73
|
export { togglePrompt } from "./libs/select/toggle-prompt.js";
|
|
74
|
-
export { error, info, oraPromise, spinners, success, warning } from "./libs/spinner/spinner-impl.js";
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
error,
|
|
76
|
+
info,
|
|
77
|
+
ora,
|
|
78
|
+
oraPromise,
|
|
79
|
+
randomSpinner,
|
|
80
|
+
spinners,
|
|
81
|
+
success,
|
|
82
|
+
warning
|
|
83
|
+
} from "./libs/spinner/spinner-impl.js";
|
|
84
|
+
export {
|
|
77
85
|
createBuildSpinner,
|
|
78
86
|
createFileProgressSpinner,
|
|
79
87
|
createMultiStepSpinner,
|
|
@@ -87,9 +95,6 @@ export {
|
|
|
87
95
|
formatSpinnerTiming,
|
|
88
96
|
isSpinnerEnabled,
|
|
89
97
|
isSpinnerRunning,
|
|
90
|
-
prettyBytes,
|
|
91
|
-
prettyMilliseconds,
|
|
92
|
-
randomSpinner,
|
|
93
98
|
safeStopSpinner,
|
|
94
99
|
stopAndPersist,
|
|
95
100
|
updateSpinnerText,
|
package/bin/types.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export interface ProgressBar {
|
|
|
114
114
|
/**
|
|
115
115
|
* Union type for available prompt types.
|
|
116
116
|
*/
|
|
117
|
-
export type PromptType = "input" | "inputmasked" | "select" | "multiselect" | "nummultiselect" | "numselect" | "toggle" | "confirm" | "spinner" | "progressbar" | "results" | "nextsteps" | "
|
|
117
|
+
export type PromptType = "input" | "inputmasked" | "select" | "multiselect" | "nummultiselect" | "numselect" | "toggle" | "confirm" | "spinner" | "progressbar" | "results" | "nextsteps" | "date" | "end";
|
|
118
118
|
export interface ConfirmPromptOptions {
|
|
119
119
|
title?: string;
|
|
120
120
|
message?: string;
|