@manta-eu/horns-server/shared
Reference for @manta-eu/horns-server/shared in @manta-eu/horns-server 0.2.3.
Variables
signedInParam
constsignedInParam:"signed_in"="signed_in"
The query parameter agents sets on the way back from a sign-in. Read by the worker and by the browser.
Functions
onlyDiagnosticExtra()
onlyDiagnosticExtra(
extra):ErrorEvent
Parameters
extra
ErrorEvent
Returns
ErrorEvent
readNdjson()
readNdjson(
response,onLine?):Promise<Record<string,unknown> |undefined>
Reads what ndjsonResponse wrote: one JSON object per line, the last of which is the result. onLine sees
each as it arrives, which is what makes a minute-long turn show its work rather than a spinner.
Parameters
response
Response
onLine?
(line) => void
Returns
Promise<Record<string, unknown> | undefined>
redactedUrl()
redactedUrl(
value):string
Parameters
value
string
Returns
string
redactShareTokens()
redactShareTokens(
value):string
Parameters
value
string
Returns
string
withoutPiiErrorEvent()
withoutPiiErrorEvent(
event):ErrorEvent
Parameters
event
ErrorEvent
Returns
ErrorEvent