diff --git a/package.json b/package.json index aa5019e7..e4e10c6d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "skyflow-js", "preferGlobal": true, "analyze": false, - "version": "2.7.7", + "version": "2.7.7-dev.3747cd0", "author": "Skyflow", "description": "Skyflow JavaScript SDK", "homepage": "https://github.com/skyflowapi/skyflow-js", diff --git a/src/client/index.ts b/src/client/index.ts index 2f874530..7ea2d7ba 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -97,13 +97,16 @@ class Client { if (request.headers?.['content-type']?.includes(ContentType.FORMURLENCODED) || request.headers?.['content-type']?.includes(ContentType.FORMDATA)) { + console.log('Request body sent as is without stringifying since content-type is form related'); httpRequest.send(request.body); + console.log('Request body sent as is without stringifying since content-type is form related'); } else { /* Earlier we were stringifying here, but due to TS, we're stringifying at the point where we are creating the request. Since the body parameter doesn't accept JSON object. */ httpRequest.send(request.body); + console.log('Request body sent as is without stringifying since content-type is form related'); } httpRequest.onload = () => { diff --git a/src/utils/helpers/index.ts b/src/utils/helpers/index.ts index 58fa0a43..9de245d7 100644 --- a/src/utils/helpers/index.ts +++ b/src/utils/helpers/index.ts @@ -211,9 +211,9 @@ export const fileValidation = (value, required: Boolean = false, fileElement) => } } } - if (value.size > 32000000) { - throw new SkyflowError(SKYFLOW_ERROR_CODE.INVALID_FILE_SIZE, [], true); - } + // if (value.size > 32000000) { + // throw new SkyflowError(SKYFLOW_ERROR_CODE.INVALID_FILE_SIZE, [], true); + // } if (Object.prototype.hasOwnProperty.call(fileElement, 'blockEmptyFiles') && fileElement.blockEmptyFiles) { if (value.size === 0) { throw new SkyflowError(SKYFLOW_ERROR_CODE.INVALID_FILE_SIZE, [], true);