{"name":"jest-leak-detector","version":"30.3.0","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.1.0","pretty-format":"30.3.0"},"devDependencies":{"@types/node":"*"},"engines":{"node":"^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"},"publishConfig":{"access":"public"},"gitHead":"efb59c2e81083f8dc941f20d6d20a3af2dc8d068","_nodeVersion":"24.14.0","_npmVersion":"lerna/4.3.0/node@v24.14.0+arm64 (darwin)","_id":"jest-leak-detector@30.3.0","dist":{"integrity":"sha512-cuKmUUGIjfXZAiGJ7TbEMx0bcqNdPPI6P1V+7aF+m/FUJqFDxkFR4JqkTu8ZOiU5AaX/x0hZ20KaaIPXQzbMGQ==","shasum":"a695a851e353f517a554a2f5c91c2742fc131c98","tarball":"http://registry-npm.ywwl.com/jest-leak-detector/download/jest-leak-detector-30.3.0.tgz","fileCount":6,"unpackedSize":6867,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCzM1QrgoeItSEKkYHcWoa6ISIJH+J5/OwZgZIEs6rgcwIgdhlXgGxUxtN5NEYc5z5J64TQxEahHxAjLwTK0g6EFsc="}],"size":3023,"noattachment":false,"key":"/jest-leak-detector/-/jest-leak-detector-30.3.0.tgz"},"_npmUser":{"name":"cpojer","email":"christoph.pojer@gmail.com"},"directories":{},"maintainers":[{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"rickhanlonii","email":"rickhanlonii@gmail.com"},{"name":"openjs-operations","email":"operations@openjsf.org"},{"name":"cpojer","email":"christoph.pojer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jest-leak-detector_30.3.0_1773107982692_0.7390789801624473"},"_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":1773107982829,"_cnpm_publish_time":1773107982829,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}