react-native-infinite-flatlist-patch
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "react-native-infinite-flatlist-patch", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Patch for infinite scrolling with FlatList", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
50
patch.js
@@ -17,20 +17,34 @@ #!/usr/bin/env node | ||
let patchDir = ''; | ||
if (minorVersion >= 60) { | ||
patchDir = '0.60.5'; | ||
} else if (minorVersion === 59) { | ||
if (patchVersion >= 8) { | ||
patchDir = '0.59.8'; | ||
} else if (patchVersion >= 5) { | ||
patchDir = '0.59.5'; | ||
} else if (patchVersion >= 3) { | ||
patchDir = '0.59.3'; | ||
} | ||
} else if (minorVersion === 58) { | ||
patchDir = '0.58.6'; | ||
} else if (minorVersion === 56 && minorVersion === 57) { | ||
patchDir = '0.57.8'; | ||
} else if (minorVersion === 55) { | ||
patchDir = '0.55.4'; | ||
} else if (minorVersion === 54) { | ||
patchDir = '0.54.4'; | ||
switch (minorVersion) { | ||
case 62: | ||
patchDir = '0.62.1'; | ||
case 61: | ||
patchDir = '0.61.5'; | ||
case 60: | ||
patchDir = '0.60.5'; | ||
break; | ||
case 59: | ||
if (patchVersion >= 8) { | ||
patchDir = '0.59.8'; | ||
} else if (patchVersion >= 5) { | ||
patchDir = '0.59.5'; | ||
} else if (patchVersion >= 3) { | ||
patchDir = '0.59.3'; | ||
} | ||
break; | ||
case 58: | ||
patchDir = '0.58.6'; | ||
break; | ||
case 57: | ||
case 56: | ||
patchDir = '0.57.8'; | ||
break; | ||
case 55: | ||
patchDir = '0.55.4'; | ||
break; | ||
case 54: | ||
patchDir = '0.54.4'; | ||
break; | ||
default: | ||
break; | ||
} | ||
@@ -37,0 +51,0 @@ |
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
620479
13
17716