{"name":"jest-leak-detector","version":"30.0.0-alpha.7","repository":{"type":"git","url":"https://github.com/jestjs/jest.git","directory":"packages/jest-leak-detector"},"license":"MIT","main":"./build/index.js","types":"./build/index.d.ts","exports":{".":{"types":"./build/index.d.ts","require":"./build/index.js","import":"./build/index.mjs","default":"./build/index.js"},"./package.json":"./package.json"},"dependencies":{"jest-get-type":"30.0.0-alpha.7","pretty-format":"30.0.0-alpha.7"},"devDependencies":{"@types/node":"*"},"engines":{"node":"^16.10.0 || ^18.12.0 || >=20.0.0"},"publishConfig":{"access":"public"},"gitHead":"bacb7de30d053cd87181294b0c8a8576632a8b02","_nodeVersion":"20.18.0","_npmVersion":"lerna/3.11.0/node@v20.18.0+arm64 (darwin)","_id":"jest-leak-detector@30.0.0-alpha.7","dist":{"integrity":"sha512-MdS+e4GnipvUsh7WBYz+hFLTiLhn28asqAFugUKL8IDTHJRhwKi0QRaKRFUXDyA/RX3HWuobeQisR/YMjdsgcw==","shasum":"86bdeedb6721c61d0bd9043b6e33f86b8839ad85","tarball":"http://registry-npm.ywwl.com/jest-leak-detector/download/jest-leak-detector-30.0.0-alpha.7.tgz","fileCount":6,"unpackedSize":6496,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDtju8ngB7v62pHYFPVqr/kyrngeP3n7jotqn9lyyGbIQIgPNE6JaHWPifM7TznQnPZ+ywJMufAfUWXN6ckE7XKhoI="}],"size":2922,"noattachment":false,"key":"/jest-leak-detector/-/jest-leak-detector-30.0.0-alpha.7.tgz"},"_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jest-leak-detector_30.0.0-alpha.7_1738225712180_0.9881813525585179"},"_hasShrinkwrap":false,"readme":"# jest-leak-detector\n\nModule for verifying whether an object has been garbage collected or not.\n\nInternally creates a weak reference to the object, and forces garbage collection to happen. If the reference is gone, it meant no one else was pointing to the object.\n\n## Example\n\n```javascript\n(async function () {\n  let reference = {};\n  let isLeaking;\n\n  const detector = new LeakDetector(reference, {\n    shouldGenerateV8HeapSnapshot: true,\n  });\n\n  // Reference is held in memory.\n  isLeaking = await detector.isLeaking();\n  console.log(isLeaking); // true\n\n  // We destroy the only reference to the object.\n  reference = null;\n\n  // Reference is gone.\n  isLeaking = await detector.isLeaking();\n  console.log(isLeaking); // false\n})();\n```\n","publish_time":1738225712332,"maintainers":[{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"openjs-operations","email":"operations@openjsf.org"}],"_cnpm_publish_time":1738225712332,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}