mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
feat: support object and array interpolation in bruno-common interpolate fn (#4519)
--------- Co-authored-by: Pooja Belaramani <pooja@usebruno.com> Co-authored-by: lohit jiddimani <lohitjiddimani@lohits-MacBook-Air.local> Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
This commit is contained in:
@@ -6,10 +6,7 @@
|
||||
* LICENSE file at https://github.com/graphql/codemirror-graphql/tree/v0.8.3
|
||||
*/
|
||||
|
||||
// Todo: Fix this
|
||||
// import { interpolate } from '@usebruno/common';
|
||||
import brunoCommon from '@usebruno/common';
|
||||
const { interpolate } = brunoCommon;
|
||||
import { interpolate } from '@usebruno/common';
|
||||
|
||||
let CodeMirror;
|
||||
const SERVER_RENDERED = typeof window === 'undefined' || global['PREVENT_CODEMIRROR_RENDER'] === true;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import {cloneDeep, isEqual, sortBy, filter, map, isString, findIndex, find, each, get } from 'lodash';
|
||||
import { uuid } from 'utils/common';
|
||||
import path from 'utils/common/path';
|
||||
import brunoCommon from '@usebruno/common';
|
||||
const { interpolate } = brunoCommon;
|
||||
|
||||
const replaceTabsWithSpaces = (str, numSpaces = 2) => {
|
||||
if (!str || !str.length || !isString(str)) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import * as FileSaver from 'file-saver';
|
||||
import brunoConverters from '@usebruno/converters';
|
||||
const { brunoToPostman } = brunoConverters;
|
||||
import { brunoToPostman } from '@usebruno/converters';
|
||||
|
||||
export const exportCollection = (collection) => {
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import jsyaml from 'js-yaml';
|
||||
import fileDialog from 'file-dialog';
|
||||
import { BrunoError } from 'utils/common/error';
|
||||
import brunoConverters from '@usebruno/converters';
|
||||
const { insomniaToBruno } = brunoConverters;
|
||||
import { insomniaToBruno } from '@usebruno/converters';
|
||||
|
||||
const readFile = (files) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import jsyaml from 'js-yaml';
|
||||
import fileDialog from 'file-dialog';
|
||||
import { BrunoError } from 'utils/common/error';
|
||||
import brunoConverters from '@usebruno/converters';
|
||||
const { openApiToBruno } = brunoConverters;
|
||||
import { openApiToBruno } from '@usebruno/converters';
|
||||
|
||||
const readFile = (files) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import fileDialog from 'file-dialog';
|
||||
import { BrunoError } from 'utils/common/error';
|
||||
import brunoConverters from '@usebruno/converters';
|
||||
import { postmanToBruno } from '@usebruno/converters';
|
||||
import { safeParseJSON } from 'utils/common/index';
|
||||
const { postmanToBruno } = brunoConverters;
|
||||
|
||||
const readFile = (files) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import fileDialog from 'file-dialog';
|
||||
import { BrunoError } from 'utils/common/error';
|
||||
import brunoConverters from '@usebruno/converters';
|
||||
const { postmanToBrunoEnvironment } = brunoConverters;
|
||||
import { postmanToBrunoEnvironment } from '@usebruno/converters';
|
||||
|
||||
const readFile = (files) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import isEmpty from 'lodash/isEmpty';
|
||||
import trim from 'lodash/trim';
|
||||
import each from 'lodash/each';
|
||||
import filter from 'lodash/filter';
|
||||
import find from 'lodash/find';
|
||||
|
||||
import brunoCommon from '@usebruno/common';
|
||||
const { interpolate } = brunoCommon;
|
||||
import { interpolate } from '@usebruno/common';
|
||||
|
||||
const hasLength = (str) => {
|
||||
if (!str || !str.length) {
|
||||
|
||||
Reference in New Issue
Block a user