{"name":"jest-leak-detector","version":"30.4.1","license":"MIT","_id":"jest-leak-detector@30.4.1","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"}],"dist":{"shasum":"96077059a68e5871fc8f53aa90647a6a33f916cd","tarball":"http://registry-npm.ywwl.com/jest-leak-detector/download/jest-leak-detector-30.4.1.tgz","fileCount":6,"integrity":"sha512-IpmyiioeHxiWDhesHnUFmOxcTzwCwKpgACgWajtAP+nYQXiY7DakTxB6Bx9JFiRMljr0AX1PvnQdaU1KFoz6NQ==","signatures":[{"sig":"MEQCIH79yLO3korXV/Yy1FT5fAA6bcbz0EUaivwEEUa/648vAiAoZH8zE4DWxV+hcKr0xcMeQRI1CPxEoDnG3EIugaV3Ug==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6914,"size":3024,"noattachment":false,"key":"/jest-leak-detector/-/jest-leak-detector-30.4.1.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"},"exports":{".":{"types":"./build/index.d.ts","import":"./build/index.mjs","default":"./build/index.js","require":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"b3b4a09ed3005369dacc7466d1d2122797283785","_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"repository":{"url":"https://github.com/jestjs/jest.git","type":"git","directory":"packages/jest-leak-detector"},"_npmVersion":"lerna/4.3.0/node@v26.1.0+arm64 (darwin)","directories":{},"_nodeVersion":"26.1.0","dependencies":{"pretty-format":"30.4.1","@jest/get-type":"30.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-leak-detector_30.4.1_1778229292064_0.938507410400635","host":"s3://npm-registry-packages-npm-production"},"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":1778229292214,"_cnpm_publish_time":1778229292214,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}