{
  "_id": "gc-hook",
  "maintainers": [
    {
      "name": "webreflection",
      "email": "andrea.giammarchi@gmail.com"
    }
  ],
  "keywords": [
    "FinalizationRegistry",
    "simple",
    "GC",
    "Proxy"
  ],
  "dist-tags": {
    "latest": "0.4.1"
  },
  "author": {
    "name": "Andrea Giammarchi"
  },
  "_rev": "13-d160617f126b6d166582d0ba4784a456",
  "description": "A simplified FinalizationRegistry utility that works",
  "readme": "# gc-hook\n\n[![build status](https://github.com/WebReflection/gc-hook/actions/workflows/node.js.yml/badge.svg)](https://github.com/WebReflection/gc-hook/actions) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/gc-hook/badge.svg?branch=main)](https://coveralls.io/github/WebReflection/gc-hook?branch=main)\n\n<sup>**Social Media Photo by [Steve Johnson](https://unsplash.com/@steve_j) on [Unsplash](https://unsplash.com/)**</sup>\n\nA simplified [FinalizationRegistry](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry) utility that works:\n\n  * it does the right thing by never leaking the reference meant to be notified\n  * it allows overriding the returned proxy with any other more complex wrapper or indirection\n  * it allows references owners to *drop* from the registry explicitly, either via the *held* reference or an explicit token, if passed as extra option\n  * it avoids understanding how the FinalizationRegistry works, helping you to focus on more complex issues instead of re-implementing the same dance over and over\n\n### Example\n\n```js\n// available as commonjs too\nimport { create, drop } from 'gc-hook';\n\n// keep a count of all passed references created here\nlet references = 0;\n\n// notify how many references are still around\nconst onGarbageCollected = myUtility => {\n  console.log(--references, 'references still used');\n};\n\nexport default options => {\n  const myUtility = { ...options, do: 'something' };\n  console.log(++references, 'references provided');\n  // return a proxy to avoid holding directly myUtility\n  // while keeping the utility in memory until such proxy\n  // is not needed, used, or referenced anymore\n  return create(myUtility, onGarbageCollected);\n};\n\n// as module consumer\nimport createUtility from './module.js';\n\nlet util = createUtility({some: 'thing'});\n// do something  amazing with the util ... then\nsetTimeout(() => {\n  // clear the utility or don't reference it anymore anywhere\n  util = null;\n  // once the GC kicks in, the module.js will log how many\n  // utilities are still around and never collected\n});\n```\n\n## Use Cases\n\n<details>\n  <summary><strong>Internal Objects</strong></summary>\n  <div markdown=1>\n\nIn case you'd like to be notified when an object not meant to leak has been collected,\nyou can use the `create` function in its most simple way:\n\n```js\nimport { create } from 'gc-hook';\n\nconst privateObject = {};\nconst onGC = privateObject => {\n  console.log(privateObject, 'not used anymore');\n};\n\nexport create(privateObject, onGC);\n```\n\n  </div>\n</details>\n\n<details>\n  <summary><strong>FFI Objects</strong></summary>\n  <div markdown=1>\n\nIf you are handling *FFI* related references, you can hold on internal values and yet return whatever artifact you like in the wild.\n\n```js\nimport { create } from 'gc-hook';\n\nexport const createWrap = reference => {\n\n  const onGC = reference => {\n    ffi.gc.decreaseRefCounting(reference);\n  };\n\n  const wrap = function (...args) {\n    return ffi.apply(reference, args);\n  };\n\n  wrap.destroy = onGC;\n\n  // will return the wrap as it is without holding\n  // the reference in the wild\n  return create(reference, onGC, { return: wrap });\n};\n```\n\nThis use case was designed after *pyodide* Proxy and GC dance around passed references to the *JS* world.\n\n  </div>\n</details>\n\n<details>\n  <summary><strong>Primitives</strong></summary>\n  <div markdown=1>\n\nIn case you need to relate a specific object to a unique id (*[coincident](https://github.com/WebReflection/coincident)* use case) and you don't need to ever unregister the held reference / id internally:\n\n```js\nimport { create } from 'gc-hook';\n\nconst onGC = id => {\n  console.log(id.valueOf(), 'not needed anymore');\n};\n\n// id can be any primitive in here and ref must be used as return\nexport const relate = (id, ref) => {\n  return create(\n    typeof id === 'string' ? new String(id) : new Number(id),\n    onGC,\n    { token: false, return: ref }\n  );\n};\n```\n\n  </div>\n</details>\n\n<details>\n  <summary><strong>Primitives + Drop</strong></summary>\n  <div markdown=1>\n\nIn case you need to relate a specific object to a unique id but you still would like to drop the reference from the *FinalizationRegistry* later on:\n\n```js\nimport { create, drop } from 'gc-hook';\n\nconst onGC = ({ id, time }) => {\n  console.log(id, 'created at', time, 'not needed anymore');\n};\n\n// id can be any primitive in here\nexport const relate = (id, wrap) => {\n  const token = { id, time: Date.now() };\n  const hold = typeof id === 'string' ? new String(id) : new Number(id);\n  return {\n    value: create(hold, onGC, { token, return: wrap }),\n    drop: () => drop(token)\n  };\n};\n```\n\n  </div>\n</details>\n\n<details>\n  <summary><strong>Complex held values</strong></summary>\n  <div markdown=1>\n\nOne does not need to pass to the *GC* callback just a specific kind of value so that it's possible to combine various operations at once:\n\n```js\nimport { create, drop } from 'gc-hook';\n\nexport const createComplexHeld = ref => {\n  const onGC = ({ ref, destroy, time }) => {\n    destroy();\n    console.log(ref, 'created at', time, 'not needed');\n  };\n\n  const wrap = function (...args) {\n    return ffi.apply(ref, args);\n  };\n\n  wrap.destroy = () => {\n    drop(held);\n    ffi.gc.decreaseRefCounting(ref);\n  };\n\n  const held = {\n    ref,\n    destroy: wrap.destroy,\n    time: Date.now(),\n  };\n\n  return create(held, onGC, { return: wrap });\n}:\n```\n\nThe only and most important thing is to never return something part of the `held` logic otherwise that returned value cannot possibly ever be Garbage Collected.\n\n  </div>\n</details>\n\n### gc-hook/track\n\nIf you'd like to track one or more reference you can use `gc-hook/track` helper.\n\nAll it does is to notify in console, via `console.debug`, that such reference has eventually be collected.\n\n```js\n// or use https://esm.run/gc-hook/track live\nimport BUG_GC from 'gc-hook/track';\n\n// HINT: use a constant so that rollup or bundlers\n// can eventually remove all the dead code in production\nconst D = true;\n\n// create any reference\nlet test = { any: 'value' };\n\n// when debugging, pass an object literal to simplify\n// naming -> references convention\nD&&BUG_GC({ test });\n\nsetTimeout(() => { test = null; });\n// now press the Collect Garbage button in devtools\n// and see the lovely message: **test** collected\n```\n\n## API\n\n```js\n// returns a ProxyHandler<hold> or whatever\n// the `return` option wants to return.\n// The returned reference is the one that\n// notifies the GC handler once destroyed\n// or not referenced anymore in the consumer code.\ncreate(\n  // the reference or primitive to keep in memory\n  // until the returned value is used. It can be\n  // a primitive, but it requires `token = false`,\n  // or any reference to hold in memory.\n  hold,\n  // a callback that will receive the held value\n  // whenever its Proxy or wrapper is not referenced\n  // anymore in the program using it.\n  onGarbageCollected,\n  // optional properties:\n  {\n    // if passed along, it will be used automatically\n    // to create the ProxyHandler<hold>.\n    handler = Object.create(null),\n    // override the otherwise automatically created Proxy\n    // for the `held` reference.\n    return = new Proxy(hold, handler),\n    // allow dropping from the registry via something\n    // different from the returned value itself.\n    // If this is explicitly `false`, no token is used\n    // to register the retained value.\n    token = hold,\n    // if explicitly set as `true` it will `console.debug`\n    // the fact the held value is not retained anymore out there.\n    debug = false,\n  } = {}\n);\n\n// Returns `true` if the `token` successfully\n// unregistered the proxy reference from the registry.\ndrop(\n  // it's either the held value waiting to be passed\n  // to the GC callback, or the explicit `token` passed\n  // while creating the reference around it.\n  token\n);\n```\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/WebReflection/gc-hook.git"
  },
  "bugs": {
    "url": "https://github.com/WebReflection/gc-hook/issues"
  },
  "license": "ISC",
  "versions": {
    "0.0.0": {
      "name": "gc-hook",
      "version": "0.0.0",
      "keywords": [],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.0.0",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "dist": {
        "shasum": "9e91422e46c2ef6303f725594ff79fcbb54e66e2",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.0.0.tgz",
        "fileCount": 6,
        "integrity": "sha512-dyxOth1bpwuYCQg5rVp6/NIo/WvxXfZCqxYr7AnNC01bPiFM/W92hE4CX07LO/+4MW3jRDPZuGgktwPXGImbDw==",
        "signatures": [
          {
            "sig": "MEYCIQDjaVJk24n53vHsII/Cmm1lHRqWVYCW1Jvbu5Q7Hj+ReQIhAIW3v8NtlouOfZ9CgSP5yk8wh+++EkBVNEB3AaCLW64X",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 3919
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "scripts": {
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "_npmVersion": "10.2.0",
      "directories": {},
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.2",
        "rollup": "^4.1.4",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.0.0_1697661717865_0.9910629588474209",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.1.0": {
      "name": "gc-hook",
      "version": "0.1.0",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.1.0",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "13804191bb10155fecc19471d53b0898192bf7bf",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.1.0.tgz",
        "fileCount": 8,
        "integrity": "sha512-DnMu79qtwYpTYVyNGQ8qQ3yfxkx7XzMOkHStFHgPc2ALW70hOY5hqTmZ2qdmQpR+xuGXh2jqkXFPJDpUZD8Gpw==",
        "signatures": [
          {
            "sig": "MEUCIH+8wJ+EHPd0Z+7gmQ52IPt3fbGAX+6peXNLxxm7qn7aAiEAsU/w2GL18s6ki61aH9SNsRWRUvCORXWlLKE/kQiI3BM=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 8970
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "b38c68fbdb6190fcdd09c6628effd15d950445e7",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.2.0",
      "description": "A simplified FinalizationRegistry approach that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.2",
        "rollup": "^4.1.4",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.1.0_1697708615174_0.31397262587248065",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.1.1": {
      "name": "gc-hook",
      "version": "0.1.1",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.1.1",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "5ccf86c81f4edb1e18458dd2b93a7bc22b5ca451",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.1.1.tgz",
        "fileCount": 8,
        "integrity": "sha512-av4OqVSr7GPO1pJt6uk+hnuzDPEJZM8iKAFQOdNCkDW0d5KIrPvGGzMOctfhigMYqU/Kb1oaDQVAFMvevtr6hA==",
        "signatures": [
          {
            "sig": "MEUCIEP2yymnJWvfRIEXz7gtESmbcHPTUYj69E8FvK91edp0AiEAy5j/oc/MPz+47wEcHZqFOD6AZQ8/U98QhqSf8apIic0=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 10846
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "75500ef870802152cd7da1c1be3a46e75c86ef9b",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.2.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.2",
        "rollup": "^4.1.4",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.1.1_1697709821950_0.5752699713880378",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.1.2": {
      "name": "gc-hook",
      "version": "0.1.2",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.1.2",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "8d53f0359b8afd1277e3deafe09626afafe69eac",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.1.2.tgz",
        "fileCount": 8,
        "integrity": "sha512-g5acJWeJ4qKCp7HPXwMmGWSGRZuG9M0P2DC9rG+/TShgSR5UJVKwg2UxfpnYmh7GCvLCW/QiccO+GMtKRBzomg==",
        "signatures": [
          {
            "sig": "MEYCIQDEzj52wUBN6z+uPIhHl+B4JOffyZPZJoyCoxKssaZglAIhAPgB1eH1goFkRDilrCw0mempl509FL3Nd+zNDgznTjCI",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 11304
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "048ac826980a9960dcc71170cdd584ab9d79755e",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.2.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.2",
        "rollup": "^4.1.4",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.1.2_1697813702706_0.897989499310988",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.2.0": {
      "name": "gc-hook",
      "version": "0.2.0",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.2.0",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "07eefabf00a29d3fc8441a1ba61897c5894d3e07",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.2.0.tgz",
        "fileCount": 8,
        "integrity": "sha512-spjJFoOS3obguRt0y4Qf5F6iKVpUQ+nJDpadPobwETzyyzS+6CbQmcC1MLqkmk5YDCnFEAPQzlnACGvtoH9OxQ==",
        "signatures": [
          {
            "sig": "MEUCIQDgpNaNWsBd7/6DEuVP6kam+hBCZtWogmVv9z4WmkgcMQIgAaPgQVavHYHYmVgnDgMLpD0VW8XQv5f0xFAHRYvT/O0=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 11304
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "b715d32bf571876edf4aa660b68f2d7a2ad1bb6b",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.2.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.2",
        "rollup": "^4.1.4",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.2.0_1697814851064_0.012906822174379329",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.2.1": {
      "name": "gc-hook",
      "version": "0.2.1",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.2.1",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "1aa3890b5e289e3984a9f07f16f79f3b4052fe80",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.2.1.tgz",
        "fileCount": 8,
        "integrity": "sha512-KGuqG9AuyhFccjWxLQH7qBuaajvVDHK/DwRHcuGpjMyCxW0hBE2sI2kOGT7gvAohAjvtmVPKWpA/xv7iIFbuUA==",
        "signatures": [
          {
            "sig": "MEUCIDX5L2jCVJ3dl9/fOGysVIKxoaQSjK56I1a3e9EbfTzTAiEA3wRxnUfk/SMqQW99fjC+iLPTey1XAFZYCjOMVJX3w/c=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 12147
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "32302a145e1043b1f6a911f7760c68c57a161cdd",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.2.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.2",
        "rollup": "^4.1.4",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.2.1_1697815869560_0.6597081835865626",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.2.2": {
      "name": "gc-hook",
      "version": "0.2.2",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.2.2",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "0b8d49921e76db32877a6a98351f4ee16893ce8d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.2.2.tgz",
        "fileCount": 8,
        "integrity": "sha512-9Zmsbai6i8IA7siFRvmo1vviWJo+hBUY+5wemlEqDZJoi0BuNOygQv4beTIDyAfOGk38KfeUtA0Pz4FTOsZyHg==",
        "signatures": [
          {
            "sig": "MEUCIFiwJdhACZqjOWeAzXfcWXveRc65yZrPv9+s7fftWpPjAiEA7lZbIwoB86S0tWS0OugtK8fe+34fcX5E7+4xu3noyOM=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 15385
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "d4374a33799bbd001e5168ca78ab8ed245cc362d",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.2.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.2",
        "rollup": "^4.1.4",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.2.2_1697980930141_0.10546715136845974",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.2.3": {
      "name": "gc-hook",
      "version": "0.2.3",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.2.3",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "4a7c3d199fd33880d04c38ed26f0cf9199fcc80f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.2.3.tgz",
        "fileCount": 8,
        "integrity": "sha512-XfA+XiE7QzJzonfvNjTXmcyGtprD6m85KEH9fngmxghVR7PJ4f3ZKsLI22QNpWJiDO5EIR6iMzz9wSxLBqw6+A==",
        "signatures": [
          {
            "sig": "MEQCIBrs102pPtR4WVh6Evjcu76WMdswPFgCXKCx88nI1f5NAiASR4NejGWXpNR+2BrBPT3Tw5wLesC7IlBv7WURSQT8Ng==",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 15385
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "0adf4defe92f746a62f518d5d2d8170f158e3e12",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.2.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.2",
        "rollup": "^4.1.4",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.2.3_1697981004781_0.06307048617584621",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.2.4": {
      "name": "gc-hook",
      "version": "0.2.4",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.2.4",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "c73113400ee7b46a21d225077b23b41c180ad86c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.2.4.tgz",
        "fileCount": 8,
        "integrity": "sha512-IP7xtJGpaqbzj7Jn3KMhvVPVp3W7LXGbtz/D1dd147ocWg/7nl9TT28TQ+/o+qmn1hI2oCrI86vUvv9WlIbGwQ==",
        "signatures": [
          {
            "sig": "MEYCIQCfgTCRGOrRjWDT7vzgyNfdi6eIi26RSCR3B6fHwG2LEAIhAMNKfcNNgBZCG6HucAoNhELgZ43Xst1Vj234HB+Luek9",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 15487
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "0a2c789a3f7191d08f76ea454269d0799d3904d8",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.1.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.3",
        "rollup": "^4.3.0",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.2.4_1699273706344_0.19500657829568468",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.2.5": {
      "name": "gc-hook",
      "version": "0.2.5",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.2.5",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "5154636e68068a4803619e8bf6b79516397f7b49",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.2.5.tgz",
        "fileCount": 8,
        "integrity": "sha512-808B9hJ1T7ak4HRYdXgQjDaHexlaUOBuNFuqOnYotxfKjOHTDxAy8r1Oe7LI+KBeb/H6XUBKzuYi626DjxhxIg==",
        "signatures": [
          {
            "sig": "MEUCIEFUxXIh2zwRy4dh7KL2yazPrh0Us2Yc88t90Owo8lkCAiEAn87gzoOMlL1Q2Y3ef+VA0PHNJq8yntZmYANPzZGTIyc=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 14985
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "745131236aa6b7e3cfa3942d25f652defacb6f39",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.1.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "20.8.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.3",
        "rollup": "^4.3.0",
        "typescript": "^5.2.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.2.5_1700048783263_0.966324850039517",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.3.0": {
      "name": "gc-hook",
      "version": "0.3.0",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.3.0",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "9d5fc4797c988f501df761d26f4d6478a2fed90d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.3.0.tgz",
        "fileCount": 11,
        "integrity": "sha512-Qkp0HM3z839Ns0LpXFJBXqClNW23wQo6JpUdJAjuf1/2jB+oUWSOMzeMv2yFq8Ur45z8IWw9hpRhkSjxSt5RWg==",
        "signatures": [
          {
            "sig": "MEUCIQDpoLl7fswgLrFij36p7gVVnO5GszTw4rLkiIMsS9KqywIgbZZDFCmSGe9EOGzP9aE8ezM0rwDgm3mnzjZ0sOffz88=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 18278
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./memory": {
          "types": "./types/memory.d.ts",
          "import": "./esm/memory.js",
          "default": "./cjs/memory.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "1c1f1d00e9d5fba2738e844cd3762500853933de",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.2.4",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "21.2.0",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.3",
        "rollup": "^4.6.1",
        "typescript": "^5.3.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.3.0_1701345457269_0.41319722834386474",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.3.1": {
      "name": "gc-hook",
      "version": "0.3.1",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.3.1",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "033e7f493e6a79682eeca8abee1a5eed61746476",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.3.1.tgz",
        "fileCount": 11,
        "integrity": "sha512-E5M+O/h2o7eZzGhzRZGex6hbB3k4NWqO0eA+OzLRLXxhdbYPajZnynPwAtphnh+cRHPwsj5Z80dqZlfI4eK55A==",
        "signatures": [
          {
            "sig": "MEYCIQC0IGlaUo8jobQRxm6XDgWW5Q3b10ACGs3d1piiD7y0owIhALwycuiY+kOrbZmTz/DDU7I8jOR4nitx0ahgKtnOaiHH",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 19351
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./memory": {
          "types": "./types/memory.d.ts",
          "import": "./esm/memory.js",
          "default": "./cjs/memory.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "74fc5e18f5c28b8755b5b1f9a2b1fb76bf40f015",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.4.0",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "21.6.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.1",
        "ascjs": "^6.0.3",
        "rollup": "^4.6.1",
        "typescript": "^5.3.2",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.3.1_1706628065242_0.4138867456360624",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.4.0": {
      "name": "gc-hook",
      "version": "0.4.0",
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "_id": "gc-hook@0.4.0",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "dist": {
        "shasum": "6805597f9b1ed55ec467296b7fbe1df404f7d069",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.4.0.tgz",
        "fileCount": 15,
        "integrity": "sha512-VgPjRRlRxM1w6IXLFA9d18YRGk94tkrv7oY4CACZ6BqXZiz+6kSlwcPWP8AjFuF28M38x2oXH2jNYLm1hB0puQ==",
        "signatures": [
          {
            "sig": "MEUCIAWDTwlQtIU1Hf42QXOOB4p6UJyq+/3yOdz/lsPrBHbEAiEAgLlBEsVL68ejRnQLkb581xvJv5Zgg8cRR43mgKXL1M8=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 21559
      },
      "main": "./cjs/index.js",
      "type": "module",
      "unpkg": "es.js",
      "module": "./esm/index.js",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./track": {
          "types": "./types/track.d.ts",
          "import": "./esm/track.js",
          "default": "./cjs/track.js"
        },
        "./memory": {
          "types": "./types/memory.d.ts",
          "import": "./esm/memory.js",
          "default": "./cjs/memory.js"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "beec8dab8d9e8dd6f5fb442c6b973db2d17487f8",
      "scripts": {
        "ts": "tsc -p .",
        "cjs": "ascjs esm cjs",
        "test": "c8 node --expose-gc test/index.js",
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/gc-hook.git",
        "type": "git"
      },
      "_npmVersion": "10.8.2",
      "description": "A simplified FinalizationRegistry utility that works",
      "directories": {
        "test": "test"
      },
      "_nodeVersion": "22.5.1",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^10.1.2",
        "ascjs": "^6.0.3",
        "rollup": "^4.19.2",
        "typescript": "^5.5.4",
        "@rollup/plugin-terser": "^0.4.4",
        "@rollup/plugin-node-resolve": "^15.2.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/gc-hook_0.4.0_1722513538400_0.4139310206849247",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.4.1": {
      "name": "gc-hook",
      "version": "0.4.1",
      "description": "A simplified FinalizationRegistry utility that works",
      "main": "./cjs/index.js",
      "scripts": {
        "build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
        "cjs": "ascjs esm cjs",
        "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
        "rollup:index": "rollup --config rollup/index.config.js",
        "test": "c8 node --expose-gc test/index.js",
        "ts": "tsc -p .",
        "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info"
      },
      "keywords": [
        "FinalizationRegistry",
        "simple",
        "GC",
        "Proxy"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "ISC",
      "devDependencies": {
        "@rollup/plugin-node-resolve": "^15.2.3",
        "@rollup/plugin-terser": "^0.4.4",
        "ascjs": "^6.0.3",
        "c8": "^10.1.2",
        "rollup": "^4.19.2",
        "typescript": "^5.5.4"
      },
      "module": "./esm/index.js",
      "type": "module",
      "exports": {
        ".": {
          "types": "./types/index.d.ts",
          "import": "./esm/index.js",
          "default": "./cjs/index.js"
        },
        "./memory": {
          "types": "./types/memory.d.ts",
          "import": "./esm/memory.js",
          "default": "./cjs/memory.js"
        },
        "./track": {
          "types": "./types/track.d.ts",
          "import": "./esm/track.js",
          "default": "./cjs/track.js"
        },
        "./package.json": "./package.json"
      },
      "unpkg": "es.js",
      "directories": {
        "test": "test"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/WebReflection/gc-hook.git"
      },
      "bugs": {
        "url": "https://github.com/WebReflection/gc-hook/issues"
      },
      "homepage": "https://github.com/WebReflection/gc-hook#readme",
      "_id": "gc-hook@0.4.1",
      "gitHead": "bbc49f04ea054d9fa4a7b7e86a6e2fa3242f856b",
      "_nodeVersion": "22.5.1",
      "_npmVersion": "10.8.2",
      "dist": {
        "integrity": "sha512-uiF+uUftDVLr+VRdudsdsT3/LQYnv2ntwhRH964O7xXDI57Smrek5olv75Wb8Nnz6U+7iVTRXsBlxKcsaDTJTQ==",
        "shasum": "61e0ef4c5c2a13ae6f938cc2b0b9a71a94a12e68",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/gc-hook/-/gc-hook-0.4.1.tgz",
        "fileCount": 15,
        "unpackedSize": 21618,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHDChbm2siRdQtYn2HUryVODCkXcFq6xrmOEhuEA861sAiEA1znWYFvNnt3pHt/ya3sWLxypffZm+JorRi1GM6SaPxM="
          }
        ]
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/gc-hook_0.4.1_1722514140953_0.8409905211209348"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "gc-hook",
  "time": {
    "created": "2023-10-18T20:41:57.865Z",
    "modified": "2026-05-06T08:26:01.451Z",
    "0.0.0": "2023-10-18T20:41:58.092Z",
    "0.1.0": "2023-10-19T09:43:35.423Z",
    "0.1.1": "2023-10-19T10:03:42.095Z",
    "0.1.2": "2023-10-20T14:55:02.994Z",
    "0.2.0": "2023-10-20T15:14:11.306Z",
    "0.2.1": "2023-10-20T15:31:09.768Z",
    "0.2.2": "2023-10-22T13:22:10.338Z",
    "0.2.3": "2023-10-22T13:23:25.012Z",
    "0.2.4": "2023-11-06T12:28:26.616Z",
    "0.2.5": "2023-11-15T11:46:23.503Z",
    "0.3.0": "2023-11-30T11:57:37.453Z",
    "0.3.1": "2024-01-30T15:21:05.404Z",
    "0.4.0": "2024-08-01T11:58:58.556Z",
    "0.4.1": "2024-08-01T12:09:01.157Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/WebReflection/gc-hook#readme"
}