@swan-admin/swan-ai-measurements 1.0.84 → 1.0.85

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.
@@ -107,16 +107,16 @@ class FileUpload {
107
107
  partNumber: partData.partNumber,
108
108
  },
109
109
  }),
110
- // abortMultipartUpload: (file: any, { uploadId, key }: { uploadId: string | number; key: string | number }) =>
111
- // fetchData({
112
- // path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
113
- // apiKey: this.#accessKey,
114
- // body: {
115
- // uploadId,
116
- // objectKey: key,
117
- // originalFileName: file.name,
118
- // },
119
- // }),
110
+ abortMultipartUpload: (file, { uploadId, key }) =>
111
+ fetchData({
112
+ path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
113
+ apiKey: __classPrivateFieldGet(this, _FileUpload_accessKey, "f"),
114
+ body: {
115
+ uploadId,
116
+ objectKey: key,
117
+ originalFileName: file.name,
118
+ },
119
+ }),
120
120
  });
121
121
  __classPrivateFieldGet(this, _FileUpload_uppyIns, "f").addFile({
122
122
  source: "manual",
@@ -57,16 +57,15 @@ class FileUpload {
57
57
  partNumber: partData.partNumber,
58
58
  },
59
59
  }),
60
- // abortMultipartUpload: (file: any, { uploadId, key }: { uploadId: string | number; key: string | number }) =>
61
- // fetchData({
62
- // path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
63
- // apiKey: this.#accessKey,
64
- // body: {
65
- // uploadId,
66
- // objectKey: key,
67
- // originalFileName: file.name,
68
- // },
69
- // }),
60
+ abortMultipartUpload: (file, { uploadId, key }) => (0, utils_js_1.fetchData)({
61
+ path: constants_js_1.UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
62
+ apiKey: this.#accessKey,
63
+ body: {
64
+ uploadId,
65
+ objectKey: key,
66
+ originalFileName: file.name,
67
+ },
68
+ }),
70
69
  });
71
70
  this.#uppyIns.addFile({
72
71
  source: "manual",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-admin/swan-ai-measurements",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "provides ai measurement suggestion",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/fileUpload.ts CHANGED
@@ -80,16 +80,16 @@ export default class FileUpload {
80
80
  },
81
81
  }),
82
82
 
83
- // abortMultipartUpload: (file: any, { uploadId, key }: { uploadId: string | number; key: string | number }) =>
84
- // fetchData({
85
- // path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
86
- // apiKey: this.#accessKey,
87
- // body: {
88
- // uploadId,
89
- // objectKey: key,
90
- // originalFileName: file.name,
91
- // },
92
- // }),
83
+ abortMultipartUpload: (file: any, { uploadId, key }: { uploadId: string | number; key: string | number }) =>
84
+ fetchData({
85
+ path: UPPY_FILE_UPLOAD_ENDPOINT.UPLOAD_ABORT,
86
+ apiKey: this.#accessKey,
87
+ body: {
88
+ uploadId,
89
+ objectKey: key,
90
+ originalFileName: file.name,
91
+ },
92
+ }),
93
93
  });
94
94
 
95
95
  this.#uppyIns.addFile({