Add multi-platform function adapters and CI workflow

Introduces adapters for Vercel, Netlify Edge, Deno Deploy, and Cloudflare Pages, each with platform-specific entry points and configuration files. Adds a GitHub Actions CI workflow for linting, type checking, and testing. Updates lint scripts to include adapters, improves type annotations in src/index.js, and fixes a type assertion in security tests.
This commit is contained in:
xixu-me committed 2025-12-10 16:08:10 +08:00
1 parent 214e596d00
commit 44b54580ad
13 files changed
+364 -348

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ describe('Security Features', () => {
// If it doesn't throw, it should not be a server error
} catch (error) {
// Expected to throw TypeError for invalid header value
expect(error.message).toMatch(/[Ii]nvalid|[Hh]eader/);
expect((/** @type {Error} */ (error)).message).toMatch(/[Ii]nvalid|[Hh]eader/);
}
});
});