release: WRNexusJS 0.4.0
This commit is contained in:
@@ -13,7 +13,10 @@ export function normalizeSelections(values: unknown): string {
|
||||
return [...new Set(values.map((value) => String(value).trim()).filter(Boolean))].sort().join(",");
|
||||
}
|
||||
|
||||
export function normalizedSubmittedAnswer(record: CaptchaChallengeRecord, input: VerifyCaptchaInput): string {
|
||||
export function normalizedSubmittedAnswer(
|
||||
record: CaptchaChallengeRecord,
|
||||
input: VerifyCaptchaInput,
|
||||
): string {
|
||||
if (record.answerKind === "selections") return normalizeSelections(input.selections);
|
||||
if (record.answerKind === "invisible") {
|
||||
return JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user