Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for optional CNContactUrlAddressesKey field. #36

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

kitschpatrol
Copy link
Contributor

Thanks for this excellent library! I needed access to CNContactUrlAddressesKey fields in my project, so I added support.

Submitting a PR in case it's useful to others.

The contents of the field are made available by passing the urlAddresses in the extraProperties argument array. It behaves much like the emailAddresses field. (This relates a bit to the discussion in #5)

Also added a note to the readme about permission-requesting caveats when invoking the library through an embedded terminal. There's also a bit of extra diff noise in the readme owing to some extra spaces / inconsistent formatting that prettier picked up on.

I didn't see any existing tests related to optional extraProperties, so I did not add any.

@codebytere
Copy link
Owner

@kitschpatrol could you rebase this? I'm so sorry it fell off my radar - i'll review it immediately after rebase.

@kitschpatrol
Copy link
Contributor Author

@codebytere Sure thing. No worries on the delay.

@codebytere codebytere merged commit e787c0f into codebytere:main Sep 10, 2023
2 checks passed
@ilya-lopukhin
Copy link

Hello and thanks for an amazing library! No pressure at all but it would be great to have this urlAddresses extra prop feature released to NPM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants