tesla-inventory 3.5.362 → 3.5.364

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/README.md CHANGED
@@ -47,7 +47,7 @@ The fetcher function used for performing the networking calls. It should return
47
47
  *Required*<br>
48
48
  Type: `string`
49
49
 
50
- The Tesla Inventory identifier, see [`inventories`](/inventories.js).
50
+ The Tesla Inventory identifier, see [`inventories`](/src/inventories/index.js).
51
51
 
52
52
  #### query
53
53
 
@@ -59,7 +59,7 @@ These options can be:
59
59
 
60
60
  - **arrangeby**: Price
61
61
  - **condition**: used|new
62
- - **model**: ms|mx|m3
62
+ - **model**: ms|mx|m3|my|ct
63
63
  - **order**: asc|desc
64
64
 
65
65
  #### fetcherOpts
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.362",
5
+ "version": "3.5.364",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
@@ -72,7 +72,6 @@
72
72
  "devDependencies": {
73
73
  "@commitlint/cli": "latest",
74
74
  "@commitlint/config-conventional": "latest",
75
- "@ksmithut/prettier-standard": "latest",
76
75
  "ava": "5",
77
76
  "browserless": "latest",
78
77
  "c8": "latest",
@@ -85,7 +84,6 @@
85
84
  "github-generate-release": "latest",
86
85
  "json-future": "latest",
87
86
  "lodash": "latest",
88
- "markdown-tables-to-json": "latest",
89
87
  "nano-staged": "latest",
90
88
  "puppeteer": "latest",
91
89
  "signal-exit": "latest",
@@ -133,7 +131,7 @@
133
131
  },
134
132
  "nano-staged": {
135
133
  "*.js": [
136
- "prettier-standard",
134
+ "npx @kikobeats/prettier-standard",
137
135
  "standard --fix"
138
136
  ],
139
137
  "package.json": [
@@ -142,9 +140,7 @@
142
140
  },
143
141
  "pnpm": {
144
142
  "neverBuiltDependencies": [],
145
- "overrides": {
146
- "markdown-tables-to-json>@ts-stack/markdown": "1.4.0"
147
- }
143
+ "overrides": {}
148
144
  },
149
145
  "simple-git-hooks": {
150
146
  "commit-msg": "npx commitlint --edit",
package/src/index.js CHANGED
@@ -24,7 +24,7 @@ module.exports =
24
24
  throw new TypeError(`Tesla inventory \`${inventory}\` not found!`)
25
25
  }
26
26
 
27
- if (opts.model && !opts.model.startsWith('m')) {
27
+ if (opts.model && opts.model.length === 1) {
28
28
  opts.model = `m${opts.model}`
29
29
  }
30
30
 
@@ -75,7 +75,7 @@
75
75
  "PMBL": 2800,
76
76
  "PMNG": 1500,
77
77
  "PN00": 2600,
78
- "PN01": 2300,
78
+ "PN01": 1900,
79
79
  "PPMR": 2400,
80
80
  "PPSB": 1500,
81
81
  "PR01": 2600,
@@ -78,6 +78,8 @@
78
78
  "MT358": 3333,
79
79
  "MT362": 10000,
80
80
  "MT363": 15000,
81
+ "MT370": 16000,
82
+ "MT371": 23500,
81
83
  "MT70A": 52470,
82
84
  "MT75A": 52110,
83
85
  "MT90A": 5000,
@@ -29,6 +29,7 @@
29
29
  "MT353": 21000,
30
30
  "MT356": 10000,
31
31
  "MT358": 5000,
32
+ "MT370": 29192,
32
33
  "MTS13": 20800,
33
34
  "MTS14": 35800,
34
35
  "MTS18": 20800,
@@ -57,12 +58,12 @@
57
58
  "PPSW": 1300,
58
59
  "PR00": 2600,
59
60
  "PR01": 2000,
60
- "PX02": 1300,
61
+ "PX02": 1040,
61
62
  "SPT31": 6636,
62
63
  "ST0Y": 250,
63
64
  "ST1Y": 1000,
64
65
  "STY7S": 2500,
65
- "TW01": 1459,
66
+ "TW01": 1080,
66
67
  "W39S": 1725,
67
68
  "W41B": 1725,
68
69
  "WS10": 5176,
@@ -76,6 +76,7 @@
76
76
  "WTSG": 6900,
77
77
  "WTSS": 7500,
78
78
  "WTUT": 7300,
79
+ "WX20": 7300,
79
80
  "WY20A": 2800,
80
81
  "WY20P": 2800
81
82
  }