@knime/utils 1.2.5 → 1.2.7
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 +14 -1
- package/package.json +2 -2
- package/src/uploadManager/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
# @knime/utils
|
|
2
2
|
|
|
3
|
+
## 1.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [b10e3aa]
|
|
8
|
+
- @knime/styles@1.3.1
|
|
9
|
+
|
|
10
|
+
## 1.2.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Adjust parameter signature for success/failure callbacks of upload feature
|
|
15
|
+
|
|
3
16
|
## 1.2.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
6
19
|
|
|
7
20
|
- Updated dependencies [976dba9]
|
|
8
|
-
- @knime/styles@1.
|
|
21
|
+
- @knime/styles@1.3.0
|
|
9
22
|
|
|
10
23
|
## 1.2.4
|
|
11
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/utils",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Internal utility functions and constants shared across @knime packages.",
|
|
5
5
|
"homepage": "https://knime.github.io/webapps-common/",
|
|
6
6
|
"license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"consola": "3.2.3",
|
|
11
11
|
"date-fns": "2.30.0",
|
|
12
12
|
"date-fns-tz": "2.0.0",
|
|
13
|
-
"@knime/styles": "1.
|
|
13
|
+
"@knime/styles": "1.3.1"
|
|
14
14
|
},
|
|
15
15
|
"main": "src/index.ts",
|
|
16
16
|
"module": "src/index.ts",
|
|
@@ -111,7 +111,7 @@ export type UploaderManagerConfig = {
|
|
|
111
111
|
* @param error the error that cause the failure if it exists
|
|
112
112
|
* @returns
|
|
113
113
|
*/
|
|
114
|
-
onFileUploadFailed?: (uploadId: string
|
|
114
|
+
onFileUploadFailed?: (payload: { uploadId: string; error: Error }) => void;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Callback that gets triggered when the progress of a file part upload
|
|
@@ -218,7 +218,7 @@ export const createUploadManager = (config: UploaderManagerConfig) => {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
setUploadState(uploadId, { state: "failed" });
|
|
221
|
-
onFileUploadFailed?.(uploadId, error);
|
|
221
|
+
onFileUploadFailed?.({ uploadId, error });
|
|
222
222
|
failedUploads.add(uploadId);
|
|
223
223
|
|
|
224
224
|
if (completedUploads.has(uploadId)) {
|