postman-runtime 7.45.0 → 7.46.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 +14 -0
- package/README.md +37 -1
- package/dist/index.js +1 -1
- package/lib/authorizer/digest.js +26 -3
- package/lib/requester/requester.js +1 -1
- package/lib/runner/extensions/event.command.js +50 -13
- package/lib/runner/extensions/waterfall.command.js +5 -2
- package/lib/runner/index.js +23 -0
- package/lib/runner/nested-request.js +197 -0
- package/lib/runner/run.js +8 -2
- package/package.json +4 -4
package/CHANGELOG.yaml
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
7.46.0:
|
|
2
|
+
date: 2025-09-08
|
|
3
|
+
new features:
|
|
4
|
+
- >-
|
|
5
|
+
GH-1522 Add support for referencing pre-defined collection requests using
|
|
6
|
+
`pm.execution.runRequest`
|
|
7
|
+
fixed bugs:
|
|
8
|
+
- GH-1523 Fixed downloadedBytes tracking for redirected requests
|
|
9
|
+
- >-
|
|
10
|
+
GH-1524 Fixed a bug where incorrect digest auth header was getting used to
|
|
11
|
+
compute hash.
|
|
12
|
+
chores:
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
1
15
|
7.45.0:
|
|
2
16
|
date: 2025-07-30
|
|
3
17
|
new features:
|
package/README.md
CHANGED
|
@@ -161,7 +161,11 @@ runner.run(collection, {
|
|
|
161
161
|
// calls the callback with the refreshed token or an error
|
|
162
162
|
// callback(err, token)
|
|
163
163
|
},
|
|
164
|
-
}
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
// The max depth or number of requests a request can invoke via `pm.execution.runRequest`
|
|
167
|
+
// in its pre-request and post-response scripts
|
|
168
|
+
maxInvokableNestedRequests: 5
|
|
165
169
|
},
|
|
166
170
|
|
|
167
171
|
// Options specific to the script execution
|
|
@@ -171,6 +175,38 @@ runner.run(collection, {
|
|
|
171
175
|
// using the `teleport-javascript` serialization library.
|
|
172
176
|
serializeLogs: false,
|
|
173
177
|
|
|
178
|
+
// Function to resolve requests that have been referenced via `pm.execution.runRequest`
|
|
179
|
+
// Expects a full collection JSON with a single request item and pre-request + test scripts
|
|
180
|
+
// along with variables for the collection
|
|
181
|
+
requestResolver: function (requestId, callback) {
|
|
182
|
+
return callback(null, {
|
|
183
|
+
item: [{
|
|
184
|
+
name: "Sample Request From Resolver",
|
|
185
|
+
event: [
|
|
186
|
+
{
|
|
187
|
+
listen: "prerequest",
|
|
188
|
+
script: {
|
|
189
|
+
exec: [`pm.environment.set("api_url", 'postman-echo.com');`],
|
|
190
|
+
type: "text/javascript",
|
|
191
|
+
packages: {},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
request: {
|
|
196
|
+
method: "POST",
|
|
197
|
+
header: [],
|
|
198
|
+
url: {
|
|
199
|
+
raw: "https://{{api_url}}/{{api_method}}",
|
|
200
|
+
protocol: "https",
|
|
201
|
+
host: ["{{api_url}}"],
|
|
202
|
+
path: ["{{api_method}}"],
|
|
203
|
+
},
|
|
204
|
+
}
|
|
205
|
+
}],
|
|
206
|
+
variable: [{ key: 'api_method', value: 'post' }],
|
|
207
|
+
})
|
|
208
|
+
},
|
|
209
|
+
|
|
174
210
|
// Function to resolve packages that are used in the script.
|
|
175
211
|
packageResolver: function ({ packages /* sdk.Script.packages */ }, callback) {
|
|
176
212
|
return callback(null, {
|