{item}
diff --git a/packages/bruno-app/src/hooks/useOnClickOutside/index.js b/packages/bruno-app/src/hooks/useOnClickOutside/index.js
index 25cd5b426d..2dbef75f2c 100644
--- a/packages/bruno-app/src/hooks/useOnClickOutside/index.js
+++ b/packages/bruno-app/src/hooks/useOnClickOutside/index.js
@@ -5,7 +5,7 @@ const useOnClickOutside = (ref, handler) => {
useEffect(
() => {
const listener = (event) => {
- // Do nothing if clicking ref's element or descendent elements
+ // Do nothing if clicking ref's element or descendant elements
if (!ref.current || ref.current.contains(event.target)) {
return;
}
diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js b/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
index 75c6f2cb90..c9cfadcb0d 100644
--- a/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
+++ b/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
@@ -887,7 +887,7 @@ export const copyEnvironment = (name, baseEnvUid, collectionUid) => (dispatch, g
const baseEnv = findEnvironmentInCollection(collection, baseEnvUid);
if (!collection) {
- return reject(new Error('Environmnent not found'));
+ return reject(new Error('Environment not found'));
}
ipcRenderer
@@ -1096,7 +1096,7 @@ export const createCollection = (collectionName, collectionFolderName, collectio
.catch(reject);
});
};
-export const cloneCollection = (collectionName, collectionFolderName, collectionLocation, perviousPath) => () => {
+export const cloneCollection = (collectionName, collectionFolderName, collectionLocation, previousPath) => () => {
const { ipcRenderer } = window;
return ipcRenderer.invoke(
@@ -1104,7 +1104,7 @@ export const cloneCollection = (collectionName, collectionFolderName, collection
collectionName,
collectionFolderName,
collectionLocation,
- perviousPath
+ previousPath
);
};
export const openCollection = () => () => {
diff --git a/packages/bruno-app/src/utils/importers/openapi-collection.js b/packages/bruno-app/src/utils/importers/openapi-collection.js
index d579402cd3..1140ad9b83 100644
--- a/packages/bruno-app/src/utils/importers/openapi-collection.js
+++ b/packages/bruno-app/src/utils/importers/openapi-collection.js
@@ -31,7 +31,7 @@ const readFile = (files) => {
};
const ensureUrl = (url) => {
- // emoving multiple slashes after the protocol if it exists, or after the beginning of the string otherwise
+ // removing multiple slashes after the protocol if it exists, or after the beginning of the string otherwise
return url.replace(/([^:])\/{2,}/g, '$1/');
};
diff --git a/packages/bruno-cli/src/commands/run.js b/packages/bruno-cli/src/commands/run.js
index 29edf63b9c..64e6a8b330 100644
--- a/packages/bruno-cli/src/commands/run.js
+++ b/packages/bruno-cli/src/commands/run.js
@@ -285,7 +285,7 @@ const builder = async (yargs) => {
type: 'string'
})
.option('sandbox', {
- describe: 'Javscript sandbox to use; available sandboxes are "developer" (default) or "safe"',
+ describe: 'Javascript sandbox to use; available sandboxes are "developer" (default) or "safe"',
default: 'developer',
type: 'string'
})
@@ -705,7 +705,7 @@ const handler = async function (argv) {
nJumps++;
if (nJumps > 10000) {
console.error(chalk.red(`Too many jumps, possible infinite loop`));
- process.exit(constants.EXIT_STATUS.ERROR_INFINTE_LOOP);
+ process.exit(constants.EXIT_STATUS.ERROR_INFINITE_LOOP);
}
if (nextRequestName === null) {
break;
diff --git a/packages/bruno-cli/src/constants.js b/packages/bruno-cli/src/constants.js
index e7de8a6e03..cdc0d47aa7 100644
--- a/packages/bruno-cli/src/constants.js
+++ b/packages/bruno-cli/src/constants.js
@@ -10,7 +10,7 @@ const EXIT_STATUS = {
// The specified output dir does not exist
ERROR_MISSING_OUTPUT_DIR: 2,
// request chain caused an endless loop
- ERROR_INFINTE_LOOP: 3,
+ ERROR_INFINITE_LOOP: 3,
// bru was called outside of a collection root
ERROR_NOT_IN_COLLECTION: 4,
// The specified file was not found
diff --git a/packages/bruno-common/src/interpolate/index.spec.ts b/packages/bruno-common/src/interpolate/index.spec.ts
index adfdf54cd1..9dc76b7f1d 100644
--- a/packages/bruno-common/src/interpolate/index.spec.ts
+++ b/packages/bruno-common/src/interpolate/index.spec.ts
@@ -297,46 +297,46 @@ describe('interpolate - recursive', () => {
expect(result).toBe('{{recursion3}}');
});
- it('should replace repetead placeholders with 1 level of recursion with values from the object', () => {
- const inputString = '{{repetead}}';
+ it('should replace repeated placeholders with 1 level of recursion with values from the object', () => {
+ const inputString = '{{repeated}}';
const inputObject = {
- repetead: '{{repetead2}} {{repetead2}}',
- repetead2: 'repetead2'
+ repeated: '{{repeated2}} {{repeated2}}',
+ repeated2: 'repeated2'
};
const result = interpolate(inputString, inputObject);
- expect(result).toBe(new Array(2).fill('repetead2').join(' '));
+ expect(result).toBe(new Array(2).fill('repeated2').join(' '));
});
- it('should replace repetead placeholders with 2 level of recursion with values from the object', () => {
- const inputString = '{{repetead}}';
+ it('should replace repeated placeholders with 2 level of recursion with values from the object', () => {
+ const inputString = '{{repeated}}';
const inputObject = {
- repetead: '{{repetead2}} {{repetead2}}',
- repetead2: '{{repetead3}} {{repetead3}} {{repetead3}}',
- repetead3: 'repetead3'
+ repeated: '{{repeated2}} {{repeated2}}',
+ repeated2: '{{repeated3}} {{repeated3}} {{repeated3}}',
+ repeated3: 'repeated3'
};
const result = interpolate(inputString, inputObject);
- expect(result).toBe(new Array(6).fill('repetead3').join(' '));
+ expect(result).toBe(new Array(6).fill('repeated3').join(' '));
});
- it('should replace repetead placeholders with 3 level of recursion with values from the object', () => {
- const inputString = '{{repetead}}';
+ it('should replace repeated placeholders with 3 level of recursion with values from the object', () => {
+ const inputString = '{{repeated}}';
const inputObject = {
- repetead: '{{repetead2}} {{repetead2}}',
- repetead2: '{{repetead3}} {{repetead3}} {{repetead3}}',
- repetead3: '{{repetead4}} {{repetead4}} {{repetead4}} {{repetead4}}',
- repetead4: 'repetead4'
+ repeated: '{{repeated2}} {{repeated2}}',
+ repeated2: '{{repeated3}} {{repeated3}} {{repeated3}}',
+ repeated3: '{{repeated4}} {{repeated4}} {{repeated4}} {{repeated4}}',
+ repeated4: 'repeated4'
};
const result = interpolate(inputString, inputObject);
- expect(result).toBe(new Array(24).fill('repetead4').join(' '));
+ expect(result).toBe(new Array(24).fill('repeated4').join(' '));
});
- it('should replace mutiple interdependent variables in the same input string', () => {
+ it('should replace multiple interdependent variables in the same input string', () => {
const inputString = `{
"x": "{{v2}} {{v1}}"
}`;
diff --git a/packages/bruno-electron/src/cache/requestUids.js b/packages/bruno-electron/src/cache/requestUids.js
index 55f7fc2917..c6c3bfe7c7 100644
--- a/packages/bruno-electron/src/cache/requestUids.js
+++ b/packages/bruno-electron/src/cache/requestUids.js
@@ -6,7 +6,7 @@
* In the past, we used to generate unique ids based on the
* pathname of the request, but we faced problems when implementing
* functionality where the user can move the request to a different
- * location. In that case, the uid would change, and the we would
+ * location. In that case, the uid would change, and we would
* lose the request's draft state if the user has made some changes
*/
diff --git a/packages/bruno-electron/src/ipc/collection.js b/packages/bruno-electron/src/ipc/collection.js
index 8983248922..f8f4fc09b1 100644
--- a/packages/bruno-electron/src/ipc/collection.js
+++ b/packages/bruno-electron/src/ipc/collection.js
@@ -134,7 +134,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection
// write the bruno.json to new dir
await writeFile(path.join(dirPath, 'bruno.json'), cont);
- // Now copy all the files with extension name .bru along with there dir
+ // Now copy all the files with extension name .bru along with the dir
const files = searchForBruFiles(previousPath);
for (const sourceFilePath of files) {
@@ -381,12 +381,12 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection
/**
* If it is windows OS
- * And it is not WSL path (meaning its not linux running on windows using WSL)
+ * And it is not WSL path (meaning it's not linux running on windows using WSL)
* And it has sub directories
* Only then we need to use the temp dir approach to rename the folder
*
* Windows OS would sometimes throw error when renaming a folder with sub directories
- * This is a alternative approach to avoid that error
+ * This is an alternative approach to avoid that error
*/
if (isWindowsOSAndNotWSLAndItemHasSubDirectories) {
await fsExtra.copy(oldPath, tempDir);
diff --git a/packages/bruno-electron/src/store/bruno-config.js b/packages/bruno-electron/src/store/bruno-config.js
index a092e93573..8942dd8338 100644
--- a/packages/bruno-electron/src/store/bruno-config.js
+++ b/packages/bruno-electron/src/store/bruno-config.js
@@ -4,7 +4,7 @@
const config = {};
-// collectionUid is a hash based on the collection path)
+// collectionUid is a hash based on the collection path
const getBrunoConfig = (collectionUid) => {
return config[collectionUid] || {};
};
diff --git a/packages/bruno-electron/src/store/oauth2.js b/packages/bruno-electron/src/store/oauth2.js
index b0a2255b55..8a966203b6 100644
--- a/packages/bruno-electron/src/store/oauth2.js
+++ b/packages/bruno-electron/src/store/oauth2.js
@@ -46,7 +46,7 @@ class Oauth2Store {
this.store.set('oauth2', updatedOauth2Data);
}
- // Create a new oauth2 Session Id for a collection
+ // Create a new oauth2 Session ID for a collection
createNewOauth2SessionIdForCollection(collectionUid) {
let oauth2DataForCollection = this.getOauth2DataOfCollection(collectionUid);
diff --git a/packages/bruno-electron/src/store/process-env.js b/packages/bruno-electron/src/store/process-env.js
index 578d8df718..084187d2d6 100644
--- a/packages/bruno-electron/src/store/process-env.js
+++ b/packages/bruno-electron/src/store/process-env.js
@@ -11,7 +11,7 @@
const dotEnvVars = {};
-// collectionUid is a hash based on the collection path)
+// collectionUid is a hash based on the collection path
const getProcessEnvVars = (collectionUid) => {
// if there are no .env vars for this collection, return the process.env
if (!dotEnvVars[collectionUid]) {
diff --git a/packages/bruno-electron/src/utils/form-data.js b/packages/bruno-electron/src/utils/form-data.js
index f203711289..dc27b25771 100644
--- a/packages/bruno-electron/src/utils/form-data.js
+++ b/packages/bruno-electron/src/utils/form-data.js
@@ -5,7 +5,7 @@ const path = require('path');
/**
* @param {Array.