{"_id":"@api-hooks/osv","_rev":"14-35b0f35a3962d0d41665285f89143a31","name":"@api-hooks/osv","dist-tags":{"latest":"1.5.1"},"versions":{"1.0.0":{"name":"@api-hooks/osv","version":"1.0.0","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.0.0","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"208c989e0acc2a06abb3bf95c5697680cab48d77","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.0.0.tgz","fileCount":2,"integrity":"sha512-mzcgfvRUKUTBt2lFZM5WIdb9dh35VfOWcJ/C+IfzU4fwUUJBNIpFQjxuiwSGGiPZALNihKuwrv6AWuj3jNU/6g==","signatures":[{"sig":"MEYCIQDEQBRWWmDcyDk6zvcf6Be6sw7ux/j55PkzyaEuTdQY3wIhAP+W/wZMYvtOXpDQhACRHtgtkpvbxJJ/Yg7m8m87vCBE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2924},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js","require":"./dist/types.cjs"}},"gitHead":"26fb7f72105b073467f7b1806f8829dc89525faf","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.0.0_1776442201709_0.7573634059900878","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@api-hooks/osv","version":"1.0.1","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.0.1","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"934e2a767299d877cf31756f6f83a8c1e0b9a5fe","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.0.1.tgz","fileCount":2,"integrity":"sha512-v/ySaDXmOi1SWUVMlebLPjUXSW/7nxk7DraaWlmcUj4mhNpFh8z7ZML2LRxKoYNE1ns2+sYLcALKBEOJ/HkzCA==","signatures":[{"sig":"MEYCIQCKPBm1qUIuQkbP4cROpwTVx+0c3qnoUkESKS0tPt7zLwIhAO3aJFEWzONDN52MLQSp0mLCD9Mph1ItX/ybBCRs3Omt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2849},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"c7b3fbd5d399f9e1ae85d7946cf656a570dcae1b","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.0.1_1776485229143_0.8138971887129949","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@api-hooks/osv","version":"1.0.2","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.0.2","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"cd45095635a9c13644a6fa0db00767d4f3e8a20e","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.0.2.tgz","fileCount":24,"integrity":"sha512-rQMlyd65Ts0OUSRdFqL9kSrjztSFogJ/p/n8UtSk6ppHXU6bXG2TXFOwvOq0xBxniyFDnL6RBh5Zo+52IZG+Rg==","signatures":[{"sig":"MEUCIQDL4MHCR6WLmO/IB17n8BMnHa+pATBRy0mHMdv/AA+juwIgRstuEUe1VqKrKebeGjHkfwcEsqvEgxoriWK+l0dWLdc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"eee59bfd1f490704718bd84278ddacdc15382fb4","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.0.2_1776485686080_0.5922648410826388","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@api-hooks/osv","version":"1.0.3","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.0.3","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"edfb20760f75a79b88589f12781d2c80047b52a2","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.0.3.tgz","fileCount":24,"integrity":"sha512-rJdrWgHKQ1MD6iE/waqrMayppJVLomHEnhJRelJSWaHqwchS47+S9YV+6cZcB6p+4pf7t2OTOtK1+pbI115Fww==","signatures":[{"sig":"MEUCIQDaHB+hV00w8gzL2QC/RlLCJ5LmEerZ0Jw0bR+K4XWH4wIgcxY5W3Ak0ERA2MDvbAm3H+YkAQ4dyPz+MYFTH0AL36o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"cccc428b944520cfe3ffa3c6b06417696a88f243","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.0.3_1776487422806_0.156058108252225","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@api-hooks/osv","version":"1.0.4","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.0.4","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"fefab28d2855f17fb02154191f42d515ce613f86","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.0.4.tgz","fileCount":24,"integrity":"sha512-621eJo+9BkZcN9/jiuGWklbvpJhxyRz/Dd6qPFshIJVbatPmp1OIIzF7xXl5pJvvMbniXuoIoQaitIljVPO+VA==","signatures":[{"sig":"MEYCIQDuncn09cG4ZCuxkbuGJefHYACZCt86opyGCB+au/GhZQIhAK2S6X75XlB8qbSCADQMQmeXQcmYIvCNcmUg6zzS73/o","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"457e8d1ea4aaf18e02b0692277afa434410cac0f","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.0.4_1776488342326_0.7600679183644541","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@api-hooks/osv","version":"1.1.0","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.1.0","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"edbf548a0fdb41916b8476260bb98f7303f38e06","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.1.0.tgz","fileCount":24,"integrity":"sha512-kduyH5LYCe5s+HzVr8rJeSu2Gfsae3erwV47k9b7u8SiG8Z6xqXXAI8URx8/Xxwp5To6IL45KW+MzlFrwH7f0Q==","signatures":[{"sig":"MEQCIBlfpE7r9HMT9n+2+eqbVE4YxL21VTp57dNxZvDXfbZmAiB0D3+ZCeoqOFcYjO5N9ylM2ZhAM5jhfmPXg/ngaZALTg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"477f9e748fdadcd556dfc52f9bd977f2e927a6e6","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.1.0_1776518942881_0.1646706397345492","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@api-hooks/osv","version":"1.2.0","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.2.0","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"62eea3fa2a1c03ad159e73aa5a11309f0c8a0167","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.2.0.tgz","fileCount":24,"integrity":"sha512-h8jBkqbdN8FH4xRxDsrdhrJfHH12VEpijF0tS6oLub+Q2ExaFH36o+GdyhWRwdCw81IZKTxTyca8DiNVpgeasQ==","signatures":[{"sig":"MEYCIQDJiMvXWhERfT8YQbWOa6r6qrtluAQChZ00Q9/8HlMZZAIhAKTOTJjH1VmLEbCNki18Y8jIeDbssUuT23PDVzQ34jac","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"52d554df7f614516a2b3b30353b25bb2ca26a4cb","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.2.0_1777164615285_0.7628641921056782","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@api-hooks/osv","version":"1.3.0","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.3.0","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"20c749fbe7b0bb34f0bd062a633f808e4c70c4b5","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.3.0.tgz","fileCount":24,"integrity":"sha512-wvUkjf6Dx/OJBBJ37k7rKvr3NyrpD6cWzyXux1UZ8aA6om/x88TjJdKN1Ls+jOKERhEbwP+DoQdgBxcIspn2iw==","signatures":[{"sig":"MEQCIFsvJ7wYbMk98FiSpAyETJoAhi3IWQBZ76Go2sk0bmvSAiB6rxaIvy0HD2VfXsMzp6SdCPlNy3VeqpyP1ezMCCNX+Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"bf9da75f7c881f4dbaceb8215cbea79df7a4edb4","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.3.0_1777859021192_0.5813425896147311","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@api-hooks/osv","version":"1.4.0","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.4.0","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"96311ad47837ec5fd7933306c0f579dbf7e65880","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.4.0.tgz","fileCount":24,"integrity":"sha512-tAODKCLxcIL+m9stnsm2uTIsu75j4R799j1/8+aDMp4zBtZyLMfgikJs2YaaJAoP5H+uEygLLTX3gCQ+R/V0Ug==","signatures":[{"sig":"MEYCIQDBDrzmFL2iDcvzysyJ0aPUScHwUi86j8CQEFlcWJ5p7AIhAM0kw60dqrApwL1gubDmHB6cVxmtCzaO9jP3bjPRdTPs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"0736f8a96528761b96b1b4efa9c09bc86c31c4bc","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.4.0_1778090042392_0.374060231041494","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"@api-hooks/osv","version":"1.5.0","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.5.0","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"79d053e386ae675245d0f2a804f2197dd0346998","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.5.0.tgz","fileCount":24,"integrity":"sha512-Nz2ziSqBmwNxt4mJIHkkQUYcJBM0yUSJRN511Za9Z0tyEiU9ZbxXutV+bKgEKHkehNvP8wca40i8AlPJJ/35OA==","signatures":[{"sig":"MEUCIQCt+I020ipwt0DRAAbvmM0VmBswEVRQUmjc2P/sxIM6QgIgR57CSMZtP8oLV1DUfL4VNIq2dfSRKq2oAZ3+aXiHRfc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"e3dadb6c47638b0c96d1c69be48c8b574dbbfdc5","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"10.9.8","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.5.0_1778269781303_0.36467859072068043","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"name":"@api-hooks/osv","version":"1.6.0","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.6.0","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"9cb3013f0f0934852e5d64c11c73efe047f02263","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.6.0.tgz","fileCount":24,"integrity":"sha512-nl6ir2bElRL3D3c79zioTv5KWiymCpyea7LNqZR0U+9i0wAheE6KpH1NrjmrhyOxiRgACYPkIhNkWJcV+OGirQ==","signatures":[{"sig":"MEQCIFu/X359ynbtvs5lA5l3uWW9Zya9AjBH/saAUHxFK1rSAiBCWqg3/nlDnNhvVjAuoYj5c363DDsGYE+UQUlZ0mpOmQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20321},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"0be6e79b49f4fc26e526a920a2b82b51997351f8","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"11.14.1","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.6.0_1778602128938_0.5944101323373525","host":"s3://npm-registry-packages-npm-production"}},"1.7.0":{"name":"@api-hooks/osv","version":"1.7.0","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","_id":"@api-hooks/osv@1.7.0","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"959ad4694a2a6e6f7d9a0cf4ba62c1066f3ba9b7","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.7.0.tgz","fileCount":24,"integrity":"sha512-LqvY2ikFBNteU+uIr7yfjNoXB/MLMvikw7ctxfmFSgZanqbF+q6zzORWoH+X9eNWAMQ0PZmem0j4b+5OJuTwOw==","signatures":[{"sig":"MEYCIQDZcxgLEBCB9wwdxCOxqndbnuWd4vCBmlo1vhuuTr1mHQIhAO3YXgjiHAlxAoh9jJnpro7mgQ9ibITgwGd/6XY8WtPO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20321},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"aecab8f9fa5e23e4e8ce42316dee48a3e7724942","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"11.14.1","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.7.0_1778693732810_0.20510251257900936","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@api-hooks/osv","version":"1.3.1","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"author":{"url":"https://github.com/ElJijuna","name":"pilmee","email":"pilmee@gmail.com"},"license":"MIT","_id":"@api-hooks/osv@1.3.1","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"homepage":"https://github.com/ElJijuna/api-hooks#readme","bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"dist":{"shasum":"d545eaf1ca48a5c04093b1dbe17b0a6b3261707a","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.3.1.tgz","fileCount":24,"integrity":"sha512-HgHVE+4JYCMpH6/V5/w+PIRKlEba2/YwpWDhuCOnYrj4zSruthZtH0S1GfaZG3yzJ/lg3j8er7/ecLokRbf/4w==","signatures":[{"sig":"MEYCIQD7o+O8icNJFQvSzwSanUy2dTJaKm6c3hTL3UdWsBzqRAIhAP5PNLxZ/B0bY76XU735GXE9FKReEscamfEU7Q8SyDbi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20555},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"gitHead":"833df8c6b05d5b9d5d7c6dc7f599b83d4bed39a1","scripts":{"dev":"vite build --watch","docs":"typedoc","test":"jest --passWithNoTests","build":"vite build && tsc --emitDeclarationOnly --declarationMap","typecheck":"tsc --noEmit","test:coverage":"jest --coverage --passWithNoTests"},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"repository":{"url":"git+https://github.com/ElJijuna/api-hooks.git","type":"git","directory":"packages/osv"},"_npmVersion":"11.14.1","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","dependencies":{"osv-api-client":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.0","vite":"^8.0.8","react":"^19.0.0","typedoc":"^0.28.0","react-dom":"^19.0.0","@tanstack/react-query":"^5.0.0","@testing-library/react":"^16.0.0","jest-environment-jsdom":"^30.0.0","vite-magic-tree-shaking":"^1.0.0"},"peerDependencies":{"react":">=19.0.0","@tanstack/react-query":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/osv_1.3.1_1780439164356_0.9787014897014734","host":"s3://npm-registry-packages-npm-production"}},"1.5.1":{"name":"@api-hooks/osv","version":"1.5.1","description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"license":"MIT","homepage":"https://github.com/ElJijuna/api-hooks#readme","repository":{"type":"git","url":"git+https://github.com/ElJijuna/api-hooks.git","directory":"packages/osv"},"bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"publishConfig":{"access":"public"},"type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/types.js"}},"sideEffects":false,"scripts":{"build":"vite build && tsc --emitDeclarationOnly --declarationMap","dev":"vite build --watch","test":"jest --passWithNoTests","test:coverage":"jest --coverage --passWithNoTests","typecheck":"tsc --noEmit","docs":"typedoc"},"peerDependencies":{"@tanstack/react-query":"^5.0.0","react":">=19.0.0"},"dependencies":{"osv-api-client":"^1.0.0"},"devDependencies":{"@tanstack/react-query":"^5.101.0","@testing-library/react":"^16.3.2","jest":"^30.4.2","jest-environment-jsdom":"^30.4.1","react":"^19.2.7","react-dom":"^19.2.7","typedoc":"^0.28.19","vite":"^8.0.16","vite-magic-tree-shaking":"^1.0.0"},"author":{"name":"pilmee","email":"pilmee@gmail.com","url":"https://github.com/ElJijuna"},"gitHead":"764999a5c1d7b7d6006417f84f977877323b67e2","_id":"@api-hooks/osv@1.5.1","_nodeVersion":"22.22.3","_npmVersion":"11.14.1","dist":{"integrity":"sha512-X5nODOHXHV1cmAqfrClj6JOstESr89Aj+Mr+E3JRenkzCTkUT74+JCyb/b7S4hHDE/cinTsx+CnBSFSE5V0NTg==","shasum":"4db04c40dee480dc8ab95eaacdf92d0087f8fdc1","tarball":"https://registry.npmjs.org/@api-hooks/osv/-/osv-1.5.1.tgz","fileCount":24,"unpackedSize":20574,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD8hddzwLfdSeMvrYATznCKTWYvFmpmDDM/grh/nTBVegIgQ8Ym/Kq35sHm9qKPsuOD5R/BHWFm+unu06DuDwBKwys="}]},"_npmUser":{"name":"pilmee","email":"pilmee@gmail.com"},"directories":{},"maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/osv_1.5.1_1780939035809_0.15425007435707938"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-17T16:10:01.629Z","modified":"2026-06-08T17:17:16.095Z","1.0.0":"2026-04-17T16:10:01.846Z","1.0.1":"2026-04-18T04:07:09.261Z","1.0.2":"2026-04-18T04:14:46.222Z","1.0.3":"2026-04-18T04:43:42.939Z","1.0.4":"2026-04-18T04:59:02.459Z","1.1.0":"2026-04-18T13:29:03.046Z","1.2.0":"2026-04-26T00:50:15.688Z","1.3.0":"2026-05-04T01:43:41.353Z","1.4.0":"2026-05-06T17:54:02.540Z","1.5.0":"2026-05-08T19:49:41.456Z","1.6.0":"2026-05-12T16:08:49.112Z","1.7.0":"2026-05-13T17:35:32.966Z","1.3.1":"2026-06-02T22:26:04.518Z","1.5.1":"2026-06-08T17:17:15.957Z"},"bugs":{"url":"https://github.com/ElJijuna/api-hooks/issues"},"author":{"name":"pilmee","email":"pilmee@gmail.com","url":"https://github.com/ElJijuna"},"license":"MIT","homepage":"https://github.com/ElJijuna/api-hooks#readme","keywords":["react","hooks","osv","vulnerabilities","security","api","react-query","tanstack"],"repository":{"type":"git","url":"git+https://github.com/ElJijuna/api-hooks.git","directory":"packages/osv"},"description":"React hooks for the OSV (Open Source Vulnerabilities) API, built on @tanstack/react-query","maintainers":[{"name":"pilmee","email":"pilmee@gmail.com"}],"readme":"# @api-hooks/osv\n\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/ElJijuna/api-hooks/main/public/assets/api-hooks.png\" alt=\"api-hooks logo\" width=\"240\" />\n</p>\n\nReact hooks for the [OSV (Open Source Vulnerabilities) API](https://osv.dev), built on [`osv-api-client`](https://www.npmjs.com/package/osv-api-client) and [`@tanstack/react-query`](https://tanstack.com/query).\n\n[![npm](https://img.shields.io/npm/v/@api-hooks/osv)](https://www.npmjs.com/package/@api-hooks/osv)\n[![npm downloads](https://img.shields.io/npm/dm/@api-hooks/osv)](https://www.npmjs.com/package/@api-hooks/osv)\n[![CI](https://github.com/ElJijuna/api-hooks/actions/workflows/ci.yml/badge.svg)](https://github.com/ElJijuna/api-hooks/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](../../LICENSE)\n[![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)\n\n## Requirements\n\n| Peer dependency | Version |\n| --------------- | ------- |\n| `react` | `>=19.0.0` |\n| `@tanstack/react-query` | `^5.0.0` |\n\n## Installation\n\n```bash\nnpm install @api-hooks/osv osv-api-client @tanstack/react-query\n```\n\n## Setup\n\nWrap your application with a `QueryClientProvider` once at the root:\n\n```tsx\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nconst queryClient = new QueryClient();\n\nexport default function App() {\n  return (\n    <QueryClientProvider client={queryClient}>\n      <YourApp />\n    </QueryClientProvider>\n  );\n}\n```\n\n## Hooks\n\nQuery hooks return a [`UseQueryResult`](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) — you get the full TanStack Query API: `data`, `isLoading`, `isFetching`, `isError`, `error`, `refetch`, and more.\n\n| Hook | Description | Returns |\n| ---- | ----------- | ------- |\n| [`useOsvVuln(id, options?)`](#useosv vulnid-options) | Fetch a single vulnerability by ID | `OsvVulnerability` |\n| [`useOsvQuery(params, options?)`](#useosv queryparams-options) | Query vulnerabilities by package or commit | `OsvQueryResult` |\n| [`useOsvQueryBatch(queries, options?)`](#useosv querybatchqueries-options) | Batch-query vulnerabilities for multiple packages | `OsvBatchQueryResult` |\n\n---\n\n## API Reference\n\n### `useOsvVuln(id, options?)`\n\nFetches a single vulnerability record by its OSV ID (e.g. `'GHSA-1234-5678-9012'`, `'CVE-2021-44228'`).\n\n```tsx\nimport { useOsvVuln } from '@api-hooks/osv';\n\nfunction VulnDetail({ id }: { id: string }) {\n  const { data, isLoading, isError } = useOsvVuln(id);\n\n  if (isLoading) return <p>Loading…</p>;\n  if (isError) return <p>Vulnerability not found.</p>;\n\n  return (\n    <div>\n      <h1>{data.id}</h1>\n      <p>{data.summary}</p>\n      <p>Published: {data.published}</p>\n    </div>\n  );\n}\n```\n\n| Option | Type | Default | Description |\n| ------ | ---- | ------- | ----------- |\n| `enabled` | `boolean` | `true` | Disable the query (also disabled when `id` is empty) |\n\n---\n\n### `useOsvQuery(params, options?)`\n\nQueries the OSV database for vulnerabilities affecting a specific package version or commit.\n\n```tsx\nimport { useOsvQuery } from '@api-hooks/osv';\n\nfunction PackageVulns() {\n  const { data } = useOsvQuery({\n    package: { name: 'lodash', ecosystem: 'npm' },\n    version: '4.17.11',\n  });\n\n  return (\n    <ul>\n      {data?.vulns?.map(v => (\n        <li key={v.id}>{v.id} — {v.summary}</li>\n      ))}\n    </ul>\n  );\n}\n```\n\nThe `params` object is an `OsvQueryParams` from `osv-api-client`. You can query by:\n\n- `version` + `package` — vulnerabilities affecting a specific package version\n- `commit` — vulnerabilities introduced or fixed at a specific commit hash\n- `purl` — Package URL (e.g. `'pkg:npm/lodash@4.17.11'`)\n\n| Option | Type | Default | Description |\n| ------ | ---- | ------- | ----------- |\n| `enabled` | `boolean` | `true` | Disable the query |\n\n---\n\n### `useOsvQueryBatch(queries, options?)`\n\nBatch-queries the OSV database for multiple packages in a single request — more efficient than calling `useOsvQuery` individually for each package.\n\n```tsx\nimport { useOsvQueryBatch } from '@api-hooks/osv';\n\nfunction DependencyAudit() {\n  const { data, isLoading } = useOsvQueryBatch([\n    { package: { name: 'lodash', ecosystem: 'npm' }, version: '4.17.11' },\n    { package: { name: 'axios', ecosystem: 'npm' }, version: '0.21.0' },\n  ]);\n\n  if (isLoading) return <p>Checking vulnerabilities…</p>;\n\n  return (\n    <ul>\n      {data?.results.map((result, i) => (\n        <li key={i}>\n          {result.vulns?.length ?? 0} vulnerabilities found\n        </li>\n      ))}\n    </ul>\n  );\n}\n```\n\nThe query is automatically disabled when `queries` is an empty array.\n\n| Option | Type | Default | Description |\n| ------ | ---- | ------- | ----------- |\n| `enabled` | `boolean` | `true` | Disable the query (also disabled when `queries` is empty) |\n\n---\n\n## License\n\nMIT © [ElJijuna](https://github.com/ElJijuna)\n","readmeFilename":"README.md"}