@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 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, _e;
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 = (_d = (_c = error.response) == null ? void 0 : _c.data) == null ? void 0 : _d.response;
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
- error: error.message,
329
- response: (_e = error.response) == null ? void 0 : _e.data
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, _e;
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 = (_d = (_c = error.response) == null ? void 0 : _c.data) == null ? void 0 : _d.response;
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
- error: error.message,
296
- response: (_e = error.response) == null ? void 0 : _e.data
295
+ message: error.message,
296
+ response: (_d = error.response) == null ? void 0 : _d.data
297
297
  });
298
298
  }
299
299
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-dhis2",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "DHIS2 Language Pack for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {