@nxtedition/lib 17.2.2 → 17.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "17.2.2",
3
+ "version": "17.2.3",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
@@ -53,18 +53,13 @@ class FetchEntry {
53
53
  dispatcher: fetchClient,
54
54
  })
55
55
  .then(async (res) => {
56
+ const body = await res.text()
56
57
  if (this.refresh) {
57
- try {
58
- // TODO (fix): max size...
59
- this.status = res.statusCode
60
- this.headers = res.headers
61
- this.body = await res.text()
62
- } catch (err) {
63
- this.error = Object.assign(err, { data: resource })
64
- }
58
+ // TODO (fix): max size...
59
+ this.status = res.statusCode
60
+ this.headers = res.headers
61
+ this.body = body
65
62
  this.refresh()
66
- } else {
67
- res.dump()
68
63
  }
69
64
  })
70
65
  .catch((err) => {