@datacamp/learn-vm-scripts 0.0.3-rc.6 → 0.0.3-rc.7
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 +6 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -95420,8 +95420,12 @@ var retryWithExponentialBackoff = async ({
|
|
|
95420
95420
|
throw new Error("Max retries exceeded");
|
|
95421
95421
|
};
|
|
95422
95422
|
var resetChrome = async ({ userDataDir }) => {
|
|
95423
|
-
|
|
95424
|
-
|
|
95423
|
+
try {
|
|
95424
|
+
const stdout = (0, import_node_child_process.execSync)("taskkill /IM chrome.exe /F");
|
|
95425
|
+
console.log("Result from killing chrome.exe:", stdout.toString());
|
|
95426
|
+
} catch (e) {
|
|
95427
|
+
console.error("Error killing chrome.exe:", e);
|
|
95428
|
+
}
|
|
95425
95429
|
await retryWithExponentialBackoff({
|
|
95426
95430
|
fn: () => (0, import_promises3.rm)(userDataDir, { recursive: true, force: true }),
|
|
95427
95431
|
initialDelay: 100,
|
package/package.json
CHANGED