node-mac-recorder 2.18.6 → 2.18.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.
package/binding.gyp CHANGED
@@ -21,7 +21,7 @@
21
21
  "xcode_settings": {
22
22
  "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
23
23
  "CLANG_CXX_LIBRARY": "libc++",
24
- "MACOSX_DEPLOYMENT_TARGET": "10.15",
24
+ "MACOSX_DEPLOYMENT_TARGET": "13.1",
25
25
  "OTHER_CFLAGS": [
26
26
  "-ObjC++"
27
27
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.18.6",
3
+ "version": "2.18.8",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -2,7 +2,6 @@
2
2
  #import <ScreenCaptureKit/ScreenCaptureKit.h>
3
3
  // NO AVFoundation - Pure ScreenCaptureKit implementation
4
4
 
5
- API_AVAILABLE(macos(15.0))
6
5
  @interface ScreenCaptureKitRecorder : NSObject
7
6
 
8
7
  + (BOOL)isScreenCaptureKitAvailable;
@@ -297,9 +297,11 @@ static NSString *g_outputPath = nil;
297
297
  }
298
298
  }
299
299
 
300
- if (!g_recordingOutput) {
301
- NSLog(@"❌ Failed to create SCRecordingOutput");
302
- return;
300
+ if (@available(macOS 15.0, *)) {
301
+ if (!g_recordingOutput) {
302
+ NSLog(@"❌ Failed to create SCRecordingOutput");
303
+ return;
304
+ }
303
305
  }
304
306
 
305
307
  NSLog(@"✅ Pure ScreenCaptureKit recording output created");
@@ -389,9 +391,11 @@ static NSString *g_outputPath = nil;
389
391
  g_isCleaningUp = YES;
390
392
  g_isRecording = NO;
391
393
 
392
- if (g_recordingOutput) {
393
- // SCRecordingOutput finalizes automatically
394
- NSLog(@"✅ Pure recording output finalized");
394
+ if (@available(macOS 15.0, *)) {
395
+ if (g_recordingOutput) {
396
+ // SCRecordingOutput finalizes automatically
397
+ NSLog(@"✅ Pure recording output finalized");
398
+ }
395
399
  }
396
400
 
397
401
  [ScreenCaptureKitRecorder cleanupVideoWriter];
@@ -413,9 +417,11 @@ static NSString *g_outputPath = nil;
413
417
  NSLog(@"✅ Stream reference cleared");
414
418
  }
415
419
 
416
- if (g_recordingOutput) {
417
- g_recordingOutput = nil;
418
- NSLog(@"✅ Recording output reference cleared");
420
+ if (@available(macOS 15.0, *)) {
421
+ if (g_recordingOutput) {
422
+ g_recordingOutput = nil;
423
+ NSLog(@"✅ Recording output reference cleared");
424
+ }
419
425
  }
420
426
 
421
427
  if (g_streamDelegate) {