Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
cordova-plugin-contacts-save
Advanced tools
This plugin saves the contacts into the device.
cordova plugin add cordova-plugin-contacts-save
Dont forget to add NSContactsUsageDescription
to your plist
.
You can add this in your config.xml
.
<platform name="ios">
...
<edit-config file="*-Info.plist" mode="merge" target="NSContactsUsageDescription">
<string>Used to save business cards</string>
</edit-config>
...
</platform>
// define contacts
var contacts = [
{
givenName: "Steve",
familyName: "Jobs",
},
];
// set default store container
var container = "";
// save contacts
window.ContactsSave.saveContacts(
contacts,
container,
(cookies) => {
// contacts saved
},
(error) => {
// error: NO_CONTACTS or NO_PERMISSON
}
);
export interface CNMutableContact {
namePrefix?: string;
givenName?: string;
familyName?: string;
organizationName?: string;
jobTitle?: string;
postalAddresses: CNLabeledValue<"home" | "work" | "other", CNPostalAddress>[];
phoneNumbers: CNLabeledValue<
"home" | "work" | "mobile" | "homeFax" | "workFax" | "otherFax" | "other",
CNPhoneNumber
>[];
emailAddresses: CNLabeledValue<"home" | "work" | "other", string>[];
urlAddresses: CNLabeledValue<"home" | "work" | "other", string>[];
imageData?: string;
note?: string;
}
export interface CNLabeledValue<L, V> {
label?: L;
value: V;
}
export interface CNPhoneNumber {
stringValue?: string;
}
export interface CNPostalAddress {
street?: string;
city?: string;
state?: string;
postalCode?: string;
ISOCountryCode?: string;
country?: string;
}
FAQs
Cordova Contacts Save Plugin
The npm package cordova-plugin-contacts-save receives a total of 1 weekly downloads. As such, cordova-plugin-contacts-save popularity was classified as not popular.
We found that cordova-plugin-contacts-save demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.