repowise 0.1.56 → 0.1.58
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/bin/repowise.js +6 -0
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -490,6 +490,12 @@ async function handleCatchUp(offlineState, pollClient, repoIds, state, repoLocal
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
async function startListener(options) {
|
|
493
|
+
const origLog = console.log.bind(console);
|
|
494
|
+
const origError = console.error.bind(console);
|
|
495
|
+
const origWarn = console.warn.bind(console);
|
|
496
|
+
console.log = (...args) => origLog(`[${(/* @__PURE__ */ new Date()).toISOString()}]`, ...args);
|
|
497
|
+
console.error = (...args) => origError(`[${(/* @__PURE__ */ new Date()).toISOString()}]`, ...args);
|
|
498
|
+
console.warn = (...args) => origWarn(`[${(/* @__PURE__ */ new Date()).toISOString()}]`, ...args);
|
|
493
499
|
running = true;
|
|
494
500
|
if (!options?.skipPidCheck) {
|
|
495
501
|
const alreadyRunning = await handleStalePid();
|