node-mac-recorder 2.13.9 → 2.13.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.13.9",
3
+ "version": "2.13.10",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -175,9 +175,11 @@ Napi::Value StartRecording(const Napi::CallbackInfo& info) {
175
175
  [NSBundle.mainBundle.bundlePath containsString:@"Electron"]);
176
176
 
177
177
  if (isElectron) {
178
- NSLog(@"⚡ Electron environment detected - Using ULTRA-SAFE ScreenCaptureKit");
179
- NSLog(@"🛡️ Maximum crash protection enabled for Electron");
180
- // Continue to ScreenCaptureKit but with extreme safety
178
+ NSLog(@"⚡ Electron environment detected - ScreenCaptureKit DISABLED for crash prevention");
179
+ NSLog(@"🛡️ Recording not supported in Electron to prevent crashes");
180
+ // Skip ScreenCaptureKit completely for Electron
181
+ NSLog(@"❌ Recording disabled in Electron for stability - use Node.js environment instead");
182
+ return Napi::Boolean::New(env, false);
181
183
  }
182
184
 
183
185
  // Non-Electron: Use ScreenCaptureKit
package/test-quick.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const MacRecorder = require('./index');
2
2
 
3
- // Simulate Electron environment
4
- process.env.ELECTRON_RUN_AS_NODE = '1';
3
+ // Test video creation in Node.js
4
+ // process.env.ELECTRON_RUN_AS_NODE = '1';
5
5
 
6
6
  console.log('🎯 Quick ScreenCaptureKit Test');
7
7