@suss/client-web
v0.3.2
Published
Client pack for extracting suss client behavioral summaries from web fetch() call sites.
Maintainers
Readme
@suss/client-web
Client pack for the web fetch API. Discovers fetch() call sites, extracts method/path from arguments, and produces client behavioral summaries.
What this package is
@suss/client-web returns a PatternPack object describing:
- Discovery via global
fetch()call sites (not an import;fetchis a built-in) - Binding extraction: URL path from the first argument (literal strings only), HTTP method from
options.method(defaults toGET) - Terminals:
returnStatement(any return) andthrowExpression
This is a "client pack": fetch is a built-in web API, not a third-party framework. It uses the same PatternPack interface because the adapter interprets both identically.
Where it sits in suss
Depends only on @suss/extractor (for the PatternPack type). Contains no analysis logic.
Coverage
License
Licensed under Apache 2.0. See LICENSE.
For how framework packs work, see docs/framework-packs.md.
