@knime/utils 1.2.5 → 1.2.6

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 CHANGED
@@ -1,11 +1,17 @@
1
1
  # @knime/utils
2
2
 
3
+ ## 1.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Adjust parameter signature for success/failure callbacks of upload feature
8
+
3
9
  ## 1.2.5
4
10
 
5
11
  ### Patch Changes
6
12
 
7
13
  - Updated dependencies [976dba9]
8
- - @knime/styles@1.2.1
14
+ - @knime/styles@1.3.0
9
15
 
10
16
  ## 1.2.4
11
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/utils",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
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.2.1"
13
+ "@knime/styles": "1.3.0"
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, error: Error) => void;
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)) {