api-def 0.6.0-alpha11 → 0.6.0-alpha12

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/cjs/Requester.js CHANGED
@@ -220,7 +220,7 @@ var parseResponse = function (context, response, error) { return __awaiter(void
220
220
  return [4 /*yield*/, context.backend.convertResponse(context, response)];
221
221
  case 1:
222
222
  parsedResponse = _b.sent();
223
- contentType = response.headers.get("Content-Type");
223
+ contentType = response.headers["Content-Type"];
224
224
  inferredResponseType = ApiUtils_1.inferResponseType(contentType);
225
225
  if (!error) {
226
226
  // expand to array buffer once we support that in inferResponseType
package/esm/Requester.js CHANGED
@@ -216,7 +216,7 @@ var parseResponse = function (context, response, error) { return __awaiter(void
216
216
  return [4 /*yield*/, context.backend.convertResponse(context, response)];
217
217
  case 1:
218
218
  parsedResponse = _b.sent();
219
- contentType = response.headers.get("Content-Type");
219
+ contentType = response.headers["Content-Type"];
220
220
  inferredResponseType = inferResponseType(contentType);
221
221
  if (!error) {
222
222
  // expand to array buffer once we support that in inferResponseType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-def",
3
- "version": "0.6.0-alpha11",
3
+ "version": "0.6.0-alpha12",
4
4
  "description": "Typed API definitions with middleware support",
5
5
  "main": "cjs/index.js",
6
6
  "types": "esm/index.d.ts",