@twin.org/web 0.0.1-next.52 → 0.0.1-next.54

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.
@@ -543,7 +543,7 @@ class FetchHelper {
543
543
  if (isErr && core.Is.stringValue(err.message) && err.message.includes("Failed to fetch")) {
544
544
  lastError = new FetchError(source, `${FetchHelper._CLASS_NAME_CAMEL_CASE}.connectivity`, HttpStatusCode.serviceUnavailable, {
545
545
  url
546
- });
546
+ }, err);
547
547
  }
548
548
  else {
549
549
  const isAbort = isErr && err.name === "AbortError";
@@ -558,7 +558,7 @@ class FetchHelper {
558
558
  if (isErr && "statusText" in err) {
559
559
  props.statusText = err.statusText;
560
560
  }
561
- lastError = new FetchError(source, `${FetchHelper._CLASS_NAME_CAMEL_CASE}.${isAbort ? "timeout" : "general"}`, httpStatus, props);
561
+ lastError = new FetchError(source, `${FetchHelper._CLASS_NAME_CAMEL_CASE}.${isAbort ? "timeout" : "general"}`, httpStatus, props, err);
562
562
  }
563
563
  }
564
564
  finally {
@@ -541,7 +541,7 @@ class FetchHelper {
541
541
  if (isErr && Is.stringValue(err.message) && err.message.includes("Failed to fetch")) {
542
542
  lastError = new FetchError(source, `${FetchHelper._CLASS_NAME_CAMEL_CASE}.connectivity`, HttpStatusCode.serviceUnavailable, {
543
543
  url
544
- });
544
+ }, err);
545
545
  }
546
546
  else {
547
547
  const isAbort = isErr && err.name === "AbortError";
@@ -556,7 +556,7 @@ class FetchHelper {
556
556
  if (isErr && "statusText" in err) {
557
557
  props.statusText = err.statusText;
558
558
  }
559
- lastError = new FetchError(source, `${FetchHelper._CLASS_NAME_CAMEL_CASE}.${isAbort ? "timeout" : "general"}`, httpStatus, props);
559
+ lastError = new FetchError(source, `${FetchHelper._CLASS_NAME_CAMEL_CASE}.${isAbort ? "timeout" : "general"}`, httpStatus, props, err);
560
560
  }
561
561
  }
562
562
  finally {
package/docs/changelog.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @twin.org/web - Changelog
2
2
 
3
+ ## [0.0.1-next.54](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.53...web-v0.0.1-next.54) (2025-05-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/core bumped from 0.0.1-next.53 to 0.0.1-next.54
16
+ * @twin.org/crypto bumped from 0.0.1-next.53 to 0.0.1-next.54
17
+
18
+ ## [0.0.1-next.53](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.52...web-v0.0.1-next.53) (2025-05-01)
19
+
20
+
21
+ ### Miscellaneous Chores
22
+
23
+ * **web:** Synchronize repo versions
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/core bumped from 0.0.1-next.52 to 0.0.1-next.53
31
+ * @twin.org/crypto bumped from 0.0.1-next.52 to 0.0.1-next.53
32
+
3
33
  ## [0.0.1-next.52](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.51...web-v0.0.1-next.52) (2025-04-17)
4
34
 
5
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/web",
3
- "version": "0.0.1-next.52",
3
+ "version": "0.0.1-next.54",
4
4
  "description": "Contains classes for use with web operations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,8 +14,8 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "0.0.1-next.52",
18
- "@twin.org/crypto": "0.0.1-next.52",
17
+ "@twin.org/core": "0.0.1-next.54",
18
+ "@twin.org/crypto": "0.0.1-next.54",
19
19
  "@twin.org/nameof": "next",
20
20
  "jose": "6.0.10"
21
21
  },