No description
Find a file
SnapAPI Developer 91a08bab70 Add js parameter for custom JavaScript injection
- Add js parameter to ScreenshotOptions interface (max 5000 chars)
- Execute JavaScript via page.evaluate() after delay, before CSS/hideSelectors
- 5-second timeout with JS_TIMEOUT error handling
- JS_EXECUTION_ERROR for script failures with sanitized error messages
- Support in both GET and POST endpoints with validation
- Updated OpenAPI spec for both GET and POST routes
- Added comprehensive test coverage (service + route layers)
- Updated SDK documentation (Node.js and Python) with examples

Test results: 414 tests passing (includes new JS injection tests)
2026-03-05 12:07:54 +01:00
.forgejo/workflows fix: promote workflow retags staging image instead of rebuilding 2026-02-20 11:34:58 +00:00
public feat: add css parameter for custom CSS injection in screenshots 2026-03-04 21:06:50 +01:00
sdk Add js parameter for custom JavaScript injection 2026-03-05 12:07:54 +01:00
src Add js parameter for custom JavaScript injection 2026-03-05 12:07:54 +01:00
.gitignore feat: update landing page, changelog, compare, quick-start with darkMode + hideSelectors features 2026-03-04 15:08:17 +01:00
Dockerfile fix: skip puppeteer browser download in Docker build 2026-02-20 11:21:02 +00:00
package-lock.json feat: add darkMode and hideSelectors screenshot parameters 2026-03-04 12:06:26 +01:00
package.json fix: cancelled tier, remove key logging, add billing rate limits 2026-03-04 09:06:16 +01:00
tsconfig.json fix: exclude test files from tsc build 2026-02-25 08:09:58 +00:00
vitest.config.ts Add comprehensive test framework with vitest and TDD tests 2026-02-24 16:23:06 +00:00