balena-request 12.0.2 → 12.0.3

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,23 @@
1
+ - commits:
2
+ - subject: Avoid deep imports from balena-auth
3
+ hash: c11642a930772b968ff736583358d04a0b9321f4
4
+ body: ""
5
+ footer:
6
+ Change-type: patch
7
+ change-type: patch
8
+ author: Thodoris Greasidis
9
+ nested: []
10
+ - subject: Update balena-auth to 5.1.0
11
+ hash: d86de07cb9386cc5fe79c01e9ed03d9af664fe4b
12
+ body: ""
13
+ footer:
14
+ Change-type: patch
15
+ change-type: patch
16
+ author: Thodoris Greasidis
17
+ nested: []
18
+ version: 12.0.3
19
+ title: ""
20
+ date: 2023-08-09T12:12:01.266Z
1
21
  - commits:
2
22
  - subject: Make `url` a normal dependency
3
23
  hash: 1598cca9808180f2df2455bd8514b2647ea88f47
@@ -9,7 +29,7 @@
9
29
  nested: []
10
30
  version: 12.0.2
11
31
  title: ""
12
- date: 2023-07-25T15:47:52.939Z
32
+ date: 2023-07-25T15:56:21.136Z
13
33
  - commits:
14
34
  - subject: Update balena-auth to 5.0.0
15
35
  hash: 4b103ca558e38e86bf3563be028d70e676b01fd0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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
+ ## 12.0.3 - 2023-08-09
8
+
9
+ * Avoid deep imports from balena-auth [Thodoris Greasidis]
10
+ * Update balena-auth to 5.1.0 [Thodoris Greasidis]
11
+
7
12
  ## 12.0.2 - 2023-07-25
8
13
 
9
14
  * Make `url` a normal dependency [Thodoris Greasidis]
package/build/utils.js CHANGED
@@ -21,7 +21,7 @@ const { fetch: normalFetch, Headers: HeadersPonyfill } = require('fetch-ponyfill
21
21
  const urlLib = require("url");
22
22
  const qs = require("qs");
23
23
  const errors = require("balena-errors");
24
- const token_1 = require("balena-auth/build/token");
24
+ const balena_auth_1 = require("balena-auth");
25
25
  const IS_BROWSER = typeof window !== 'undefined' && window !== null;
26
26
  /**
27
27
  * @module utils
@@ -52,7 +52,7 @@ function shouldRefreshKey(auth) {
52
52
  return false;
53
53
  }
54
54
  const type = yield auth.getType();
55
- if (type !== token_1.TokenType.JWT) {
55
+ if (type !== balena_auth_1.TokenType.JWT) {
56
56
  return false;
57
57
  }
58
58
  const age = (_a = (yield auth.getAge())) !== null && _a !== void 0 ? _a : 0;
package/lib/utils.ts CHANGED
@@ -22,7 +22,7 @@ import * as urlLib from 'url';
22
22
  import * as qs from 'qs';
23
23
  import * as errors from 'balena-errors';
24
24
  import type BalenaAuth from 'balena-auth';
25
- import { TokenType } from 'balena-auth/build/token';
25
+ import { TokenType } from 'balena-auth';
26
26
  import type { BalenaRequestOptions, BalenaRequestResponse } from './request';
27
27
 
28
28
  const IS_BROWSER = typeof window !== 'undefined' && window !== null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-request",
3
- "version": "12.0.2",
3
+ "version": "12.0.3",
4
4
  "description": "Balena HTTP client",
5
5
  "main": "build/request.js",
6
6
  "types": "build/request.d.ts",
@@ -44,7 +44,7 @@
44
44
  "@types/qs": "^6.9.3",
45
45
  "@types/sinon": "^10.0.11",
46
46
  "assert": "^2.0.0",
47
- "balena-auth": "^5.0.0",
47
+ "balena-auth": "^5.1.0",
48
48
  "balena-config-karma": "4.0.0",
49
49
  "bluebird": "^3.7.2",
50
50
  "browserify-zlib": "^0.2.0",
@@ -77,9 +77,9 @@
77
77
  "url": "^0.11.1"
78
78
  },
79
79
  "peerDependencies": {
80
- "balena-auth": "^5.0.0"
80
+ "balena-auth": "^5.1.0"
81
81
  },
82
82
  "versionist": {
83
- "publishedAt": "2023-07-25T15:47:53.133Z"
83
+ "publishedAt": "2023-08-09T12:12:01.537Z"
84
84
  }
85
85
  }