diff --git a/package-lock.json b/package-lock.json index bd7f4911c..a1bf6956a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20025,7 +20025,7 @@ "lodash": "^4.17.21", "mustache": "^4.2.0", "qs": "^6.11.0", - "socks-proxy-agent": "*", + "socks-proxy-agent": "^8.0.2", "yargs": "^17.6.2" }, "dependencies": { diff --git a/packages/bruno-app/src/components/Sidebar/NewRequest/index.js b/packages/bruno-app/src/components/Sidebar/NewRequest/index.js index 79da8c773..8a9604b8a 100644 --- a/packages/bruno-app/src/components/Sidebar/NewRequest/index.js +++ b/packages/bruno-app/src/components/Sidebar/NewRequest/index.js @@ -29,10 +29,10 @@ const NewRequest = ({ collection, item, isEphemeral, onClose }) => { .required('name is required') .test({ name: 'requestName', - message: 'The request name "index" is reserved in bruno', + message: `The request names - collection and folder is reserved in bruno`, test: (value) => { - const regex = /(\s|^)\W*index\W*(\s|$)/i; - return value && !regex.test(value); + const trimmedValue = value.trim().toLowerCase(); + return !['collection', 'folder'].includes(trimmedValue); } }) }),