-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: captcha support on sdk plugins #674
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 85e29e6. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
d2cfa73
to
d5a9fe6
Compare
d5a9fe6
to
d5e5647
Compare
78a66b2
to
a94bd88
Compare
a94bd88
to
5092f65
Compare
14d33f7
to
f6f74f1
Compare
f6f74f1
to
fb6c2a9
Compare
58fa7e6
to
578e911
Compare
578e911
to
85e29e6
Compare
@@ -1,12 +1,12 @@ | |||
import {EmptyResponseError, ResponseTimeoutError} from '../../fwk/errors'; | |||
import {TimeoutFetch} from './timeout.fetch'; | |||
import {TimeoutFetch, TimeoutStatus} from './timeout.fetch'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't TimeoutStatus
a type?
/** | ||
* Factory to generate a {@see TimeoutPauseEventHandler} depending on various configurations | ||
*/ | ||
export type TimeoutPauseEventHandlerFactory<T> = (config?: Partial<T>) => TimeoutPauseEventHandler; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add a constraint on T
as T extends Record<string, any>
Proposed change
Stop and restart the timeout fetch plugin in case a specific event interrumpts the fetch request.
Add event emitter to pause the timeout if an imperva captcha has been detected.