Skip to content

Commit

Permalink
Update user agent to use package Version
Browse files Browse the repository at this point in the history
Update user agent to use package Version
  • Loading branch information
jfarmer08 committed Feb 6, 2024
1 parent 4c24926 commit 8f58216
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# wyze-api

## Releases

### v1.1.2
- Change user aganet based on package version

### v1.1.1
- Chnage user agent to unofficial-wyze-api/1.0
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"dependencies": {
"axios": "^0.27.2",
"@ptkdev/logger": "1.8.0",
"wyze-api": "1.1.0"
"wyze-api": "^1.1.1"
}
}
12 changes: 10 additions & 2 deletions package-lock.json

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

10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wyze-api",
"version": "1.1.1",
"version": "1.1.2",
"description": "An unoficial API wrapper for Wyze products.",
"homepage": "https://github.com/jfarmer08/wyze-api",
"main": "./src/index.js",
Expand Down Expand Up @@ -36,6 +36,14 @@
{
"type": "paypal",
"url": "https://paypal.me/AllenFarmer"
},
{
"type": "venmo",
"url": "https://venmo.com/u/Allen-Farmer"
},
{
"type": "cashApp",
"url": "https://cash.app/$Jfamer08"
}
],
"directories": {
Expand Down
4 changes: 3 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const packageVersion = require('../package.json').version

module.exports = Object.freeze({
// Crypto Secrets
fordAppKey: "275965684684dbdaf29a0ed9", // Required for Locks
Expand All @@ -14,7 +16,7 @@ module.exports = Object.freeze({
sc: "wyze_developer_api",
sv: "wyze_developer_api",
authApiKey: "WMXHYf79Nr5gIlt3r0r7p9Tcw5bvs6BB4U8O8nGJ",
userAgent: "unofficial-wyze-api/1.0",
userAgent: "unofficial-wyze-api/" + packageVersion,

//URLs
authBaseUrl: "https://auth-prod.api.wyze.com",
Expand Down

0 comments on commit 8f58216

Please sign in to comment.