Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-native-bluetooth-cache-manager
Advanced tools
A React Native module to refresh Bluetooth GATT cache
Easily refresh the GATT cache for Bluetooth devices in your React Native application. This package simplifies invoking the GATT refresh functionality on Android devices.
Install the package using npm or yarn:
npm install react-native-bluetooth-cache-manager
or
yarn add react-native-bluetooth-cache-manager
This package supports autolinking for React Native 0.60 and above. No manual linking is required for most configurations.
You can use the module in your React Native project as follows:
import RNGattCacheRefresh from 'react-native-bluetooth-cache-manager';
// Example usage
RNGattCacheRefresh.refreshCache(deviceId, (error, result) => {
if (error) {
console.error('Failed to refresh GATT cache:', error);
} else {
console.log('GATT cache refreshed successfully:', result);
}
});
refreshCache
BLUETOOTH_CONNECT
permission is granted in your app.Contributions are welcome! If you encounter any issues or have ideas for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
FAQs
A React Native module to refresh Bluetooth GATT cache
The npm package react-native-bluetooth-cache-manager receives a total of 20 weekly downloads. As such, react-native-bluetooth-cache-manager popularity was classified as not popular.
We found that react-native-bluetooth-cache-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.