@scaleflex/widget-utils 4.5.4 → 4.6.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.
- package/CHANGELOG.md +11 -0
- package/lib/RequestError.js +3 -1
- package/lib/createThunk.js +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.6.0](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.5.4...v4.6.0) (2025-12-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* enhance error handling and abort functionality in archive thunks ([aa716e5](https://code.scaleflex.cloud/scaleflex/widget/commits/aa716e5a9769c8df3e7b2ed2c499f3d247a060ba))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.5.4](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.5.3...v4.5.4) (2025-10-15)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @scaleflex/widget-utils
|
package/lib/RequestError.js
CHANGED
|
@@ -20,7 +20,8 @@ var RequestError = /*#__PURE__*/function (_Error) {
|
|
|
20
20
|
var code = _ref.code,
|
|
21
21
|
codeLabel = _ref.codeLabel,
|
|
22
22
|
message = _ref.message,
|
|
23
|
-
details = _ref.details
|
|
23
|
+
details = _ref.details,
|
|
24
|
+
response = _ref.response;
|
|
24
25
|
_classCallCheck(this, RequestError);
|
|
25
26
|
_this = _callSuper(this, RequestError, [message]);
|
|
26
27
|
_this.name = "Request Error (".concat(code, ")");
|
|
@@ -28,6 +29,7 @@ var RequestError = /*#__PURE__*/function (_Error) {
|
|
|
28
29
|
_this.message = message;
|
|
29
30
|
_this.details = details;
|
|
30
31
|
_this.codeLabel = codeLabel;
|
|
32
|
+
_this.response = response;
|
|
31
33
|
return _this;
|
|
32
34
|
}
|
|
33
35
|
_inherits(RequestError, _Error);
|
package/lib/createThunk.js
CHANGED
|
@@ -174,6 +174,7 @@ var createThunk = function createThunk(dispatchedFn) {
|
|
|
174
174
|
}
|
|
175
175
|
abortController.abort();
|
|
176
176
|
};
|
|
177
|
+
signal.abortFn = abort;
|
|
177
178
|
|
|
178
179
|
// If the thunk function is sync then call it and return, no need to call the following logic of async function.
|
|
179
180
|
// async keyword is required to be prefixed to the function to act as async thunk, otherwise it will be sync.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Shared utility functions for filerobot modules",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "types/index.d.ts",
|
|
6
|
-
"version": "4.
|
|
6
|
+
"version": "4.6.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"/dist",
|
|
9
9
|
"/lib",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@scaleflex/icons": "^3.0.0-beta.11",
|
|
18
18
|
"@scaleflex/ui": "^3.0.0-beta.11",
|
|
19
|
-
"@scaleflex/widget-icons": "^4.
|
|
19
|
+
"@scaleflex/widget-icons": "^4.6.0",
|
|
20
20
|
"abortcontroller-polyfill": "^1.4.0",
|
|
21
21
|
"dompurify": "^3.1.6",
|
|
22
22
|
"lodash.throttle": "^4.1.1"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "8a86d7a049cd385ef0f0765550691bb5738426d6"
|
|
25
25
|
}
|