cdp-core 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/cdp_inject.js +2 -2
  2. package/package.json +1 -1
package/cdp_inject.js CHANGED
@@ -257,9 +257,9 @@ if (process.argv.includes('--stop')) {
257
257
  console.log('[cdp] Stopping all background solvers...');
258
258
  exec('taskkill /F /IM node.exe', () => process.exit(0));
259
259
  } else if (process.argv.includes('--detach')) {
260
- const out = fs.openSync(path.join(__dirname, 'cdp.log'), 'a');
260
+ const out = fs.openSync(path.join(process.cwd(), 'cdp.log'), 'a');
261
261
  const child = require('child_process').spawn('node', [__filename], { detached: true, stdio: ['ignore', out, out] });
262
262
  child.unref();
263
- console.log('[cdp] Launched in background. Logs: ' + path.join(__dirname, 'cdp.log'));
263
+ console.log('[cdp] Launched in background. Logs: ' + path.join(process.cwd(), 'cdp.log'));
264
264
  process.exit(0);
265
265
  } else { main(); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-core",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Stealth Exam Assistant for Testpad",
5
5
  "main": "cdp_inject.js",
6
6
  "bin": {