Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: scrollbar appearing on digest auth input fields and other improvements (#4492)
Anwarul Islam1236e6b71985
diff --git a/packages/hoppscotch-cli/src/utils/request.ts b/packages/hoppscotch-cli/src/utils/request.tsindex ab38f983d..97bd02041 100644--- a/packages/hoppscotch-cli/src/utils/request.ts+++ b/packages/hoppscotch-cli/src/utils/request.ts@@ -240,7 +240,6 @@ export const processRequest =// Updating report for errors & current resultreport.errors.push(preRequestRes.left);- console.error(`Report result is `, report.result);report.result = report.result;} else {// Updating effective-request and consuming updated envs after pre-request script executiondiff --git a/packages/hoppscotch-common/src/components/http/Authorization.vue b/packages/hoppscotch-common/src/components/http/Authorization.vueindex c18f280a8..f09557b5a 100644--- a/packages/hoppscotch-common/src/components/http/Authorization.vue+++ b/packages/hoppscotch-common/src/components/http/Authorization.vue@@ -272,8 +272,6 @@ const selectDigestAuthType = () => {algorithm = "MD5",} = auth.value as HoppRESTAuthDigest- console.error(`Auth is `, auth.value)-auth.value = {...auth.value,authType: "digest",diff --git a/packages/hoppscotch-common/src/components/http/authorization/Digest.vue b/packages/hoppscotch-common/src/components/http/authorization/Digest.vueindex 18770f8d8..1f29843e0 100644--- a/packages/hoppscotch-common/src/components/http/authorization/Digest.vue+++ b/packages/hoppscotch-common/src/components/http/authorization/Digest.vue@@ -36,8 +36,7 @@:auto-complete-env="true":placeholder="`${t('authorization.digest.realm'- )} (e.g. [email protected])- `"+ )} (e.g. [email protected])`":envs="envs"/></div>@@ -98,8 +97,7 @@<SmartEnvInputv-model="auth.qop":auto-complete-env="true"- :placeholder="`${t('authorization.digest.qop')} (e.g. auth-int)- `"+ :placeholder="`${t('authorization.digest.qop')} (e.g. auth-int)`":envs="envs"/></div>@@ -108,8 +106,7 @@<SmartEnvInputv-model="auth.nc":auto-complete-env="true"- :placeholder="`${t('authorization.digest.nonce_count')} (e.g. 00000001)- `"+ :placeholder="`${t('authorization.digest.nonce_count')} (e.g. 00000001)`":envs="envs"/></div>@@ -118,8 +115,7 @@<SmartEnvInputv-model="auth.cnonce":auto-complete-env="true"- :placeholder="`${t('authorization.digest.client_nonce')} (e.g. Oa4f113b)- `"+ :placeholder="`${t('authorization.digest.client_nonce')} (e.g. Oa4f113b)`":envs="envs"/></div>diff --git a/packages/hoppscotch-common/src/services/inspection/inspectors/authorization.inspector.ts b/packages/hoppscotch-common/src/services/inspection/inspectors/authorization.inspector.tsindex 43a801606..4a9818abb 100644--- a/packages/hoppscotch-common/src/services/inspection/inspectors/authorization.inspector.ts+++ b/packages/hoppscotch-common/src/services/inspection/inspectors/authorization.inspector.ts@@ -6,6 +6,7 @@ import { Service } from "dioc"import { computed, markRaw, Ref } from "vue"import { getI18n } from "~/modules/i18n"+import { platform } from "~/platform"import { AgentInterceptorService } from "~/platform/std/interceptors/agent"import { InterceptorService } from "~/services/interceptor.service"import { RESTTabService } from "~/services/tab/rest"@@ -74,9 +75,12 @@ export class AuthorizationInspectorServiceconst results: InspectorResult[] = []// `Agent` interceptor is recommended while using Digest Auth+ // TODO: Better check to detect the platform+ // Interceptor check only applies to the browser platformconst isUnsupportedInterceptor =+ platform.interceptors.default === "browser" &&this.interceptorService.currentInterceptorID.value !==- this.agentService.interceptorID+ this.agentService.interceptorIDconst resolvedAuthType = this.resolveAuthType(auth)