cloudmr-ux 4.1.5 → 4.1.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.
@@ -283,6 +283,7 @@ var ALLOWED_EXTENSIONS = [
283
283
  "png",
284
284
  "jpg",
285
285
  "jpeg",
286
+ "zip"
286
287
  ];
287
288
  var createPayload = function (uploadToken, file, fileAlias) { return __awaiter(void 0, void 0, void 0, function () {
288
289
  var fileExtension, lowerExt, fileType, isSafe, lambdaFile, UploadHeaders, endpoints;
@@ -96,7 +96,8 @@ export var uploadJob = createAsyncThunk('UploadJob', function (_a, thunkAPI) {
96
96
  switch (_a.label) {
97
97
  case 0:
98
98
  _a.trys.push([0, 2, , 7]);
99
- return [4 /*yield*/, AuthenticatedHttpClient.put(partUrl, part, {
99
+ return [4 /*yield*/, axios.put(partUrl, part, {
100
+ // const response = await AuthenticatedHttpClient.put(partUrl, part, {
100
101
  headers: {
101
102
  'Content-Type': ""
102
103
  },
@@ -232,7 +233,8 @@ var createPayload = function (uploadToken, file, fileAlias) { return __awaiter(v
232
233
  case 2:
233
234
  UploadHeaders = {
234
235
  headers: {
235
- 'Content-Type': 'application/json'
236
+ 'Content-Type': 'application/json',
237
+ 'X-Api-Key': uploadToken
236
238
  }
237
239
  };
238
240
  return [2 /*return*/, { destination: endpoints.JOB_UPLOAD_INIT, lambdaFile: lambdaFile, file: file, config: UploadHeaders }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "4.1.5",
3
+ "version": "4.1.7",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",