@suss/client-axios
v0.3.2
Published
Client pack for extracting suss client behavioral summaries from axios call sites.
Downloads
1,119
Maintainers
Readme
@suss/client-axios
Client pack for the axios HTTP client. Discovers axios.<method>(url, ...) call sites and produces client behavioral summaries.
What this package is
@suss/client-axios returns a PatternPack object describing:
- Discovery via
axios.get/post/put/delete/patch/head/options(url, ...)call sites whereaxiosis imported as the default export from"axios" - Binding extraction: HTTP method from the called method name; URL path from the first argument (literal strings only)
- Terminals:
returnStatementandthrowExpression - Response semantics:
response.data→ body,response.status→ status code,response.headers→ headers
This is a "client pack": axios is a third-party HTTP client used at consumer call sites, the same role as @suss/client-web for native fetch.
Limitations (v0)
- Bare-call form not supported.
axios({ url, method })andaxios.request(config)aren't matched; only the per-verb method calls are. - Aliased default imports (
import myAxios from "axios") are not recognized; the pack matches the conventionalimport axios from "axios".
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.
