postman-runtime 7.30.1 → 7.31.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 +10 -0
- package/README.md +15 -0
- package/dist/index.js +1 -1
- package/lib/authorizer/auth-interface.js +23 -2
- package/lib/authorizer/index.js +2 -1
- package/lib/authorizer/jwt.js +251 -0
- package/lib/authorizer/oauth2.js +13 -1
- package/lib/requester/browser/request.js +2 -1
- package/lib/requester/request-wrapper.js +4 -1
- package/lib/requester/requester.js +28 -1
- package/lib/requester/sse-processor.js +129 -0
- package/lib/runner/extensions/http-request.command.js +5 -1
- package/lib/runner/extract-runnable-items.js +41 -16
- package/lib/runner/index.js +3 -1
- package/lib/runner/request-helpers-presend.js +14 -8
- package/package.json +7 -4
package/CHANGELOG.yaml
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
7.31.0:
|
|
2
|
+
date: 2023-02-08
|
|
3
|
+
new features:
|
|
4
|
+
- GH-1252 Added support for JWT authentication
|
|
5
|
+
- GH-1260 Throw error when an invalid `entrypoint` is provided
|
|
6
|
+
- GH-1261 Added support for refreshing OAuth tokens
|
|
7
|
+
- GH-1264 Added support for Server-Sent Events
|
|
8
|
+
chores:
|
|
9
|
+
- Dropped support for Node.js < v12
|
|
10
|
+
|
|
1
11
|
7.30.1:
|
|
2
12
|
date: 2023-01-25
|
|
3
13
|
chores:
|
package/README.md
CHANGED
|
@@ -143,6 +143,15 @@ runner.run(collection, {
|
|
|
143
143
|
agentOptions: { keepAlive: true, timeout: 399 }
|
|
144
144
|
},
|
|
145
145
|
https: new https.Agent({ keepAlive: true })
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
// authorizer related options
|
|
149
|
+
authorizer: {
|
|
150
|
+
// helper to refresh oauth2 tokens during execution
|
|
151
|
+
refreshOAuth2Token: function (id, callback) {
|
|
152
|
+
// calls the callback with the refreshed token or an error
|
|
153
|
+
// callback(err, token)
|
|
154
|
+
},
|
|
146
155
|
}
|
|
147
156
|
},
|
|
148
157
|
|
|
@@ -352,6 +361,12 @@ runner.run(collection, { /* options */ }, function(err, run) {
|
|
|
352
361
|
// request: sdk.request
|
|
353
362
|
},
|
|
354
363
|
|
|
364
|
+
// Called every time a complete server-sent event is received
|
|
365
|
+
responseData: function (cursor, data) {
|
|
366
|
+
// cursor - Same as arguments for "start"
|
|
367
|
+
// data - Event buffer.
|
|
368
|
+
},
|
|
369
|
+
|
|
355
370
|
// Called once with response for each request in a collection
|
|
356
371
|
response: function (err, cursor, response, request, item, cookies, history) {
|
|
357
372
|
// err, cursor: Same as arguments for "start"
|