postman-runtime 7.52.0-beta.3 → 7.52.0
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/CHANGELOG.yaml +3 -2
- package/README.md +5 -5
- package/dist/index.js +1 -1
- package/lib/runner/extensions/event.command.js +9 -9
- package/lib/runner/extensions/item.command.js +180 -112
- package/lib/runner/index.js +5 -5
- package/lib/runner/resolve-secrets.js +18 -11
- package/lib/runner/util.js +83 -45
- package/package.json +3 -3
package/CHANGELOG.yaml
CHANGED
package/README.md
CHANGED
|
@@ -55,13 +55,13 @@ runner.run(collection, {
|
|
|
55
55
|
localVariables: new sdk.VariableScope(),
|
|
56
56
|
|
|
57
57
|
// Function to resolve secret variables (variables with secret: true) before request execution.
|
|
58
|
-
// Receives { secrets,
|
|
58
|
+
// Receives { secrets, url }; url is request URL without query params. Callback(err, result).
|
|
59
59
|
// On fatal error: callback(err) — execution stops. On success: callback(null, result) where result
|
|
60
|
-
// is Array<{ resolvedValue?, error?,
|
|
61
|
-
//
|
|
62
|
-
secretResolver: function ({ secrets,
|
|
60
|
+
// is Array<{ resolvedValue?, error?, allowedInScript? }>; result[i] maps to secrets[i].
|
|
61
|
+
// allowedInScript: true exposes value to scripts; false/undefined masks it from pm.environment/pm.variables.
|
|
62
|
+
secretResolver: function ({ secrets, url }, callback) {
|
|
63
63
|
callback(null, secrets.map(function (s) {
|
|
64
|
-
return { resolvedValue: 'resolved-string', error: undefined,
|
|
64
|
+
return { resolvedValue: 'resolved-string', error: undefined, allowedInScript: true };
|
|
65
65
|
}));
|
|
66
66
|
},
|
|
67
67
|
|