mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-28 02:43:08 +01:00
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
This commit is contained in:
parent
a10e6ee858
commit
bcc8811f65
4
package-lock.json
generated
4
package-lock.json
generated
@ -18567,7 +18567,6 @@
|
|||||||
"inquirer": "^9.1.4",
|
"inquirer": "^9.1.4",
|
||||||
"json-bigint": "^1.0.0",
|
"json-bigint": "^1.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mustache": "^4.2.0",
|
|
||||||
"qs": "^6.11.0",
|
"qs": "^6.11.0",
|
||||||
"socks-proxy-agent": "^8.0.2",
|
"socks-proxy-agent": "^8.0.2",
|
||||||
"vm2": "^3.9.13",
|
"vm2": "^3.9.13",
|
||||||
@ -18622,7 +18621,7 @@
|
|||||||
},
|
},
|
||||||
"packages/bruno-electron": {
|
"packages/bruno-electron": {
|
||||||
"name": "bruno",
|
"name": "bruno",
|
||||||
"version": "v1.27.0",
|
"version": "v1.28.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/credential-providers": "3.525.0",
|
"@aws-sdk/credential-providers": "3.525.0",
|
||||||
"@usebruno/common": "0.1.0",
|
"@usebruno/common": "0.1.0",
|
||||||
@ -18653,7 +18652,6 @@
|
|||||||
"json-bigint": "^1.0.0",
|
"json-bigint": "^1.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mime-types": "^2.1.35",
|
"mime-types": "^2.1.35",
|
||||||
"mustache": "^4.2.0",
|
|
||||||
"nanoid": "3.3.4",
|
"nanoid": "3.3.4",
|
||||||
"qs": "^6.11.0",
|
"qs": "^6.11.0",
|
||||||
"socks-proxy-agent": "^8.0.2",
|
"socks-proxy-agent": "^8.0.2",
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
"inquirer": "^9.1.4",
|
"inquirer": "^9.1.4",
|
||||||
"json-bigint": "^1.0.0",
|
"json-bigint": "^1.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mustache": "^4.2.0",
|
|
||||||
"qs": "^6.11.0",
|
"qs": "^6.11.0",
|
||||||
"socks-proxy-agent": "^8.0.2",
|
"socks-proxy-agent": "^8.0.2",
|
||||||
"vm2": "^3.9.13",
|
"vm2": "^3.9.13",
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const Mustache = require('mustache');
|
|
||||||
const { bruToEnvJsonV2, bruToJsonV2, collectionBruToJson: _collectionBruToJson } = require('@usebruno/lang');
|
const { bruToEnvJsonV2, bruToJsonV2, collectionBruToJson: _collectionBruToJson } = require('@usebruno/lang');
|
||||||
|
|
||||||
// override the default escape function to prevent escaping
|
|
||||||
Mustache.escape = function (value) {
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
|
|
||||||
const collectionBruToJson = (bru) => {
|
const collectionBruToJson = (bru) => {
|
||||||
try {
|
try {
|
||||||
const json = _collectionBruToJson(bru);
|
const json = _collectionBruToJson(bru);
|
||||||
@ -95,7 +89,7 @@ const getEnvVars = (environment = {}) => {
|
|||||||
const envVars = {};
|
const envVars = {};
|
||||||
_.each(variables, (variable) => {
|
_.each(variables, (variable) => {
|
||||||
if (variable.enabled) {
|
if (variable.enabled) {
|
||||||
envVars[variable.name] = Mustache.escape(variable.value);
|
envVars[variable.name] = variable.value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -51,7 +51,6 @@
|
|||||||
"json-bigint": "^1.0.0",
|
"json-bigint": "^1.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mime-types": "^2.1.35",
|
"mime-types": "^2.1.35",
|
||||||
"mustache": "^4.2.0",
|
|
||||||
"nanoid": "3.3.4",
|
"nanoid": "3.3.4",
|
||||||
"qs": "^6.11.0",
|
"qs": "^6.11.0",
|
||||||
"socks-proxy-agent": "^8.0.2",
|
"socks-proxy-agent": "^8.0.2",
|
||||||
|
@ -6,7 +6,6 @@ const tls = require('tls');
|
|||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const decomment = require('decomment');
|
const decomment = require('decomment');
|
||||||
const Mustache = require('mustache');
|
|
||||||
const contentDispositionParser = require('content-disposition');
|
const contentDispositionParser = require('content-disposition');
|
||||||
const mime = require('mime-types');
|
const mime = require('mime-types');
|
||||||
const { ipcMain } = require('electron');
|
const { ipcMain } = require('electron');
|
||||||
@ -39,11 +38,6 @@ const {
|
|||||||
const Oauth2Store = require('../../store/oauth2');
|
const Oauth2Store = require('../../store/oauth2');
|
||||||
const iconv = require('iconv-lite');
|
const iconv = require('iconv-lite');
|
||||||
|
|
||||||
// override the default escape function to prevent escaping
|
|
||||||
Mustache.escape = function (value) {
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
|
|
||||||
const safeStringifyJSON = (data) => {
|
const safeStringifyJSON = (data) => {
|
||||||
try {
|
try {
|
||||||
return JSON.stringify(data);
|
return JSON.stringify(data);
|
||||||
@ -71,7 +65,7 @@ const getEnvVars = (environment = {}) => {
|
|||||||
const envVars = {};
|
const envVars = {};
|
||||||
each(variables, (variable) => {
|
each(variables, (variable) => {
|
||||||
if (variable.enabled) {
|
if (variable.enabled) {
|
||||||
envVars[variable.name] = Mustache.escape(variable.value);
|
envVars[variable.name] = variable.value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user