ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/llms-txt-hub / apps/web/__mocks__/@thedaviddias/rate-limiting.ts

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/llms-txt-hub / apps/web/__mocks__/@thedaviddias/rate-limiting.ts
DateNot specified in source
RepositoryJanady13/llms-txt-hub
Revisione0f4bf978d4df168369c7601d9c5f5ea89e84377
Branchmain
Path or archive memberapps/web/__mocks__/@thedaviddias/rate-limiting.ts
Original SHA-2568b91f1e5e819018778617b7725316a2555e8f234258b0e662b7bdacf4acc9ca1
Git blob SHA4506ddd94d7641f28466ec1e06ee808a140d5cbc
Reading-copy SHA-2568b91f1e5e819018778617b7725316a2555e8f234258b0e662b7bdacf4acc9ca1

Original source ↗

Recovered source transcript

// Mock for @thedaviddias/rate-limiting to avoid Upstash Redis dependency in tests /** * Mock rate limiter that bypasses rate limiting in tests */ export const withRateLimit = async (request: any, rateLimitType: string, handler: any) => { // In tests, just call the handler directly without rate limiting return await handler() } export const checkRateLimit = jest.fn(() => ({ allowed: true, remaining: 10, resetTime: Date.now() + 60000 })) export const RATE_LIMIT_EXCEEDED_MESSAGE = 'Too many requests' // Mock any other exports the package might have export default { withRateLimit, checkRateLimit, RATE_LIMIT_EXCEEDED_MESSAGE }

Search equations, builds, manuscript text, and recovered sources.