Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ encodeCursor
Function
encodeCursor
apps/sim/app/api/v1/audit-logs/query.ts:14–16 ·
view source on GitHub ↗
(data: CursorData)
Source
from the content-addressed store, hash-verified
12
}
13
14
function
encodeCursor(data: CursorData): string {
15
return
Buffer.from(JSON.stringify(data)).toString(
'base64'
)
16
}
17
18
function
decodeCursor(cursor: string): CursorData | null {
19
try {
Callers
1
queryAuditLogs
Function · 0.70
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected