getta 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "getta",
3
3
  "description": "An isomorphic rest client based on the Fetch API.",
4
- "version": "1.0.9",
4
+ "version": "1.0.10",
5
5
  "author": "Dylan Aubrey",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/getta",
package/src/main.ts CHANGED
@@ -444,7 +444,7 @@ export class Getta {
444
444
  }
445
445
 
446
446
  private _logResponse(res: FetchResponse, endpoint: string, options: FetchOptions, context: Context) {
447
- const { data, errors, headers, status } = res;
447
+ const { headers, status } = res;
448
448
  const { method, redirects, retries } = options;
449
449
  const { startTime, ...otherContext } = context;
450
450
  const endTime = this._performance.now();
@@ -452,7 +452,6 @@ export class Getta {
452
452
 
453
453
  this._log?.(consts.RESPONSE_RECEIVED, {
454
454
  context: {
455
- body: data ? { data } : { errors: errors ?? [] },
456
455
  headers,
457
456
  method,
458
457
  redirects,