tesla-inventory 3.5.362 → 3.5.363

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.363",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
@@ -49,7 +49,20 @@
49
49
  "name": "Kiko Beats",
50
50
  "url": "https://kikobeats.com"
51
51
  },
52
- "contributors": [],
52
+ "contributors": [
53
+ {
54
+ "name": "tolsadus",
55
+ "email": "maximeroux83320@gmail.com"
56
+ },
57
+ {
58
+ "name": "Kyle Mercier",
59
+ "email": "ferociouskyle@gmail.com"
60
+ },
61
+ {
62
+ "name": "quinnjn",
63
+ "email": "quinn@neumiiller.com"
64
+ }
65
+ ],
53
66
  "repository": {
54
67
  "type": "git",
55
68
  "url": "git+https://github.com/teslahunt/inventory.git"
@@ -72,7 +85,6 @@
72
85
  "devDependencies": {
73
86
  "@commitlint/cli": "latest",
74
87
  "@commitlint/config-conventional": "latest",
75
- "@ksmithut/prettier-standard": "latest",
76
88
  "ava": "5",
77
89
  "browserless": "latest",
78
90
  "c8": "latest",
@@ -85,7 +97,6 @@
85
97
  "github-generate-release": "latest",
86
98
  "json-future": "latest",
87
99
  "lodash": "latest",
88
- "markdown-tables-to-json": "latest",
89
100
  "nano-staged": "latest",
90
101
  "puppeteer": "latest",
91
102
  "signal-exit": "latest",
@@ -133,7 +144,7 @@
133
144
  },
134
145
  "nano-staged": {
135
146
  "*.js": [
136
- "prettier-standard",
147
+ "npx @kikobeats/prettier-standard",
137
148
  "standard --fix"
138
149
  ],
139
150
  "package.json": [
@@ -142,9 +153,7 @@
142
153
  },
143
154
  "pnpm": {
144
155
  "neverBuiltDependencies": [],
145
- "overrides": {
146
- "markdown-tables-to-json>@ts-stack/markdown": "1.4.0"
147
- }
156
+ "overrides": {}
148
157
  },
149
158
  "simple-git-hooks": {
150
159
  "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