balena-request 13.2.1 → 13.3.0

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.
@@ -1,3 +1,15 @@
1
+ - commits:
2
+ - subject: Increase TOKEN_REFRESH_INTERVAL from 1 hours to 1 day
3
+ hash: b841794b35ef310f831a37df9003418e9b90c99a
4
+ body: ""
5
+ footer:
6
+ Change-type: minor
7
+ change-type: minor
8
+ author: Otávio Jacobi
9
+ nested: []
10
+ version: 13.3.0
11
+ title: ""
12
+ date: 2024-02-13T18:13:53.291Z
1
13
  - commits:
2
14
  - subject: "fix: throw BalenaExpiredToken only when token is really expired"
3
15
  hash: 1de264cc38f3c873afd08b80f678329b61f00dd4
@@ -9,7 +21,7 @@
9
21
  nested: []
10
22
  version: 13.2.1
11
23
  title: ""
12
- date: 2024-02-13T15:03:15.810Z
24
+ date: 2024-02-13T17:17:44.014Z
13
25
  - commits:
14
26
  - subject: Include the response headers in BalenaRequestErrors
15
27
  hash: 9bce8edb035392b57dcb075ad832bb4ffa865f72
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
4
4
  automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5
5
  This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 13.3.0 - 2024-02-13
8
+
9
+ * Increase TOKEN_REFRESH_INTERVAL from 1 hours to 1 day [Otávio Jacobi]
10
+
7
11
  ## 13.2.1 - 2024-02-13
8
12
 
9
13
  * fix: throw BalenaExpiredToken only when token is really expired [Otávio Jacobi]
package/build/utils.js CHANGED
@@ -29,7 +29,7 @@ const IS_BROWSER = typeof window !== 'undefined' && window !== null;
29
29
  /**
30
30
  * @module utils
31
31
  */
32
- exports.TOKEN_REFRESH_INTERVAL = 1 * 60 * 60 * 1000; // 1 hour in milliseconds
32
+ exports.TOKEN_REFRESH_INTERVAL = 24 * 60 * 60 * 1000; // 1 day in milliseconds
33
33
  /**
34
34
  * @summary Determine if the token should be updated
35
35
  * @function
package/lib/utils.ts CHANGED
@@ -37,7 +37,7 @@ const IS_BROWSER = typeof window !== 'undefined' && window !== null;
37
37
  * @module utils
38
38
  */
39
39
 
40
- export const TOKEN_REFRESH_INTERVAL = 1 * 60 * 60 * 1000; // 1 hour in milliseconds
40
+ export const TOKEN_REFRESH_INTERVAL = 24 * 60 * 60 * 1000; // 1 day in milliseconds
41
41
 
42
42
  /**
43
43
  * @summary Determine if the token should be updated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-request",
3
- "version": "13.2.1",
3
+ "version": "13.3.0",
4
4
  "description": "Balena HTTP client",
5
5
  "main": "build/request.js",
6
6
  "types": "build/request.d.ts",
@@ -82,6 +82,6 @@
82
82
  "balena-auth": "^5.1.0"
83
83
  },
84
84
  "versionist": {
85
- "publishedAt": "2024-02-13T15:03:15.976Z"
85
+ "publishedAt": "2024-02-13T18:13:53.423Z"
86
86
  }
87
87
  }