react-native-networking-patch
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "react-native-networking-patch", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Improves the performance of the React Native network module and adds a timeout feature.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
10
patch.js
@@ -32,4 +32,5 @@ #!/usr/bin/env node | ||
const version = packageJSON.version.split('.'); | ||
const minorVersion = parseInt(version[1], 10); | ||
const version = packageJSON.version; | ||
const versions = version.split('.'); | ||
const minorVersion = parseInt(versions[1], 10); | ||
@@ -56,2 +57,7 @@ let patchDir = ''; | ||
if (patchDir !== version) { | ||
console.log(`[!] React Native is not the latest version. Please upgrade to ${patchDir} first.`); | ||
process.exit(1); | ||
} | ||
function getAllFiles(dirPath, arrayOfFiles) { | ||
@@ -58,0 +64,0 @@ const files = fs.readdirSync(dirPath); |
@@ -84,3 +84,3 @@ [![NPM Version][npm-image]][npm-url] | ||
### Requirement | ||
It works with RN 0.60 and higher versions(0.62.2, 0.61.5, 0.60.6). Of course, it works on `Expo`. | ||
**It works with the latest versions such as v0.62.2, v0.61.5 and v0.60.6.** If not, please upgrade to the latest version. Of course, it works on `Expo`. | ||
@@ -87,0 +87,0 @@ ### Install |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37701325
2190