proxitor 0.6.0 → 0.6.1
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/dist/cli.mjs +14 -2
- package/dist/cli.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -11747,9 +11747,21 @@ function _getDefaultLogLevel() {
|
|
|
11747
11747
|
if (R) return LogLevels.warn;
|
|
11748
11748
|
return LogLevels.info;
|
|
11749
11749
|
}
|
|
11750
|
+
createConsola();
|
|
11750
11751
|
//#endregion
|
|
11751
11752
|
//#region src/logger.ts
|
|
11752
|
-
|
|
11753
|
+
/**
|
|
11754
|
+
* Custom logger with consistent left-aligned output.
|
|
11755
|
+
*
|
|
11756
|
+
* Consola's default fancy mode places the tag on the right for short lines
|
|
11757
|
+
* and on the left for long lines when a date/time is shown, making timestamps
|
|
11758
|
+
* jump between positions. Disabling date/time in formatOptions keeps the
|
|
11759
|
+
* tag always on the left while preserving the icon (ℹ ✓ ⚠) and colors.
|
|
11760
|
+
*/
|
|
11761
|
+
const logger = createConsola({ formatOptions: {
|
|
11762
|
+
date: false,
|
|
11763
|
+
time: false
|
|
11764
|
+
} });
|
|
11753
11765
|
/** Generate a short request ID (first 8 hex chars of a UUID) */
|
|
11754
11766
|
function requestId() {
|
|
11755
11767
|
return crypto.randomUUID().slice(0, 8);
|
|
@@ -14836,7 +14848,7 @@ function startProxyServer(config, onReady) {
|
|
|
14836
14848
|
}
|
|
14837
14849
|
//#endregion
|
|
14838
14850
|
//#region src/version.ts
|
|
14839
|
-
const version = "0.6.
|
|
14851
|
+
const version = "0.6.1";
|
|
14840
14852
|
//#endregion
|
|
14841
14853
|
//#region src/cli.ts
|
|
14842
14854
|
const argv = process.argv.slice(2);
|