node-mac-recorder 2.19.3 โ†’ 2.19.4

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.
@@ -1,15 +1,8 @@
1
1
  {
2
2
  "permissions": {
3
3
  "allow": [
4
- "Bash(FORCE_AVFOUNDATION=1 node test-cursor-simple.js)",
5
- "Bash(FORCE_AVFOUNDATION=1 timeout 10 node test-cursor-simple.js)",
6
- "Bash(jq:*)",
7
- "Bash(FORCE_AVFOUNDATION=1 timeout 15 node test-cursor-position.js)",
8
- "Bash(FORCE_AVFOUNDATION=1 timeout 8 node test-cursor-debug.js)",
9
- "Bash(FORCE_AVFOUNDATION=1 timeout 5 node test-cursor-debug.js)",
10
- "Bash(FORCE_AVFOUNDATION=1 timeout 8 node test-unified-cursor.js)",
11
- "Bash(FORCE_AVFOUNDATION=1 timeout 5 node test-unified-cursor.js)",
12
- "Bash(FORCE_AVFOUNDATION=1 timeout 8 node -e \"\nconst MacRecorder = require(''./index.js'');\nconst recorder = new MacRecorder();\n\nconsole.log(''๐Ÿงช Testing AVFoundation fallback...'');\n\nasync function testFallback() {\n try {\n const outputPath = ''./test-avfoundation-fallback.mov'';\n \n console.log(''Starting AVFoundation recording...'');\n await recorder.startRecording(outputPath, {\n captureCursor: true,\n includeMicrophone: false,\n includeSystemAudio: false\n });\n \n console.log(''โœ… AVFoundation recording started!'');\n \n setTimeout(async () => {\n try {\n console.log(''Stopping recording...'');\n await recorder.stopRecording();\n console.log(''โœ… AVFoundation recording stopped!'');\n process.exit(0);\n } catch (error) {\n console.error(''โŒ Stop failed:'', error.message);\n process.exit(1);\n }\n }, 3000);\n \n } catch (error) {\n console.error(''โŒ AVFoundation recording failed:'', error.message);\n process.exit(1);\n }\n}\n\ntestFallback();\n\")"
4
+ "Bash(node-gyp:*)",
5
+ "Bash(node:*)"
13
6
  ],
14
7
  "deny": [],
15
8
  "ask": []
package/binding.gyp CHANGED
@@ -30,7 +30,6 @@
30
30
  "libraries": [
31
31
  "-framework Foundation",
32
32
  "-framework AppKit",
33
- "-framework ScreenCaptureKit",
34
33
  "-framework AVFoundation",
35
34
  "-framework CoreMedia",
36
35
  "-framework CoreVideo",
@@ -41,6 +40,15 @@
41
40
  "-framework CoreAudio"
42
41
  ]
43
42
  },
43
+ "conditions": [
44
+ ['OS=="mac"', {
45
+ "link_settings": {
46
+ "libraries": [
47
+ "-weak_framework ScreenCaptureKit"
48
+ ]
49
+ }
50
+ }]
51
+ ],
44
52
  "defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]
45
53
  }
46
54
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.19.3",
3
+ "version": "2.19.4",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1 +0,0 @@
1
- [{"x":-2420,"y":919,"timestamp":80,"unixTimeMs":1758628587619,"cursorType":"text","type":"move","coordinateSystem":"video-relative-outside","recordingType":"display","videoInfo":{"width":2048,"height":1330,"offsetX":0,"offsetY":0},"displayInfo":{"displayId":1,"width":2048,"height":1330}}]