Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-store-version
Advanced tools
This module check an app's version on google playstore or ios app store. By writing code successfully, you can make a forced update.
This module check an app's version on google playstore or ios app store.
By writing code successfully, you can make a forced update.
I've only been updating occasionally, but I'd be happy to sponsor you to keep me motivated. https://github.com/sponsors/watanabeyu
$ npm install --save react-native-store-version
import checkVersion from 'react-native-store-version';
export default function App() {
useEffect(() => {
const init = async () => {
try {
const check = await checkVersion({
version: '1.0.0', // app local version
iosStoreURL: 'ios app store url',
androidStoreURL: 'android app store url',
country: 'jp', // default value is 'jp'
});
if (check.result === 'new') {
// if app store version is new
}
} catch (e) {
console.log(e);
}
};
init();
}, []);
}
// correct
{
local: "1.0.0",
remote: "1.1.0",
result: "new", // "new" | "old" | "equal"
detail: "remote > local", // "remote > local" | "remote < local" | "remote === local"
}
// catch error
{
message: "string",
}
result compare from a local
to remote
.
If local(1.0.0)
and remote(1.1.0)
, result is new.
FAQs
This module check an app's version on google playstore or ios app store. By writing code successfully, you can make a forced update.
We found that react-native-store-version 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.