oas 18.4.3 → 18.4.4

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.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## <small>18.4.4 (2022-08-23)</small>
2
+
3
+ * fix: bug in `getHeaders` where it wouldn't return `Authorization` if security was oauth2 (#680) ([9b49bec](https://github.com/readmeio/oas/commit/9b49bec)), closes [#680](https://github.com/readmeio/oas/issues/680)
4
+
5
+
6
+
1
7
  ## <small>18.4.3 (2022-08-22)</small>
2
8
 
3
9
  * fix: how we're importing `oas-normalize` ([071e282](https://github.com/readmeio/oas/commit/071e282))
package/dist/operation.js CHANGED
@@ -244,7 +244,7 @@ var Operation = /** @class */ (function () {
244
244
  return h.name;
245
245
  });
246
246
  }
247
- if (security.Bearer || security.Basic) {
247
+ if (security.Bearer || security.Basic || security.OAuth2) {
248
248
  this.headers.request.push('Authorization');
249
249
  }
250
250
  if (security.Cookie) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oas",
3
- "version": "18.4.3",
3
+ "version": "18.4.4",
4
4
  "description": "Working with OpenAPI definitions is hard. This makes it easier.",
5
5
  "license": "MIT",
6
6
  "author": "ReadMe <support@readme.io> (https://readme.com)",
package/src/operation.ts CHANGED
@@ -260,7 +260,7 @@ export default class Operation {
260
260
  });
261
261
  }
262
262
 
263
- if (security.Bearer || security.Basic) {
263
+ if (security.Bearer || security.Basic || security.OAuth2) {
264
264
  this.headers.request.push('Authorization');
265
265
  }
266
266