@rws-framework/client 2.1.4 → 2.1.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/client",
3
3
  "private": false,
4
- "version": "2.1.4",
4
+ "version": "2.1.5",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "docs": "typedoc --tsconfig ./tsconfig.json"
@@ -195,13 +195,14 @@ class ApiServiceInstance extends TheService {
195
195
  return `${this.config.get('backendUrl')}${this.config.get('apiPrefix') || ''}${apiPath}`;
196
196
  }
197
197
 
198
- async uploadFile(url: string, file: File, onProgress: (progress: number) => void, options: IAPIOptions = {}): Promise<UploadResponse>
198
+ async uploadFile(url: string, file: File, onProgress: (progress: number) => void, data: any = {}): Promise<UploadResponse>
199
199
  {
200
200
  return upload(
201
201
 
202
202
  url,
203
203
  {
204
204
  file,
205
+ ...data
205
206
  },
206
207
  {
207
208
  onProgress,