@http-forge/core 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/index.js +103 -103
- package/dist/index.mjs +111 -111
- package/dist/infrastructure/script/script-executor.d.ts +8 -0
- package/dist/infrastructure/test-suite/interfaces.d.ts +1 -0
- package/dist/infrastructure/test-suite/test-suite-service.d.ts +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -217,6 +217,14 @@ const data = pm.response.json();
|
|
|
217
217
|
pm.environment.set('userId', data.id);
|
|
218
218
|
pm.environment.set('authToken', data.token);
|
|
219
219
|
|
|
220
|
+
// Store non-string values (auto-serialized)
|
|
221
|
+
pm.environment.set('userList', data.users); // Array → JSON string
|
|
222
|
+
pm.environment.set('config', { retries: 3 }); // Object → JSON string
|
|
223
|
+
|
|
224
|
+
// get() auto-deserializes back
|
|
225
|
+
const users = pm.environment.get('userList'); // → Array
|
|
226
|
+
const config = pm.environment.get('config'); // → Object
|
|
227
|
+
|
|
220
228
|
// Store cookies from response
|
|
221
229
|
if (pm.response.headers.has('Set-Cookie')) {
|
|
222
230
|
pm.cookies.set('authCookie', data.authCookie);
|