ahegao 1.69.53 → 1.69.54
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/utils/util.js +1 -1
- package/package.json +1 -1
package/dist/utils/util.js
CHANGED
|
@@ -3820,7 +3820,7 @@ function patchMicLib(libPath = "./node_modules/mic/lib/mic.js") {
|
|
|
3820
3820
|
return false;
|
|
3821
3821
|
}
|
|
3822
3822
|
const micLibFile = (0, fs_1.readFileSync)(libPath, "utf-8");
|
|
3823
|
-
const patchedMicLibFile = micLibFile.replace(/(var audioProcessOptions = {)(\n +)(stdio: \[[^\]]+\])
|
|
3823
|
+
const patchedMicLibFile = micLibFile.replace(/(var audioProcessOptions = {)(\n +)(stdio: \[[^\]]+\])\n +(};)/, `$1$2$3,$2windowsHide: true,$2$4`);
|
|
3824
3824
|
if (micLibFile !== patchedMicLibFile) {
|
|
3825
3825
|
print(exports.chalk.yellowBright(`Patching mic lib to hide windows terminal... ${path_1.default.resolve(libPath)}`));
|
|
3826
3826
|
(0, fs_1.writeFileSync)(libPath, patchedMicLibFile, "utf-8");
|