@datacamp/learn-vm-scripts 0.0.3-rc.4 → 0.0.3-rc.5
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/index.cjs +8 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -95402,7 +95402,12 @@ var import_promises3 = require("node:fs/promises");
|
|
|
95402
95402
|
var resetChrome = async ({ userDataDir }) => {
|
|
95403
95403
|
const stdout = (0, import_node_child_process.execSync)("taskkill /IM chrome.exe /F");
|
|
95404
95404
|
console.log("Result from killing chrome.exe:", stdout.toString());
|
|
95405
|
-
|
|
95405
|
+
try {
|
|
95406
|
+
await (0, import_promises3.rm)(userDataDir, { recursive: true, force: true });
|
|
95407
|
+
} catch (e) {
|
|
95408
|
+
console.error("Error deleting user data directory:", e);
|
|
95409
|
+
throw e;
|
|
95410
|
+
}
|
|
95406
95411
|
};
|
|
95407
95412
|
|
|
95408
95413
|
// src/startInputWatcher.ts
|
|
@@ -95483,6 +95488,8 @@ var startInputWatcher = async ({
|
|
|
95483
95488
|
}
|
|
95484
95489
|
if (lastInput != null && newInput === lastInput) {
|
|
95485
95490
|
console.log("Input already processed");
|
|
95491
|
+
console.log("Resetting Chrome anyway as a test");
|
|
95492
|
+
await resetChrome({ userDataDir });
|
|
95486
95493
|
await outputFileHandle.appendFile(`Done: ${newInput}`);
|
|
95487
95494
|
return;
|
|
95488
95495
|
}
|
package/package.json
CHANGED