Feat/electron bump (#2668)

* pr review changes

* collection root object in export json

* import environment updates

* tests run execution order fix for collection runs

* updated validations

* accept request flag in curl string for method type

* electron version bump to v31.2.1
This commit is contained in:
lohit 2024-07-19 16:29:10 +05:30 committed by GitHub
parent 7194998b0e
commit 9892f7cd40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 7 deletions

View File

@ -119,15 +119,16 @@ const parseCurlCommand = (curlCommand) => {
cookies = cookie.parse(cookieString.replace(/^Cookie: /gi, ''), cookieParseOptions);
}
let method;
if (parsedArguments.X === 'POST') {
let parsedMethodArgument = parsedArguments.X || parsedArguments.request || parsedArguments.T;
if (parsedMethodArgument === 'POST') {
method = 'post';
} else if (parsedArguments.X === 'PUT' || parsedArguments.T) {
} else if (parsedMethodArgument === 'PUT') {
method = 'put';
} else if (parsedArguments.X === 'PATCH') {
} else if (parsedMethodArgument === 'PATCH') {
method = 'patch';
} else if (parsedArguments.X === 'DELETE') {
} else if (parsedMethodArgument === 'DELETE') {
method = 'delete';
} else if (parsedArguments.X === 'OPTIONS') {
} else if (parsedMethodArgument === 'OPTIONS') {
method = 'options';
} else if (
(parsedArguments.d ||

View File

@ -3,7 +3,7 @@ require('dotenv').config({ path: process.env.DOTENV_PATH });
const config = {
appId: 'com.usebruno.app',
productName: 'Bruno',
electronVersion: '21.1.1',
electronVersion: '31.2.1',
directories: {
buildResources: 'resources',
output: 'out'

View File

@ -61,7 +61,7 @@
"dmg-license": "^1.0.11"
},
"devDependencies": {
"electron": "21.1.1",
"electron": "31.2.1",
"electron-builder": "23.0.2",
"electron-icon-maker": "^0.0.5"
}