{"name":"jest-leak-detector","version":"30.0.0-beta.2","license":"MIT","_id":"jest-leak-detector@30.0.0-beta.2","maintainers":[{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"openjs-operations","email":"operations@openjsf.org"}],"dist":{"shasum":"f7a50b5c5d8c13f0626153efd06962dd79074d9d","tarball":"http://registry-npm.ywwl.com/jest-leak-detector/download/jest-leak-detector-30.0.0-beta.2.tgz","fileCount":6,"integrity":"sha512-3BNPJMhfh7AVTSsaG0yPgUS9UbRgyN+cXixokgyR1Z3MAPCGcxBo2ckq5Bbe4pMqzsusoc7m4+Ekco/vKU1hRA==","signatures":[{"sig":"MEUCIAFqfHObm1f28KpPTzeG/I1TmpSFfMUr57XAdjLzXST4AiEAvLCkpnUdpUTsb3OEUmQT/r2uEym4RGtY2XB8Of1KJoM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6482,"size":2914,"noattachment":false,"key":"/jest-leak-detector/-/jest-leak-detector-30.0.0-beta.2.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^18.14.0 || ^20.0.0 || >=22.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":"53a5635ac9a43099033f6103e179b13a5465e017","_npmUser":{"name":"cpojer","email":"christoph.pojer@gmail.com"},"repository":{"url":"https://github.com/jestjs/jest.git","type":"git","directory":"packages/jest-leak-detector"},"_npmVersion":"lerna/3.12.3/node@v23.11.0+arm64 (darwin)","directories":{},"_nodeVersion":"23.11.0","dependencies":{"pretty-format":"30.0.0-beta.1","@jest/get-type":"30.0.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-leak-detector_30.0.0-beta.2_1748308996582_0.37128766783682554","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":1748308996751,"_cnpm_publish_time":1748308996751,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}