-
Notifications
You must be signed in to change notification settings - Fork 0
added setNonce to types #23
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,10 +26,11 @@ export interface TFormbricks { | |
| code: string, | ||
| properties?: { | ||
| hiddenFields: Record<string | number, string | number | string[]>; | ||
| }, | ||
| } | ||
| ) => Promise<void>; | ||
|
|
||
| logout: () => Promise<void>; | ||
|
|
||
| registerRouteChange: () => Promise<void>; | ||
| setNonce: (nonce: string) => Promise<void>; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainNew setNonce method added - verify implementation and tests. The type signature looks correct and follows the pattern of other setter methods in the interface. However, please ensure:
Run the following script to verify the implementation and tests exist: 🏁 Script executed: #!/bin/bash
# Description: Verify setNonce implementation and tests exist
echo "=== Searching for setNonce implementation ==="
ast-grep --pattern 'setNonce($$$) {
$$$
}'
echo -e "\n=== Searching for setNonce in class/object definitions ==="
rg -nP --type=ts -C3 'setNonce\s*[:=]\s*(\(|async)'
echo -e "\n=== Searching for setNonce tests ==="
rg -nP --type=ts -C3 'describe|it|test.*setNonce|setNonce.*describe|it|test'Length of output: 60395 setNonce method requires implementation and tests - type-only addition is incomplete. The type definition was added but the actual implementation and tests are missing. Other methods (setEmail, setAttribute, setUserId, etc.) in the codebase follow a consistent pattern where each has both an implementation that proxies through Add:
🤖 Prompt for AI Agents |
||
| } | ||
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.
We shouldn't change the version here at this moment, we should do this when we do a new release.
(and then we will likely go from
4.2.1to4.3.0instead of4.3.1;-) )