node-mac-recorder 2.13.10 → 2.13.11

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.
@@ -28,7 +28,8 @@
28
28
  "Bash(ELECTRON_VERSION=25.0.0 node test-native-call.js)",
29
29
  "Bash(chmod:*)",
30
30
  "Bash(ffprobe:*)",
31
- "Bash(ffmpeg:*)"
31
+ "Bash(ffmpeg:*)",
32
+ "WebSearch"
32
33
  ],
33
34
  "deny": []
34
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.13.10",
3
+ "version": "2.13.11",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -165,7 +165,7 @@ Napi::Value StartRecording(const Napi::CallbackInfo& info) {
165
165
  // Smart Recording Selection: ScreenCaptureKit vs Alternative
166
166
  NSLog(@"🎯 Smart Recording Engine Selection");
167
167
 
168
- // Detect Electron environment with multiple checks
168
+ // Electron environment detection (removed disable logic)
169
169
  BOOL isElectron = (NSBundle.mainBundle.bundleIdentifier &&
170
170
  [NSBundle.mainBundle.bundleIdentifier containsString:@"electron"]) ||
171
171
  (NSProcessInfo.processInfo.processName &&
@@ -175,11 +175,8 @@ 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 - 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);
178
+ NSLog(@"⚡ Electron environment detected - continuing with ScreenCaptureKit");
179
+ NSLog(@"⚠️ Warning: ScreenCaptureKit in Electron may require additional stability measures");
183
180
  }
184
181
 
185
182
  // Non-Electron: Use ScreenCaptureKit