@openfn/language-dhis2 4.0.1 → 4.0.2
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/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -314,19 +314,19 @@ import_axios3.default.interceptors.response.use(
|
|
|
314
314
|
return response;
|
|
315
315
|
},
|
|
316
316
|
function(error) {
|
|
317
|
-
var _a, _b, _c, _d
|
|
317
|
+
var _a, _b, _c, _d;
|
|
318
318
|
if ((_a = error.config) == null ? void 0 : _a.auth)
|
|
319
319
|
error.config.auth = "--REDACTED--";
|
|
320
320
|
if ((_b = error.config) == null ? void 0 : _b.data)
|
|
321
321
|
error.config.data = "--REDACTED--";
|
|
322
|
-
const details = (
|
|
322
|
+
const details = (_c = error.response) == null ? void 0 : _c.data;
|
|
323
323
|
Log.error(error.message || "That didn't work.");
|
|
324
324
|
if (details)
|
|
325
325
|
console.log(JSON.stringify(details, null, 2));
|
|
326
326
|
return Promise.reject({
|
|
327
327
|
request: error.config,
|
|
328
|
-
|
|
329
|
-
response: (
|
|
328
|
+
message: error.message,
|
|
329
|
+
response: (_d = error.response) == null ? void 0 : _d.data
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
);
|
package/dist/index.js
CHANGED
|
@@ -281,19 +281,19 @@ axios3.interceptors.response.use(
|
|
|
281
281
|
return response;
|
|
282
282
|
},
|
|
283
283
|
function(error) {
|
|
284
|
-
var _a, _b, _c, _d
|
|
284
|
+
var _a, _b, _c, _d;
|
|
285
285
|
if ((_a = error.config) == null ? void 0 : _a.auth)
|
|
286
286
|
error.config.auth = "--REDACTED--";
|
|
287
287
|
if ((_b = error.config) == null ? void 0 : _b.data)
|
|
288
288
|
error.config.data = "--REDACTED--";
|
|
289
|
-
const details = (
|
|
289
|
+
const details = (_c = error.response) == null ? void 0 : _c.data;
|
|
290
290
|
Log.error(error.message || "That didn't work.");
|
|
291
291
|
if (details)
|
|
292
292
|
console.log(JSON.stringify(details, null, 2));
|
|
293
293
|
return Promise.reject({
|
|
294
294
|
request: error.config,
|
|
295
|
-
|
|
296
|
-
response: (
|
|
295
|
+
message: error.message,
|
|
296
|
+
response: (_d = error.response) == null ? void 0 : _d.data
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
);
|