Skip to content

Commit

Permalink
Ensure valid config for Local or HTTP API
Browse files Browse the repository at this point in the history
* When using HTTP API, check that `token` and `station_id` are present and have valid characteristics.
* When Local API is used, `token` and `station_id` are not required and are not validated.
* User is able to switch between HTTP API to Local API and back to HTTP API without the need to re-enter `token` and `station_id` as these are retained in the config.sys file.
  • Loading branch information
DMBlakeley committed Jan 9, 2024
1 parent 9f5911b commit 3153e26
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 107 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files.eol": "\n",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.rulers": [ 140 ],
"eslint.enable": true,
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/).

## v4.0.2
* When using HTTP API, check that `token` and `station_id` are present and have valid characteristics.
* When Local API is used, `token` and `station_id` are not required and are not validated.
* User is able to switch between HTTP API to Local API and back to HTTP API without the need to re-enter `token` and `station_id` as these are retained in the config.sys file.

## v4.0.1
* Check that `station_id` length is more than one character when initializing plugin in Local API mode.
* Update axios to v1.6.2 to address moderate severity vulnerability.
Expand Down
Loading

0 comments on commit 3153e26

Please sign in to comment.