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
:sparkles: Added pw.env.set() for storing environment variables
liyasthomasc2519bdb7dc8
diff --git a/functions/preRequest.js b/functions/preRequest.jsindex eed6fd828..aa608d01c 100644--- a/functions/preRequest.js+++ b/functions/preRequest.js@@ -7,6 +7,9 @@ export default function getEnvironmentVariablesFromScript(script) {environment: {set: (key, value) => _variables[key] = value,},+ env: {+ set: (key, value) => _variables[key] = value,+ },// globals that the script is allowed to have access to.};