Repository navigation
Clipboard.read() doesn't report copied files, and structuredClone drops regular expressions (EXIF extension) #1920
Unanswered
akaready
asked this question in
Vouch Request
Replies: 1 comment
|
@akaready if the change is small and not touching any files other than extension you can proceed with pr |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, and thank you for Tinycast. I'd like to ask whether two small runtime fixes would be welcome before I open anything.
I've been trying the EXIF extension (
exif) from the store. It bounced back to the root screen, and I found two separate gaps behind it:Clipboard.read()never setsfile. A file copied in Finder ispublic.file-urlon the pasteboard, but the bridge only reads.URL, sofileis always missing. Raycast returns a percent-encodedfile://URL there, and extensions such as EXIF and image-flow check for it. The fix reads the first file URL from the pasteboard (about 10 lines in a small helper, so it can be tested on a throwaway pasteboard).structuredClonegoes through JSON. ARegExpcomes out as{}, which brokefunction-timeout(bundled by EXIF). The fix clones regular expressions, dates, maps, sets, typed arrays and circular references, using the polyfill that already exists (JavaScriptCore has no native one).Both are small, with cases in
fixtures.mjsandExtensionTests. On currentmainthe whole suite passes (114/114) with lint and a clean build. I have EXIF running end to end in the test harness against a real JPEG.I understand Raycast compatibility isn't where the project is heading, so please say no if these don't fit. If they do, would you like them as one pull request or two?
All reactions