tesla-inventory 2.0.0 → 2.0.1

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.
Files changed (1) hide show
  1. package/package.json +18 -19
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": "2.0.0",
5
+ "version": "2.0.1",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "josefrancisco.verdu@gmail.com",
@@ -67,6 +67,21 @@
67
67
  "files": [
68
68
  "src"
69
69
  ],
70
+ "scripts": {
71
+ "clean": "rm -rf node_modules",
72
+ "contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
73
+ "lint": "standard-markdown README.md && standard",
74
+ "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
75
+ "prerelease": "npm run update:check && npm run contributors",
76
+ "pretest": "npm run lint",
77
+ "release": "standard-version -a",
78
+ "release:github": "conventional-github-releaser -p angular",
79
+ "release:tags": "git push --follow-tags origin HEAD:master",
80
+ "test": "c8 ava",
81
+ "update": "ncu -u",
82
+ "update:check": "ncu -- --error-level 2",
83
+ "update:dependencies": "ncu -u"
84
+ },
70
85
  "license": "MIT",
71
86
  "commitlint": {
72
87
  "extends": [
@@ -97,21 +112,5 @@
97
112
  "simple-git-hooks": {
98
113
  "commit-msg": "npx commitlint --edit",
99
114
  "pre-commit": "npx nano-staged"
100
- },
101
- "scripts": {
102
- "clean": "rm -rf node_modules",
103
- "contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
104
- "lint": "standard-markdown README.md && standard",
105
- "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
106
- "prerelease": "npm run update:check && npm run contributors",
107
- "pretest": "npm run lint",
108
- "release": "standard-version -a",
109
- "release:github": "conventional-github-releaser -p angular",
110
- "release:tags": "git push --follow-tags origin HEAD:master",
111
- "test": "c8 ava",
112
- "update": "ncu -u",
113
- "update:check": "ncu -- --error-level 2",
114
- "update:dependencies": "ncu -u"
115
- },
116
- "readme": "<div align=\"center\">\n <img src=\"https://teslahunt.io/banner-red.png\">\n <br><br>\n</div>\n\n![Last version](https://img.shields.io/github/tag/teslahunt/tesla-inventory.svg?style=flat-square)\n[![NPM Status](https://img.shields.io/npm/dm/tesla-inventory.svg?style=flat-square)](https://www.npmjs.org/package/tesla-inventory)\n\n> Retrieve real-time data from Tesla Inventory.\n\n## Install\n\n```bash\n$ npm install tesla-inventory --save\n```\n\n## Usage\n\n```js\nconst teslaInventory = require('tesla-inventory')\n\nteslaInventory('fr', {\n model: 's',\n condition: 'used'\n}).then(results => console.log(results))\n```\n\n## API\n\n### teslaInventory(inventory, [query], [gotOpts])\n\n#### inventory\n\n*Required*<br>\nType: `string`\n\nThe Tesla Inventory identifier, see [`inventories`](/inventories.js).\n\n#### query\n\nType: `object`\n\nThe query options to be passed agaisnt [Tesla Inventory API](https://www.tesla.com/inventory/api/v1/inventory-results).\n\nThese options can be:\n\n- **arrangeby**: Price\n- **condition**: used|new\n- **model**: ms|mx|m3\n- **order**: asc|desc\n\n## License\n\n**tesla-inventory** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/Kikobeats/tesla-inventory/blob/master/LICENSE.md) License.<br>\nAuthored and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/Kikobeats/tesla-inventory/contributors).\n\n> [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/Kikobeats) · Twitter [@Kikobeats](https://twitter.com/Kikobeats)\n"
117
- }
115
+ }
116
+ }