Skip to content

Commit

Permalink
Many Improvements (#18)
Browse files Browse the repository at this point in the history
* Bump dependencies
* Added simple test script
* Updated API endpoint configuration
* Type definitions
* Source cleanup
* Added conditional parsing for properties
* Added advanced Life360 API handler class
* API request hardening
  • Loading branch information
MiGoller authored Nov 16, 2022
1 parent b071fc3 commit 5855fd8
Show file tree
Hide file tree
Showing 7 changed files with 1,114 additions and 157 deletions.
7 changes: 7 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LIFE360_USERNAME=
LIFE360_PASSWORD=
LIFE360_PHONENUMBER=
LIFE360_COUNTRYCODE=49
LIFE360_DEVICEID=
LIFE360_CLIENTVERSION=
LIFE360_USERAGENT=
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ main();

## Changelog

### 0.3.0

- (MiGoller) Many improvements regarding stability.

### 0.2.0

- (MiGoller) [Add feature to get members' location](https://github.com/MiGoller/life360-api.js/issues/13)
Expand Down
160 changes: 81 additions & 79 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "life360-api.js",
"version": "0.2.0",
"version": "0.3.0",
"description": "An unofficial client for the Life360 API.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -11,7 +11,7 @@
"build": "tsc",
"prepare": "npm run build",
"start": "tsc && node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"test": "node ./test/index.js",
"lint": "eslint"
},
"repository": {
Expand All @@ -35,11 +35,11 @@
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"dotenv": "^16.0.3",
"eslint": "^7.24.0",
"typescript": "^4.7.3"
},
"dependencies": {
"axios": "^0.27.2",
"uuid": "^8.3.2"
"axios": "^0.27.2"
}
}
Loading

0 comments on commit 5855fd8

Please sign in to comment.