← Home

@async-fn/sinon

Additional methods to sinon.spy to introduce "late resolve" of promises returned by mock functions. This allows tests that read chronologically, like a story.

11
Versions
MIT
License
No
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

jansaviku-turso

Keywords

sinonasync-testingunit-testingmockmockingtesttestingtddbddasynchronous

Accepted risks

Findings the reviewer chose to accept rather than block on.

SourceRuleReasonAccepted byWhen
source-diff obfuscated-file-transition:build/index.js AI (source-diff): Webpack bundle output (module boilerplate + lodash internals), not true obfuscation. ai
source-diff source-size-tripled AI (source-diff): Size increase consistent with webpack bundling of deps, not injected payload. ai
publish-pattern dormant-publish AI (publish-pattern): Long-lived low-traffic testing utility; dormancy matches its niche-tool lifecycle. ai
typosquat typosquat.levenshtein:pino AI (typosquat): Scoped sinon testing utility; name similarity to pino is coincidental and not impersonation. ai

Versions (showing 11 of 11)

Version Deps Published
1.7.0 0 / 1
1.6.5 0 / 1
1.6.4 0 / 1
1.4.1 0 / 4
1.4.0 0 / 5
1.3.0 0 / 5
1.2.2 0 / 5
1.2.1 0 / 4
1.2.0 0 / 4
1.1.0 0 / 4
1.0.0 0 / 4

v1.6.4

2 findings
HIGH Modified file became obfuscated: build/index.js source-diff

This file was readable in the previously greenflagged version and is now minified or obfuscated (lines over 3000 chars). A file that gains obfuscation between releases is a strong payload-swap indicator.

LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v1.4.1

3 findings
HIGH Modified file became obfuscated: build/index.js source-diff

This file was readable in the previously greenflagged version and is now minified or obfuscated (lines over 3000 chars). A file that gains obfuscation between releases is a strong payload-swap indicator.

LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

INFO Publisher changed: jansav → iku-turso (on 2021-08-19, known maintainer) provenance

This version was published by a different npm account (iku-turso) than the most recent previously approved version (jansav) on 2021-08-19, but iku-turso is listed as a maintainer on prior approved versions (matched on name). This looks like a manual publish by a known maintainer rather than a publisher change. Recorded as INFO for audit trail.

v1.4.0

3 findings
HIGH Modified file became obfuscated: build/index.js source-diff

This file was readable in the previously greenflagged version and is now minified or obfuscated (lines over 3000 chars). A file that gains obfuscation between releases is a strong payload-swap indicator.

LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

INFO Publisher changed: jansav → iku-turso (on 2021-08-18, known maintainer) provenance

This version was published by a different npm account (iku-turso) than the most recent previously approved version (jansav) on 2021-08-18, but iku-turso is listed as a maintainer on prior approved versions (matched on name). This looks like a manual publish by a known maintainer rather than a publisher change. Recorded as INFO for audit trail.

v1.3.0

3 findings
HIGH Modified file became obfuscated: build/index.js source-diff

This file was readable in the previously greenflagged version and is now minified or obfuscated (lines over 3000 chars). A file that gains obfuscation between releases is a strong payload-swap indicator.

LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

INFO Publisher changed: iku-turso → jansav (on 2021-06-15, known maintainer) provenance

This version was published by a different npm account (jansav) than the most recent previously approved version (iku-turso) on 2021-06-15, but jansav is listed as a maintainer on prior approved versions (matched on name). This looks like a manual publish by a known maintainer rather than a publisher change. Recorded as INFO for audit trail.

v1.2.2

2 findings
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

INFO Publisher changed: iku-turso → jansav (on 2020-08-12, known maintainer) provenance

This version was published by a different npm account (jansav) than the most recent previously approved version (iku-turso) on 2020-08-12, but jansav is listed as a maintainer on prior approved versions (matched on name). This looks like a manual publish by a known maintainer rather than a publisher change. Recorded as INFO for audit trail.

v1.2.1

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v1.2.0

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.

v1.1.0

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.

v1.0.0

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.