postman-runtime 7.30.1 → 7.31.1

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 CHANGED
@@ -1,3 +1,18 @@
1
+ 7.31.1:
2
+ date: 2023-02-22
3
+ chores:
4
+ - Updated dependencies
5
+
6
+ 7.31.0:
7
+ date: 2023-02-08
8
+ new features:
9
+ - GH-1252 Added support for JWT authentication
10
+ - GH-1260 Throw error when an invalid `entrypoint` is provided
11
+ - GH-1261 Added support for refreshing OAuth tokens
12
+ - GH-1264 Added support for Server-Sent Events
13
+ chores:
14
+ - Dropped support for Node.js < v12
15
+
1
16
  7.30.1:
2
17
  date: 2023-01-25
3
18
  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"