@autofleet/network 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -104,7 +104,7 @@ module.exports = class Network {
104
104
 
105
105
  const localOptions = { params: {}, ...options };
106
106
  localOptions.params.page = 1;
107
- while(localOptions.params.page === 1 || lastResultsSize < resultsInFirstPage) {
107
+ while(localOptions.params.page === 1 || lastResultsSize === resultsInFirstPage) {
108
108
  const { data } = await this.get(url, localOptions);
109
109
  lastResultsSize = data.length;
110
110
  if(localOptions.params.page === 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/network",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {