tesla-inventory 1.8.42 → 1.8.43
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/inventories.js +2 -2
- package/package.json +1 -1
- package/scripts/prices/europe.js +1 -2
package/inventories.js
CHANGED
|
@@ -15,10 +15,10 @@ module.exports = {
|
|
|
15
15
|
is: { country: 'Island', language: 'is', market: 'IS', region: 'Europe' },
|
|
16
16
|
it: { country: 'Italy', language: 'it', market: 'IT', region: 'Europe' },
|
|
17
17
|
lu: { country: 'Luxembourg', language: 'fr', market: 'LU', region: 'Europe' },
|
|
18
|
-
mx: { country: 'Mexico', language: 'es', market: '
|
|
18
|
+
mx: { country: 'Mexico', language: 'es', market: 'MX', region: 'North America' },
|
|
19
19
|
nl: { country: 'Netherlands', language: 'nl', market: 'NL', region: 'Europe' },
|
|
20
20
|
no: { country: 'Norway', language: 'no', market: 'NO', region: 'Europe' },
|
|
21
|
-
pr: { country: 'Puerto Rico', language: 'es', market: '
|
|
21
|
+
pr: { country: 'Puerto Rico', language: 'es', market: 'PR', region: 'North America' },
|
|
22
22
|
pt: { country: 'Portugal', language: 'pt', market: 'PT', region: 'Europe' },
|
|
23
23
|
ro: { country: 'România', language: 'ro', market: 'RO', region: 'Europe' },
|
|
24
24
|
se: { country: 'Sweden', language: 'sv', market: 'SE', region: 'Europe' },
|
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://nicedoc.io/Kikobeats/tesla-inventory",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.43",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "josefrancisco.verdu@gmail.com",
|
package/scripts/prices/europe.js
CHANGED
|
@@ -6,8 +6,7 @@ const NON_EURO_COUNTRIES = ['cz', 'se', 'dk', 'hu', 'is', 'ch', 'gb', 'no']
|
|
|
6
6
|
|
|
7
7
|
const inventories = Object.fromEntries(
|
|
8
8
|
Object.entries(require('../../inventories')).filter(
|
|
9
|
-
([code, { region }]) =>
|
|
10
|
-
region === 'Europe' && !NON_EURO_COUNTRIES.includes(code)
|
|
9
|
+
([code, { region }]) => region === 'Europe' && !NON_EURO_COUNTRIES.includes(code)
|
|
11
10
|
)
|
|
12
11
|
)
|
|
13
12
|
|