chore(#673): remove obsolete mustache.js library (#674)

Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
This commit is contained in:
Jonathan Gruber
2024-09-04 20:54:09 +02:00
committed by GitHub
parent a10e6ee858
commit bcc8811f65
5 changed files with 3 additions and 19 deletions

View File

@@ -1,12 +1,6 @@
const _ = require('lodash');
const Mustache = require('mustache');
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) => {
try {
const json = _collectionBruToJson(bru);
@@ -95,7 +89,7 @@ const getEnvVars = (environment = {}) => {
const envVars = {};
_.each(variables, (variable) => {
if (variable.enabled) {
envVars[variable.name] = Mustache.escape(variable.value);
envVars[variable.name] = variable.value;
}
});