
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
cordova-plugin-shake
Advanced tools
Cordova Plugin to detect when a physical device performs a shake gesture.
Apache Cordova / PhoneGap Plugin to detect when a physical device performs a shake gesture.
This is based on a standalone JavaScript implementation I wrote last year (gist).
cordova plugin add cordova-plugin-shake
cordova plugin add https://github.com/leecrossley/cordova-plugin-shake.git
You do not need to reference any JavaScript, the Cordova plugin architecture will add a shake object to your root automatically when you build.
NB: There is no native component to this plugin but it depends on the device motion plugin (added when this plugin is added).
var onShake = function () {
// Fired when a shake is detected
};
var onError = function () {
// Fired when there is an accelerometer error (optional)
};
// Start watching for shake gestures and call "onShake"
// with a shake sensitivity of 40 (optional, default 30)
shake.startWatch(onShake, 40 /*, onError */);
// Stop watching for shake gestures
shake.stopWatch();
FAQs
Cordova Plugin to detect when a physical device performs a shake gesture.
The npm package cordova-plugin-shake receives a total of 295 weekly downloads. As such, cordova-plugin-shake popularity was classified as not popular.
We found that cordova-plugin-shake 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.