Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typedefs do not include requestLogger, responseLogger #434

Closed
xenoterracide opened this issue Oct 14, 2020 · 3 comments · Fixed by #2020
Closed

typedefs do not include requestLogger, responseLogger #434

xenoterracide opened this issue Oct 14, 2020 · 3 comments · Fixed by #2020

Comments

@xenoterracide
Copy link

the docs say there should be a requestLogger and responseLogger however , the interface does not include them.

export interface CreateClientParams {
    space: string;
    accessToken: string;
    environment?: string;
    insecure?: boolean;
    host?: string;
    basePath?: string;
    httpAgent?: any;
    httpsAgent?: any;
    proxy?: AxiosProxyConfig;
    headers?: any;
    adapter?: any;
    application?: string;
    integration?: string;
    resolveLinks?: boolean;
    removeUnresolved?: boolean;
    retryOnError?: boolean;
    logHandler?: (level: ClientLogLevel, data?: any) => void;
    timeout?: number;
    retryLimit?: number;
}
> yarn info -A contentful                                                    # services -> feature/RS2-1252-dataloader-caching $ ! ? RC=1
└─ contentful@npm:7.14.7
   ├─ Version: 7.14.7
   │
   └─ Dependencies
      ├─ axios@npm:^0.20.0 → npm:0.20.0
      ├─ contentful-resolve-response@npm:^1.2.2 → npm:1.2.2
      ├─ contentful-sdk-core@npm:^6.4.5 → npm:6.4.5
      ├─ json-stringify-safe@npm:^5.0.1 → npm:5.0.1
      └─ lodash@npm:^4.17.11 → npm:4.17.20

as a side note, I see no documentation for what logHandler ... data might contain... it is also a best practice to use unknown now if you don't know the type.

@phoebeschmidt
Copy link
Contributor

phoebeschmidt commented Oct 15, 2020

Hi @xenoterracide, thanks for bringing this to our attention. typing update PRs are always welcome :)

@quiro91
Copy link

quiro91 commented Mar 17, 2023

Is this still relevant? I was also wondering about this, I'm looking to add a global responseLogger in v10 but the type is missing from CreateClientParams

danemauland added a commit to danemauland/contentful.js that referenced this issue Sep 25, 2023
add requestLogger and responseLogger options to CreateClientParams to match
options listed in documentation and contentful-sdk-core

Closes contentful#434
marcolink pushed a commit to danemauland/contentful.js that referenced this issue Oct 11, 2023
add requestLogger and responseLogger options to CreateClientParams to match
options listed in documentation and contentful-sdk-core

Closes contentful#434
marcolink pushed a commit that referenced this issue Oct 11, 2023
add requestLogger and responseLogger options to CreateClientParams to match
options listed in documentation and contentful-sdk-core

Closes #434
@contentful-automation
Copy link
Contributor

🎉 This issue has been resolved in version 10.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants