suunto-api-wrapper 1.3.0 → 1.3.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.
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -652,7 +652,10 @@ var SuuntoClient = class _SuuntoClient {
|
|
|
652
652
|
baseUrl: baseUrl247 ?? SPORTS_TRACKER_247_API,
|
|
653
653
|
headers: sharedHeaders,
|
|
654
654
|
...rest,
|
|
655
|
-
beforeRequest
|
|
655
|
+
beforeRequest: async (ctx) => {
|
|
656
|
+
await beforeRequest(ctx);
|
|
657
|
+
ctx.headers["accept"] = "*/*";
|
|
658
|
+
}
|
|
656
659
|
});
|
|
657
660
|
this.workouts = new WorkoutsResource(this.http);
|
|
658
661
|
this.users = new UsersResource(this.http);
|
package/dist/index.mjs
CHANGED
|
@@ -601,7 +601,10 @@ var SuuntoClient = class _SuuntoClient {
|
|
|
601
601
|
baseUrl: baseUrl247 ?? SPORTS_TRACKER_247_API,
|
|
602
602
|
headers: sharedHeaders,
|
|
603
603
|
...rest,
|
|
604
|
-
beforeRequest
|
|
604
|
+
beforeRequest: async (ctx) => {
|
|
605
|
+
await beforeRequest(ctx);
|
|
606
|
+
ctx.headers["accept"] = "*/*";
|
|
607
|
+
}
|
|
605
608
|
});
|
|
606
609
|
this.workouts = new WorkoutsResource(this.http);
|
|
607
610
|
this.users = new UsersResource(this.http);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suunto-api-wrapper",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Unofficial typed TypeScript client for the Suunto app API (Sports Tracker backend). Not affiliated with or endorsed by Suunto or Sports Tracker.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/Marius-Ar/suunto-api-wrapper"
|