@reliverse/rempts 1.7.61 → 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/spinner/spinner-impl.d.ts +1 -1
- package/bin/libs/spinner/spinner-impl.js +1 -1
- package/bin/libs/spinner/spinner-mod.d.ts +0 -4
- package/bin/libs/spinner/spinner-mod.js +2 -5
- package/bin/libs/utils/stream-text.js +1 -1
- package/bin/mod.d.ts +2 -2
- package/bin/mod.js +10 -4
- package/bin/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ 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>;
|
|
@@ -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 prettyBytes from "pretty-bytes";
|
|
10
|
-
import prettyMilliseconds from "pretty-ms";
|
|
11
|
-
import { randomSpinner } from "./spinner-impl";
|
|
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,4 +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 { randomSpinner, prettyBytes, prettyMilliseconds };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { re } from "@reliverse/relico";
|
|
2
2
|
import prettyBytes from "pretty-bytes";
|
|
3
3
|
import prettyMilliseconds from "pretty-ms";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
oraPromise
|
|
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,4 +445,3 @@ export function createTransferSpinner(operation, options) {
|
|
|
447
445
|
}
|
|
448
446
|
};
|
|
449
447
|
}
|
|
450
|
-
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 { createBuildSpinner, createFileProgressSpinner, createMultiStepSpinner, createSpinner, createSpinnerGroup, createTimedSpinner, createTransferSpinner, defaultSpinnerOptions, formatSpinnerBytes, formatSpinnerElapsed, formatSpinnerTiming, isSpinnerEnabled, isSpinnerRunning,
|
|
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,7 +71,16 @@ 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 {
|
|
74
|
+
export {
|
|
75
|
+
error,
|
|
76
|
+
info,
|
|
77
|
+
ora,
|
|
78
|
+
oraPromise,
|
|
79
|
+
randomSpinner,
|
|
80
|
+
spinners,
|
|
81
|
+
success,
|
|
82
|
+
warning
|
|
83
|
+
} from "./libs/spinner/spinner-impl.js";
|
|
75
84
|
export {
|
|
76
85
|
createBuildSpinner,
|
|
77
86
|
createFileProgressSpinner,
|
|
@@ -86,9 +95,6 @@ export {
|
|
|
86
95
|
formatSpinnerTiming,
|
|
87
96
|
isSpinnerEnabled,
|
|
88
97
|
isSpinnerRunning,
|
|
89
|
-
prettyBytes,
|
|
90
|
-
prettyMilliseconds,
|
|
91
|
-
randomSpinner,
|
|
92
98
|
safeStopSpinner,
|
|
93
99
|
stopAndPersist,
|
|
94
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;
|