@knime/hub-features 1.1.2 → 1.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @knime/hub-features
2
2
 
3
+ ## 1.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 96ce3a3: Remove file extension for .knwf files when calling the manifest endpoint to prepare an upload
8
+ - Updated dependencies [96ce3a3]
9
+ - @knime/utils@1.2.2
10
+ - @knime/components@1.12.3
11
+
3
12
  ## 1.1.2
4
13
 
5
14
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/hub-features",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Vue components & composables for shared hub features",
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)",
@@ -27,9 +27,9 @@
27
27
  "consola": "3.2.3",
28
28
  "ofetch": "^1.4.1",
29
29
  "typescript": "^5.4.5",
30
- "@knime/components": "1.12.2",
30
+ "@knime/components": "1.12.3",
31
31
  "@knime/styles": "1.1.1",
32
- "@knime/utils": "1.2.1"
32
+ "@knime/utils": "1.2.2"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "vue": "3.x"
@@ -2,7 +2,7 @@ import { computed, ref } from "vue";
2
2
  import { FetchError } from "ofetch";
3
3
 
4
4
  import { useUploadManager } from "@knime/components";
5
- import { getFileMimeType, promise } from "@knime/utils";
5
+ import { getFileMimeType, knimeFileFormats, promise } from "@knime/utils";
6
6
 
7
7
  import { $ofetch } from "../common/ofetchClient";
8
8
  import { rfcErrors } from "../rfcErrors";
@@ -107,7 +107,12 @@ export const useFileUpload = (options: UseFileUploadOptions = {}) => {
107
107
  files: Array<File>,
108
108
  ): Promise<Array<{ uploadId: string; file: File }>> => {
109
109
  const fileDictionary = Object.fromEntries(
110
- files.map((file) => [file.name, file]),
110
+ files.map((file) => {
111
+ // strip extension for workflows
112
+ const name = knimeFileFormats.KNWF.getNameOrDefault(file, file.name);
113
+
114
+ return [name, file];
115
+ }),
111
116
  );
112
117
 
113
118
  // map file dictionary to body payload of the prepare upload request