tesla-inventory 1.8.41 → 1.8.44

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/LICENSE.md CHANGED
File without changes
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: 'US', region: 'North America' },
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: 'US', region: 'North America' },
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.41",
5
+ "version": "1.8.44",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "josefrancisco.verdu@gmail.com",
@@ -70,27 +70,6 @@
70
70
  "prices",
71
71
  "scripts"
72
72
  ],
73
- "scripts": {
74
- "clean": "rm -rf node_modules",
75
- "codes": "(node scripts/codes.js && git add codes.json && git commit -m 'build(update): codes' --no-verify && git push) || true",
76
- "contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
77
- "cronjob": "npm run prices && npm run codes && npm run healthcheck",
78
- "healthcheck": "curl -sL https://hc-ping.com/b0792794-6548-42d5-9981-b50a401d7667",
79
- "lint": "standard-markdown README.md && standard",
80
- "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
81
- "prerelease": "npm run update:check && npm run contributors",
82
- "pretest": "npm run lint",
83
- "prices": "npm run prices:europe && npm run prices:america",
84
- "prices:america": "(DEBUG=tesla-inventory* node scripts/prices/america.js && git add prices/america.json && git commit -m 'build(update): prices for North America' --no-verify && git push) || true",
85
- "prices:europe": "(DEBUG=tesla-inventory* node scripts/prices/europe.js && git add prices/europe.json && git commit -m 'build(update): prices for Europe' --no-verify && git push) || true",
86
- "release": "standard-version -a",
87
- "release:github": "conventional-github-releaser -p angular",
88
- "release:tags": "git push --follow-tags origin HEAD:master",
89
- "test": "c8 ava",
90
- "update": "ncu -u",
91
- "update:check": "ncu -- --error-level 2",
92
- "update:dependencies": "ncu -u"
93
- },
94
73
  "license": "MIT",
95
74
  "commitlint": {
96
75
  "extends": [
@@ -111,5 +90,26 @@
111
90
  "simple-git-hooks": {
112
91
  "commit-msg": "npx commitlint --edit",
113
92
  "pre-commit": "npx nano-staged"
93
+ },
94
+ "scripts": {
95
+ "clean": "rm -rf node_modules",
96
+ "codes": "(node scripts/codes.js && git add codes.json && git commit -m 'build(update): codes' --no-verify && git push) || true",
97
+ "contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
98
+ "cronjob": "npm run prices && npm run codes && npm run healthcheck",
99
+ "healthcheck": "curl -sL https://hc-ping.com/b0792794-6548-42d5-9981-b50a401d7667",
100
+ "lint": "standard-markdown README.md && standard",
101
+ "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
102
+ "prerelease": "npm run update:check && npm run contributors",
103
+ "pretest": "npm run lint",
104
+ "prices": "npm run prices:europe && npm run prices:america",
105
+ "prices:america": "(DEBUG=tesla-inventory* node scripts/prices/america.js && git add prices/america.json && git commit -m 'build(update): prices for North America' --no-verify && git push) || true",
106
+ "prices:europe": "(DEBUG=tesla-inventory* node scripts/prices/europe.js && git add prices/europe.json && git commit -m 'build(update): prices for Europe' --no-verify && git push) || true",
107
+ "release": "standard-version -a",
108
+ "release:github": "conventional-github-releaser -p angular",
109
+ "release:tags": "git push --follow-tags origin HEAD:master",
110
+ "test": "c8 ava",
111
+ "update": "ncu -u",
112
+ "update:check": "ncu -- --error-level 2",
113
+ "update:dependencies": "ncu -u"
114
114
  }
115
- }
115
+ }
@@ -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