api-def 0.11.0-alpha.2 → 0.11.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.
@@ -154,7 +154,7 @@ var FetchRequestBackend = /** @class */ (function () {
154
154
  var bodyJsonify = body !== null && typeof body === "object" && !Utils.isFormData(body);
155
155
  var headers = Utils.assign({
156
156
  // logic from axios
157
- "Content-Type": bodyJsonify ? "application/json;charset=utf-8" : "application/x-www-form-urlencoded",
157
+ "Content-Type": bodyJsonify ? "application/json;charset=utf-8" : undefined,
158
158
  }, requestConfig.headers);
159
159
  var parsedHeaders = Object.keys(headers).reduce(function (parsedHeaders, key) {
160
160
  var value = headers[key];
@@ -89,7 +89,7 @@ export default class FetchRequestBackend {
89
89
  const bodyJsonify = body !== null && typeof body === "object" && !Utils.isFormData(body);
90
90
  const headers = Utils.assign({
91
91
  // logic from axios
92
- "Content-Type": bodyJsonify ? "application/json;charset=utf-8" : "application/x-www-form-urlencoded",
92
+ "Content-Type": bodyJsonify ? "application/json;charset=utf-8" : undefined,
93
93
  }, requestConfig.headers);
94
94
  const parsedHeaders = Object.keys(headers).reduce((parsedHeaders, key) => {
95
95
  const value = headers[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-def",
3
- "version": "0.11.0-alpha.2",
3
+ "version": "0.11.0",
4
4
  "description": "Typed API definitions with middleware support",
5
5
  "main": "cjs/index.js",
6
6
  "types": "esm/index.d.ts",