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/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/production.analysis.txt +12 -12
- package/dist/types/cjs/main.d.cts.map +1 -1
- package/dist/types/esm/main.d.ts.map +1 -1
- package/dist/types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/main.ts +1 -2
package/package.json
CHANGED
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 {
|
|
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,
|