Observed runs · public npm registry
is-promise: 2.2.2 passes, 2.2.0 breaks on require
In April 2020, is-promise@2.2.0 shipped an exports map that Node rejects, and 2.2.2 fixed it. Both versions are still on the registry. Both receipts below come from that registry. Each consumer started in an empty directory with a fresh home directory and npm cache. Check: require("is-promise")(Promise.resolve(1)) must print true.
· macOS 27.2 (arm64) · Node v26.13.1 · npm 11.20.0 · install scripts ignored · provenance: none (published before npm provenance existed)
2.2.2 · pass
resolve is-promise@2.2.2 HTTP 200
digest sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ== match
install npm install ./package.tgz exit 0 (installed 2.2.2)
check exit 0 stdout "true" expected "true"
2.2.0 · fail at check
resolve is-promise@2.2.0 HTTP 200
digest sha512-N/4ZxZGjDLAWJQNtcq1/5AOiWTAAhDwnjlaGPaC2+p3pQ+Ka2Dl/EL29DppuoiZ8Xr1/p/9ywBGGzHRPoWKfGA== match
install exit 0 (installed 2.2.0)
check exit 1
Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target "index.js"
defined in the package config …/is-promise/package.json; targets must start with "./"
The digest matched and the install succeeded. The consumer still couldn't load the package.
Deliberate failures it has to catch
We served 2.2.2 through a local proxy that flipped one byte of the tarball. The receipt failed at digest and nothing was installed. We also ran 2.2.2 with a wrong expected output. The check exited 0, and the receipt still failed because the output didn't match.
What a free check gets you
Running npm install is-promise@2.2.0 and node -e in a clean directory shows the same error. A fresh Claude given this request reached the same verdict in about 40 seconds. It required the file by path, though, which skips the exports map consumers actually hit, and it described a tamper check without running one. The pilot sells the same check on every release with the receipts kept, not a better one-off.