tesla-inventory 3.5.224 → 3.5.226

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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tesla-inventory",
3
3
  "description": "Retrieve real-time data from Tesla Inventory.",
4
4
  "homepage": "https://github.com/Kikobeats/tesla-inventory",
5
- "version": "3.5.224",
5
+ "version": "3.5.226",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
package/src/codes.json CHANGED
@@ -71,6 +71,7 @@
71
71
  "BT41": "55 kWh 2021 E1 2170L Panasonic Battery Pack",
72
72
  "BT42": "82 kWh (Model 3/Y) 2021 Panasonic",
73
73
  "BT43": "79 kWh (Model 3/Y) 2021 LG NCA",
74
+ "BT47": "E3 2170L RWD Battery Pack",
74
75
  "BT60": "60 kWh",
75
76
  "BT70": "70 kWh",
76
77
  "BT85": "85 kWh",
package/src/index.js CHANGED
@@ -75,7 +75,7 @@ module.exports =
75
75
  page = await paginate(offset)
76
76
  ++pageIndex
77
77
  items = uniqBy(items.concat(page.items), 'VIN')
78
- offset = items.length
78
+ offset = pageIndex * ITEMS_PER_PAGE
79
79
  } while ((pageIndex !== 0 || page.items.length >= ITEMS_PER_PAGE) && page.items.length > 0)
80
80
 
81
81
  debug.info({ inventory, ...opts, items: items.length, duration: duration() })