deasync
Turns async function into sync via JavaScript wrapper of Node event loop
7
Versions
MIT
License
Yes
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source, so a manually published version cannot be tied back to a reviewed commit.
Maintainers
abbr
Keywords
asyncsyncsleepasync wrapper
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| typosquat | typosquat.levenshtein:async | AI (typosquat): deasync is a distinct, well-established package (4400+ days, 497k downloads) unrelated to 'async'; the name similarity is coincidental and not impersonation. | ai | |
| phantom-deps | phantom-dep:nan | AI (phantom-deps): nan is a build-time C++ dependency referenced in binding.gyp, not a JS import; phantom-dep detection is a false positive for native addon build deps. | ai | |
| publish-pattern | new-deps-added | AI (publish-pattern): node-addon-api replaces nan as the official N-API C++ wrapper for native addons; this is a standard, well-known migration path with no supply-chain risk for this package. | ai | |
| phantom-deps | phantom-dep:node-addon-api | AI (phantom-deps): node-addon-api is a native build dependency used by node-gyp/binding.gyp; it is not imported via require() but is legitimately needed. False positive for native addons. | ai | |
| install-scripts | install-script:install | AI (install-scripts): deasync is a native addon; install script runs node-gyp to compile C++ bindings. This is the documented, expected build flow for this package across all versions. | ai | |
| semgrep | semgrep:child-process-import | AI (semgrep): child_process import in build.js is solely for invoking node-gyp during install compilation. Expected for native addon build scripts. | ai | |
| npm-metadata | bundled-binaries | AI (npm-metadata): deasync ships prebuilt .node binaries for many platforms/Node versions as its core distribution mechanism. This is expected and stable for this package. | ai | |
| semgrep | semgrep:child-process-spawn | AI (semgrep): child_process.spawn in build.js invokes node-gyp rebuild — standard native addon compilation. Not a runtime risk. | ai | |
| semgrep | semgrep:dynamic-require | AI (semgrep): Dynamic require loads the platform-specific prebuilt .node binary — standard bindings pattern for native addons, not arbitrary code loading. | ai |