api-def 0.12.0-alpha.14 → 0.12.0-alpha.15
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/ApiTypes.d.ts
CHANGED
|
@@ -176,6 +176,9 @@ var FetchRequestBackend = /** @class */ (function () {
|
|
|
176
176
|
if ("credentials" in Request.prototype) {
|
|
177
177
|
fetchOptions.credentials = context.requestConfig.credentials ? "include" : undefined;
|
|
178
178
|
}
|
|
179
|
+
if (requestConfig.debug) {
|
|
180
|
+
console.log("[api-def] Fetching '".concat(url.href, "' with options"), JSON.stringify(fetchOptions, null, 2));
|
|
181
|
+
}
|
|
179
182
|
var promise = this.fetch(url.href, fetchOptions).then(function (response) {
|
|
180
183
|
responded = true;
|
|
181
184
|
if (!response.ok) {
|
package/esm/ApiTypes.d.ts
CHANGED
|
@@ -111,6 +111,9 @@ export default class FetchRequestBackend {
|
|
|
111
111
|
if ("credentials" in Request.prototype) {
|
|
112
112
|
fetchOptions.credentials = context.requestConfig.credentials ? "include" : undefined;
|
|
113
113
|
}
|
|
114
|
+
if (requestConfig.debug) {
|
|
115
|
+
console.log(`[api-def] Fetching '${url.href}' with options`, JSON.stringify(fetchOptions, null, 2));
|
|
116
|
+
}
|
|
114
117
|
const promise = this.fetch(url.href, fetchOptions).then((response) => {
|
|
115
118
|
responded = true;
|
|
116
119
|
if (!response.ok) {
|