{"_id":"@benedictleejh/nuxt-sanitise-html","_rev":"9-54e2f6a25e2a27dba638ad512e500c88","name":"@benedictleejh/nuxt-sanitise-html","dist-tags":{"latest":"1.1.5"},"versions":{"1.0.0":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.0.0","license":"MIT","_id":"@benedictleejh/nuxt-sanitise-html@1.0.0","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"homepage":"https://github.com/benedictleejh/nuxt-sanitise-html#readme","bugs":{"url":"https://github.com/benedictleejh/nuxt-sanitise-html/issues"},"dist":{"shasum":"dfdda12817be0dc10e0d04567f091f8a9f98980c","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.0.0.tgz","fileCount":12,"integrity":"sha512-OjWMjcrYWdf5Wyv623xm5up6ghtoklB2PpgbqS5SZ9VlNiYlBovh4Ec+z5cj2vkZ62nn69FkPncIxj88Qp7cPA==","signatures":[{"sig":"MEQCIE2Q+KEU7fRlFnT/tidcaimb/iOI/DIO5TdEHPGXloKUAiA6dkY4lcpPpY7NwafLl+fWXI+cxTtP1V6R5C+SgM8HhA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15032},"main":"./dist/module.mjs","type":"module","_from":"file:benedictleejh-nuxt-sanitise-html-1.0.0.tgz","exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","lint":"eslint --max-warnings 0 .","test":"vitest run","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","test:watch":"vitest watch","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground"},"_npmUser":{"name":"benedictleejh","email":"benedictleejh@gmail.com"},"_resolved":"/tmp/a34661d721d69f294bfab92921d368fc/benedictleejh-nuxt-sanitise-html-1.0.0.tgz","_integrity":"sha512-OjWMjcrYWdf5Wyv623xm5up6ghtoklB2PpgbqS5SZ9VlNiYlBovh4Ec+z5cj2vkZ62nn69FkPncIxj88Qp7cPA==","repository":{"url":"git+https://github.com/benedictleejh/nuxt-sanitise-html.git","type":"git"},"_npmVersion":"11.3.0","description":"A Nuxt module to sanitise HTML to protect against XSS attacks","directories":{},"_nodeVersion":"24.0.1","dependencies":{"@nuxt/kit":"^4.1.2","ts-pattern":"^5.8.0","change-case":"^5.4.4","isomorphic-dompurify":"^2.28.0"},"typesVersions":{"*":{".":["./dist/types.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.22","jiti":"^2.6.0","nuxt":"^4.1.2","husky":"^9.1.7","eslint":"^9.36.0","vitest":"^3.2.4","vue-tsc":"^3.1.0","typescript":"^5.9.2","@types/node":"latest","changelogen":"^0.6.2","lint-staged":"^16.2.3","@nuxt/schema":"^4.1.2","@types/jsdom":"^21.1.7","@nuxt/devtools":"^2.6.5","@nuxt/test-utils":"^3.19.2","@nuxt/eslint-config":"^1.9.0","@nuxt/module-builder":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-sanitise-html_1.0.0_1760171154768_0.9716473504457905","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.0.1","license":"MIT","_id":"@benedictleejh/nuxt-sanitise-html@1.0.1","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"homepage":"https://github.com/benedictleejh/nuxt-sanitise-html#readme","bugs":{"url":"https://github.com/benedictleejh/nuxt-sanitise-html/issues"},"dist":{"shasum":"656f59f32d1e96cea240359510efd6b48dc89f92","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.0.1.tgz","fileCount":12,"integrity":"sha512-MTF7DYDCfwLAnY398FKdUcMcmG5TsdGFgBi064/63UrG7Qh0CKJ+wf0slp0QJWJKyikU1M3xYUFEK/2ZZdZk7Q==","signatures":[{"sig":"MEYCIQCUK1jaOBEn4pG+jSmOaFgQZUpBC0v5T5kZtDGMu/O7iAIhAPHLz6WlGv/Vor4b2JKscWak7uOADmn1AeeZeBmJ0Xs5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@benedictleejh%2fnuxt-sanitise-html@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15032},"main":"./dist/module.mjs","type":"module","_from":"file:benedictleejh-nuxt-sanitise-html-1.0.1.tgz","exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","lint":"eslint --max-warnings 0 .","test":"vitest run","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","test:watch":"vitest watch","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4125caf6-1222-4e51-8b6c-74f21383946f"}},"_resolved":"/tmp/1a72c7c3f6d6828190aa193c97f84208/benedictleejh-nuxt-sanitise-html-1.0.1.tgz","_integrity":"sha512-MTF7DYDCfwLAnY398FKdUcMcmG5TsdGFgBi064/63UrG7Qh0CKJ+wf0slp0QJWJKyikU1M3xYUFEK/2ZZdZk7Q==","repository":{"url":"git+https://github.com/benedictleejh/nuxt-sanitise-html.git","type":"git"},"_npmVersion":"11.6.2","description":"A Nuxt module to sanitise HTML to protect against XSS attacks","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@nuxt/kit":"^4.1.2","ts-pattern":"^5.8.0","change-case":"^5.4.4","isomorphic-dompurify":"^2.28.0"},"typesVersions":{"*":{".":["./dist/types.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.22","jiti":"^2.6.0","nuxt":"^4.1.2","husky":"^9.1.7","eslint":"^9.36.0","vitest":"^3.2.4","vue-tsc":"^3.1.0","typescript":"^5.9.2","@types/node":"latest","changelogen":"^0.6.2","lint-staged":"^16.2.3","@nuxt/schema":"^4.1.2","@types/jsdom":"^21.1.7","@nuxt/devtools":"^2.6.5","@nuxt/test-utils":"^3.19.2","@nuxt/eslint-config":"^1.9.0","@nuxt/module-builder":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-sanitise-html_1.0.1_1760188074658_0.17259421958701981","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.0.2","license":"MIT","_id":"@benedictleejh/nuxt-sanitise-html@1.0.2","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"homepage":"https://github.com/benedictleejh/nuxt-sanitise-html#readme","bugs":{"url":"https://github.com/benedictleejh/nuxt-sanitise-html/issues"},"dist":{"shasum":"9dfb18cfaf03aa25ca3b3aaaf91e02b1d5d4d12b","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.0.2.tgz","fileCount":12,"integrity":"sha512-y7NyRQ9PsdhsVadUKUMdm8CsR4btNsSAoBtJB6gfhGiDKgRxqpV0ymyiLAFjEf18ro2YUMWYzTK2Vu8GUHeaqA==","signatures":[{"sig":"MEQCIELJ0N8ebaAkC3pIXNZ7ikc+H/CbbIf201NCsuCtZxCmAiB6Kr80JmgIRy2d5HmmDgFZlYwmZCNR2LNQlXTas9AHag==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@benedictleejh%2fnuxt-sanitise-html@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15384},"main":"./dist/module.mjs","type":"module","_from":"file:benedictleejh-nuxt-sanitise-html-1.0.2.tgz","exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","lint":"eslint --max-warnings 0 .","test":"vitest run","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","test:watch":"vitest watch","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4125caf6-1222-4e51-8b6c-74f21383946f"}},"_resolved":"/tmp/e3116cbbf09a73578d8677fe2d8fadfb/benedictleejh-nuxt-sanitise-html-1.0.2.tgz","_integrity":"sha512-y7NyRQ9PsdhsVadUKUMdm8CsR4btNsSAoBtJB6gfhGiDKgRxqpV0ymyiLAFjEf18ro2YUMWYzTK2Vu8GUHeaqA==","repository":{"url":"git+https://github.com/benedictleejh/nuxt-sanitise-html.git","type":"git"},"_npmVersion":"11.6.2","description":"A Nuxt module to sanitise HTML to protect against XSS attacks","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@nuxt/kit":"^4.1.3","ts-pattern":"^5.8.0","change-case":"^5.4.4","isomorphic-dompurify":"^2.28.0"},"typesVersions":{"*":{".":["./dist/types.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.22","jiti":"^2.6.1","nuxt":"^4.1.3","husky":"^9.1.7","eslint":"^9.37.0","vitest":"^3.2.4","vue-tsc":"^3.1.0","typescript":"^5.9.3","@types/node":"latest","changelogen":"^0.6.2","lint-staged":"^16.2.3","@nuxt/schema":"^4.1.3","@nuxt/devtools":"^2.6.5","@nuxt/test-utils":"^3.19.2","@nuxt/eslint-config":"^1.9.0","@nuxt/module-builder":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-sanitise-html_1.0.2_1760245384710_0.5121804008295638","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.0.3","keywords":["nuxt","vue","vue-directive","dom","xss","html","dompurify","security","sanitize","sanitizer"],"license":"MIT","_id":"@benedictleejh/nuxt-sanitise-html@1.0.3","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"homepage":"https://github.com/benedictleejh/nuxt-sanitise-html#readme","bugs":{"url":"https://github.com/benedictleejh/nuxt-sanitise-html/issues"},"dist":{"shasum":"272f17074c04bc485a79b7dd46164e04dc366a1a","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.0.3.tgz","fileCount":12,"integrity":"sha512-yLmbdlt28/dQh2OTl71P8K/LiY87T46K1mc38jfnCU4P71yrYbLIP+t2pGm0zCsYgxWiS/KRz5NFRVozjjpJhQ==","signatures":[{"sig":"MEUCIQDdJCLCjRu7zoULK4g8HtJGdeEXR1lhr5FA8PtrcVUz9AIgLRwZUZFG3hC2bhfZhUFsLnO19kADPf/tBAOtaoyKX+8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@benedictleejh%2fnuxt-sanitise-html@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15736},"main":"./dist/module.mjs","type":"module","_from":"file:benedictleejh-nuxt-sanitise-html-1.0.3.tgz","exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","lint":"eslint --max-warnings 0 .","test":"vitest run","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","test:watch":"vitest watch","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4125caf6-1222-4e51-8b6c-74f21383946f"}},"_resolved":"/tmp/ac59f44e80522299f6f5a74f75af723b/benedictleejh-nuxt-sanitise-html-1.0.3.tgz","_integrity":"sha512-yLmbdlt28/dQh2OTl71P8K/LiY87T46K1mc38jfnCU4P71yrYbLIP+t2pGm0zCsYgxWiS/KRz5NFRVozjjpJhQ==","repository":{"url":"git+https://github.com/benedictleejh/nuxt-sanitise-html.git","type":"git"},"_npmVersion":"11.6.2","description":"A Nuxt module to sanitise HTML to protect against XSS attacks","directories":{},"_nodeVersion":"22.21.1","dependencies":{"@nuxt/kit":"^4.2.1","ts-pattern":"^5.9.0","change-case":"^5.4.4","isomorphic-dompurify":"^2.31.0"},"typesVersions":{"*":{".":["./dist/types.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.24","jiti":"^2.6.1","nuxt":"^4.2.1","husky":"^9.1.7","eslint":"^9.39.1","vitest":"^3.2.4","vue-tsc":"^3.1.3","typescript":"^5.9.3","@types/node":"latest","changelogen":"^0.6.2","lint-staged":"^16.2.6","@nuxt/schema":"^4.2.1","@nuxt/devtools":"^3.1.0","@nuxt/test-utils":"^3.20.1","@nuxt/eslint-config":"^1.10.0","@nuxt/module-builder":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-sanitise-html_1.0.3_1763210303235_0.5026515671445331","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.1.0","keywords":["nuxt","vue","vue-directive","dom","xss","html","dompurify","security","sanitize","sanitizer"],"license":"MIT","_id":"@benedictleejh/nuxt-sanitise-html@1.1.0","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"homepage":"https://github.com/benedictleejh/nuxt-sanitise-html#readme","bugs":{"url":"https://github.com/benedictleejh/nuxt-sanitise-html/issues"},"dist":{"shasum":"a98660a842d3eb5a5ff7d8c1e2b360f6c789ec15","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.1.0.tgz","fileCount":12,"integrity":"sha512-yJvZgXkIc8xtu6gkiQZKBsLN7us0jecjLuOmft9/ZpuBfMm68FVU8DkgWKt5HUVv7FjHDLE77PxiVdn3u5K+cQ==","signatures":[{"sig":"MEQCIES7eST9qWBlyhjt4mfveVYxHhax4DdurSxvgWv2mSysAiA4nF5YYQFEW7PMXymrrq2e5Ag1T4kag2SpwVYlTIwkrg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@benedictleejh%2fnuxt-sanitise-html@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15736},"main":"./dist/module.mjs","type":"module","_from":"file:benedictleejh-nuxt-sanitise-html-1.1.0.tgz","exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","lint":"eslint --max-warnings 0 .","test":"vitest run","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","test:watch":"vitest watch","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4125caf6-1222-4e51-8b6c-74f21383946f"}},"_resolved":"/tmp/34b36efa4328f2bda0cc145d37467b06/benedictleejh-nuxt-sanitise-html-1.1.0.tgz","_integrity":"sha512-yJvZgXkIc8xtu6gkiQZKBsLN7us0jecjLuOmft9/ZpuBfMm68FVU8DkgWKt5HUVv7FjHDLE77PxiVdn3u5K+cQ==","repository":{"url":"git+https://github.com/benedictleejh/nuxt-sanitise-html.git","type":"git"},"_npmVersion":"11.6.4","description":"A Nuxt module to sanitise HTML to protect against XSS attacks","directories":{},"_nodeVersion":"22.21.1","dependencies":{"@nuxt/kit":"^4.0.0","ts-pattern":"^5.9.0","change-case":"^5.4.4","isomorphic-dompurify":"^2.31.0"},"typesVersions":{"*":{".":["./dist/types.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.24","jiti":"^2.6.1","nuxt":"^4.2.1","husky":"^9.1.7","eslint":"^9.39.1","vitest":"^3.2.4","vue-tsc":"^3.1.3","typescript":"^5.9.3","@types/node":"latest","changelogen":"^0.6.2","lint-staged":"^16.2.6","@nuxt/schema":"^4.2.1","@nuxt/devtools":"^3.1.0","@nuxt/test-utils":"^3.20.1","@nuxt/eslint-config":"^1.10.0","@nuxt/module-builder":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-sanitise-html_1.1.0_1764738783244_0.6048668144072644","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.1.2","keywords":["nuxt","vue","vue-directive","dom","xss","html","dompurify","security","sanitize","sanitizer"],"license":"MIT","_id":"@benedictleejh/nuxt-sanitise-html@1.1.2","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"homepage":"https://github.com/benedictleejh/nuxt-sanitise-html#readme","bugs":{"url":"https://github.com/benedictleejh/nuxt-sanitise-html/issues"},"dist":{"shasum":"f9c353b3281f78177d4a57906a8508a2932c1191","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.1.2.tgz","fileCount":12,"integrity":"sha512-mrBUD9icVyQ4w2K5N/UDWhxqWwnb4551OmsgoqMIradTO06O0l3qg1cCy6gnTvzzydEmKraRl6z9noJsgyjz9w==","signatures":[{"sig":"MEYCIQCYQ7j2IJImr0JyNDKHxAbsH95UiG7F7Zanvh3BFNgfUQIhAJFsdd4bIIthYCLf+7qYTjYqj1Zng7p3Y2bAaKlh6dmY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@benedictleejh%2fnuxt-sanitise-html@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15887},"main":"./dist/module.mjs","type":"module","_from":"file:benedictleejh-nuxt-sanitise-html-1.1.2.tgz","exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","lint":"eslint --max-warnings 0 .","test":"vitest run","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","test:watch":"vitest watch","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4125caf6-1222-4e51-8b6c-74f21383946f"}},"_resolved":"/tmp/050457759b206aea9c78fec558aeff83/benedictleejh-nuxt-sanitise-html-1.1.2.tgz","_integrity":"sha512-mrBUD9icVyQ4w2K5N/UDWhxqWwnb4551OmsgoqMIradTO06O0l3qg1cCy6gnTvzzydEmKraRl6z9noJsgyjz9w==","repository":{"url":"git+https://github.com/benedictleejh/nuxt-sanitise-html.git","type":"git"},"_npmVersion":"11.7.0","description":"A Nuxt module to sanitise HTML to protect against XSS attacks","directories":{},"_nodeVersion":"22.21.1","dependencies":{"jsdom":"^27.0.0","@nuxt/kit":"^4.0.0","dompurify":"^3.3.1","ts-pattern":"^5.9.0","change-case":"^5.4.4"},"typesVersions":{"*":{".":["./dist/types.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.26","jiti":"^2.6.1","nuxt":"^4.2.2","husky":"^9.1.7","eslint":"^9.39.2","vitest":"^3.2.4","vue-tsc":"^3.2.2","typescript":"^5.9.3","@types/node":"latest","changelogen":"^0.6.2","lint-staged":"^16.2.7","@nuxt/schema":"^4.2.2","@types/jsdom":"^27.0.0","@nuxt/devtools":"^3.1.1","@nuxt/test-utils":"^3.23.0","@nuxt/eslint-config":"^1.12.1","@nuxt/module-builder":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-sanitise-html_1.1.2_1768643341744_0.201904694794937","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.1.3","keywords":["nuxt","vue","vue-directive","dom","xss","html","dompurify","security","sanitize","sanitizer"],"license":"MIT","_id":"@benedictleejh/nuxt-sanitise-html@1.1.3","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"homepage":"https://github.com/benedictleejh/nuxt-sanitise-html#readme","bugs":{"url":"https://github.com/benedictleejh/nuxt-sanitise-html/issues"},"dist":{"shasum":"cbfc4e534912c4430cc9f1577d30655bfbdd3c2a","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.1.3.tgz","fileCount":12,"integrity":"sha512-gtUEt1+svZKv5cXEJuZBpE1wEA/Fy0+tdnAGL1+7b8EtKbJX3qRHsyVSSM4FTd6QqNlgy1ankI5mFWoLVVbt+A==","signatures":[{"sig":"MEUCIQC+Q/r+DV5Vcg4H8iEk1gwF5EPY5bHNwo+S3t2Or3PXkgIgdx/NMhUjbAHD+YAwKSCHVBFekNsBTd1xGEMHSF7Hc3c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@benedictleejh%2fnuxt-sanitise-html@1.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15886},"main":"./dist/module.mjs","type":"module","_from":"file:benedictleejh-nuxt-sanitise-html-1.1.3.tgz","exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","lint":"eslint --max-warnings 0 .","test":"vitest run","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","test:watch":"vitest watch","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4125caf6-1222-4e51-8b6c-74f21383946f"}},"_resolved":"/tmp/a295c6321ef3be3f7936397fdeeeece4/benedictleejh-nuxt-sanitise-html-1.1.3.tgz","_integrity":"sha512-gtUEt1+svZKv5cXEJuZBpE1wEA/Fy0+tdnAGL1+7b8EtKbJX3qRHsyVSSM4FTd6QqNlgy1ankI5mFWoLVVbt+A==","repository":{"url":"git+https://github.com/benedictleejh/nuxt-sanitise-html.git","type":"git"},"_npmVersion":"11.13.0","description":"A Nuxt module to sanitise HTML to protect against XSS attacks","directories":{},"_nodeVersion":"22.22.2","dependencies":{"jsdom":"^29.0.0","@nuxt/kit":"^4.0.0","dompurify":"^3.4.1","ts-pattern":"^5.9.0","change-case":"^5.4.4"},"typesVersions":{"*":{".":["./dist/types.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.33","jiti":"^2.6.1","nuxt":"^4.2.2","husky":"^9.1.7","eslint":"^10.2.1","vitest":"^4.1.5","vue-tsc":"^3.2.7","typescript":"^5.9.3","@types/node":"latest","changelogen":"^0.6.2","lint-staged":"^16.4.0","@nuxt/schema":"^4.4.2","@types/jsdom":"^28.0.1","@nuxt/devtools":"^3.2.4","@nuxt/test-utils":"^4.0.2","@nuxt/eslint-config":"^1.15.2","@nuxt/module-builder":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-sanitise-html_1.1.3_1777624086975_0.45419280396811024","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.1.4","keywords":["nuxt","vue","vue-directive","dom","xss","html","dompurify","security","sanitize","sanitizer"],"license":"MIT","_id":"@benedictleejh/nuxt-sanitise-html@1.1.4","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"dist":{"shasum":"93afd604e4382e4fbccc527ea87c4d3818f6a883","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.1.4.tgz","fileCount":12,"integrity":"sha512-sw8YxBJ8TNr4jwagBy1XWoK0Oy1xv1REBDFqGw+agLxNurUNJDuIv9YTMudv2qnPPQRtKIFsiK2Ko4HyKC1QvQ==","signatures":[{"sig":"MEUCIHKvENLW7/Rmm4LhhDEhuC7iPZJhh9cdqMr6KieiyX58AiEA5DgqdY4LvcPBL0MIIhxvrKLluPECd5XvIQEwQjtJ4Sc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@benedictleejh%2fnuxt-sanitise-html@1.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15924},"main":"./dist/module.mjs","type":"module","exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","lint":"eslint --max-warnings 0 .","test":"vitest run","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","dev:build":"nuxi build playground","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit","test:watch":"vitest watch","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4125caf6-1222-4e51-8b6c-74f21383946f"}},"repository":{"url":"benedictleejh/nuxt-sanitise-html","type":"git"},"description":"A Nuxt module to sanitise HTML to protect against XSS attacks","directories":{},"_nodeVersion":"22.23.1","dependencies":{"jsdom":"^29.0.0","@nuxt/kit":"^4.0.0","dompurify":"^3.4.12","ts-pattern":"^5.9.0","change-case":"^5.4.4"},"typesVersions":{"*":{".":["./dist/types.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.40","jiti":"^2.7.0","nuxt":"^4.5.0","husky":"^9.1.7","eslint":"^10.8.0","vitest":"^4.1.10","vue-tsc":"^3.3.8","typescript":"^5.9.3","@types/node":"latest","changelogen":"^0.6.2","lint-staged":"^17.2.0","@nuxt/schema":"^4.5.0","@types/jsdom":"^28.0.3","@nuxt/devtools":"^3.3.1","@nuxt/test-utils":"^4.0.3","@nuxt/eslint-config":"^1.16.0","@nuxt/module-builder":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/nuxt-sanitise-html_1.1.4_1785668986243_0.4495478080648818","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"@benedictleejh/nuxt-sanitise-html","version":"1.1.5","description":"A Nuxt module to sanitise HTML to protect against XSS attacks","repository":{"type":"git","url":"benedictleejh/nuxt-sanitise-html"},"license":"MIT","type":"module","keywords":["nuxt","vue","vue-directive","dom","xss","html","dompurify","security","sanitize","sanitizer"],"exports":{".":{"types":"./dist/types.d.mts","import":"./dist/module.mjs"}},"main":"./dist/module.mjs","typesVersions":{"*":{".":["./dist/types.d.mts"]}},"dependencies":{"@nuxt/kit":"^4.0.0","change-case":"^5.4.4","dompurify":"^3.4.14","jsdom":"^28.0.0 || ^29.0.0 || ^30.0.0","ts-pattern":"^5.9.0"},"devDependencies":{"@nuxt/devtools":"^3.4.2","@nuxt/eslint-config":"^1.17.0","@nuxt/module-builder":"^1.0.3","@nuxt/schema":"^4.5.0","@nuxt/test-utils":"^4.2.0","@types/node":"latest","@types/jsdom":"^30.0.0","changelogen":"^0.6.2","eslint":"^10.10.0","husky":"^9.1.7","jiti":"^2.7.0","lint-staged":"^17.5.0","nuxt":"^4.5.2","typescript":"^5.9.3","vitest":"^4.1.11","vue":"^3.5.42","vue-tsc":"^3.3.11"},"scripts":{"dev":"pnpm dev:prepare && nuxt dev playground","dev:build":"nuxi build playground","dev:prepare":"nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground","release":"pnpm lint && pnpm test && pnpm prepack && changelogen --release && pnpm publish --access public && git push --follow-tags && changelogen gh release","lint":"eslint --max-warnings 0 .","test":"vitest run","test:watch":"vitest watch","test:types":"vue-tsc --noEmit && cd playground && vue-tsc --noEmit"},"_nodeVersion":"22.23.2","_id":"@benedictleejh/nuxt-sanitise-html@1.1.5","dist":{"integrity":"sha512-v69nn3gl40W8jrlcSrvvHFzQhAJyuhHYMQerYlLQRWYbZ8RcMJKpfjIgnWzcD94budCx+t7+cww+pt4nOp8LMA==","shasum":"27eab64177214795b96c45cdaddd1313ffab2955","tarball":"https://registry.npmjs.org/@benedictleejh/nuxt-sanitise-html/-/nuxt-sanitise-html-1.1.5.tgz","fileCount":12,"unpackedSize":15948,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@benedictleejh%2fnuxt-sanitise-html@1.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCWPBXu2fO7Q1YJYd79HlCPPCav0Q1jQr8R9bjajW+jPAIhAMQx/i9lvZwRP5VFns4ss4JkLrUkO6H/CJbvbqZqDid5"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4125caf6-1222-4e51-8b6c-74f21383946f"}},"directories":{},"maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nuxt-sanitise-html_1.1.5_1789206770092_0.3418341119881101"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-11T08:25:54.675Z","modified":"2026-09-12T09:52:50.509Z","1.0.0":"2025-10-11T08:25:54.954Z","1.0.1":"2025-10-11T13:07:54.858Z","1.0.2":"2025-10-12T05:03:04.895Z","1.0.3":"2025-11-15T12:38:23.439Z","1.1.0":"2025-12-03T05:13:03.439Z","1.1.2":"2026-01-17T09:49:01.905Z","1.1.3":"2026-05-01T08:28:07.150Z","1.1.4":"2026-08-02T11:09:46.397Z","1.1.5":"2026-09-12T09:52:50.222Z"},"license":"MIT","keywords":["nuxt","vue","vue-directive","dom","xss","html","dompurify","security","sanitize","sanitizer"],"repository":{"type":"git","url":"benedictleejh/nuxt-sanitise-html"},"description":"A Nuxt module to sanitise HTML to protect against XSS attacks","maintainers":[{"name":"benedictleejh","email":"benedictleejh@gmail.com"}],"readme":"<!--\nGet your module up and running quickly.\n\nFind and replace all on all files (CMD+SHIFT+F):\n- Name: My Module\n- Package name: @benedictleejh/nuxt-sanitise-html\n- Description: My new Nuxt module\n-->\n\n# Nuxt Sanitise HTML\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n[![Nuxt][nuxt-src]][nuxt-href]\n\nNuxt module for sanitising HTML, as a safe replacement for using `v-html`, protecting against XSS attacks through\nsanitising HTML inputs.\n\n- [✨ &nbsp;Release Notes](/CHANGELOG.md)\n<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/@benedictleejh/nuxt-sanitise-html?file=playground%2Fapp.vue) -->\n<!-- - [📖 &nbsp;Documentation](https://example.com) -->\n\n## Features\n\n<!-- Highlight some of the features your module provide here -->\n- Adds `v-sanitise-html` directive as a safe replacement for `v-html`\n- Supports sanitisation profiles to allow configuration as needed for different use cases\n- Supports configuring hooks for advanced sanitisation needs\n\n## Setup\n\n<!-- Install the module to your Nuxt application with one command:\n\n```bash\nnpx nuxi module add @benedictleejh/nuxt-sanitise-html\n```\n\nThat's it! You can now use Nuxt Sanitise HTML in your Nuxt app ✨ -->\nInstall the module from NPM using your package manager of choice, e.g. pnpm\n\n```bash\npnpm add -D @benedictleejh/nuxt-sanitise-html\n```\n\nThen add the module to your Nuxt config file:\n\n```ts\nexport default defineNuxtConfig({\n  modules: ['@benedictleejh/nuxt-sanitise-html'],\n})\n```\n\n## Usage\n\n### Basic\n\nThe module works without any configuration needed. Just use `v-sanitise-html` instead of `v-html` when you need to\nsanitise HTML input. This uses DOMPurify's default configuration for sanitisation.\n\n```vue\n<script setup lang=\"ts\">\nconst xssAttack = `<p>Hello<script>alert('This is an XSS attack!')</` + `script> World</p>`\n</script>\n\n<template>\n  <div v-sanitise-html=\"xssAttack\" />\n</template>\n```\n\nThe output HTML would be:\n\n```html\n<p>HelloWorld</p>\n```\n\nYou can setup different sanitisaton configurations (profiles) in app config (`app.config.ts`) using the `sanitiseHtml`\nkey.\n\n```ts\nexport default defineAppConfig({\n  sanitiseHtml: {\n    profiles: {\n      profileName: {\n        config: {\n          allowedTags: [\n            'h1'\n          ]\n        }\n      }\n    }\n  }\n})\n```\n\nThe profile names can be used as arguments to `v-sanitise-html` to use that profile instead of the default profile.\n\n```vue\n<script setup lang=\"ts\">\nconst xssAttack = `<p>Hello<script>alert('This is an XSS attack!')</` + `script> World</p>`\n</script>\n\n<template>\n  <div v-sanitise-html:profileName=\"xssAttack\" />\n</template>\n```\n\nYou can also override the profile used when calling `v-sanitise-html` without arguments by simply setting up a profile\nwith the name `default`.\n\n```ts\nexport default defineAppConfig({\n  sanitiseHtml: {\n    profiles: {\n      // This profile is now used when using `v-sanitise-html` without arguments\n      default: {\n        config: {\n          allowedTags: [\n            'h1'\n          ]\n        }\n      }\n    }\n  }\n})\n```\n\nProfiles consist of 2 parts: the configuration, which is DOMPurify's configuration but with the keys renamed to\ncamelCase, and the hooks. Please see [DOMPurify documentation](https://github.com/cure53/DOMPurify?tab=readme-ov-file#can-i-configure-dompurify)\nfor more details the configuration. For the hooks configuration object, the keys are the DOMPurify entry point names,\nand the values are either a hook function or an array of hook functions.\n\n```ts\nexport default defineAppConfig({\n  sanitiseHtml: {\n    profiles: {\n      profileName: {\n        config: {\n          allowedTags: [\n            'h1'\n          ],\n          ...\n        },\n\n        hooks: {\n           beforeSanitizeAttributes: (currentNode) => {\n            // Do something with the node\n          },\n\n          afterSanitizeAttributes: [\n            (currentNode) => {\n              // Do something with the node\n            },\n\n            (currentNode) => {\n              // Do another with the node\n            }\n          ],\n          ...\n        }\n      }\n    }\n  }\n})\n```\n\n## Contribution\n\nThis repo follows [GitLab Flow](https://about.gitlab.com/topics/version-control/what-is-gitlab-flow/) as a branching\nmodel. All PRs should be made against `development` and not `main`.\n\n<details>\n  <summary>Local development</summary>\n  \n  ```bash\n  # Install dependencies\n  pnpm install\n  \n  # Generate type stubs\n  pnpm run dev:prepare\n  \n  # Develop with the playground\n  pnpm run dev\n  \n  # Build the playground\n  pnpm run dev:build\n  \n  # Run ESLint\n  pnpm run lint\n  \n  # Run Vitest\n  pnpm run test\n  pnpm run test:watch\n  \n  # Release new version\n  pnpm run release\n  ```\n\n</details>\n\n\n<!-- Badges -->\n[npm-version-src]: https://img.shields.io/npm/v/@benedictleejh/nuxt-sanitise-html/latest.svg?style=flat&colorA=020420&colorB=00DC82\n[npm-version-href]: https://npmjs.com/package/@benedictleejh/nuxt-sanitise-html\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/@benedictleejh/nuxt-sanitise-html.svg?style=flat&colorA=020420&colorB=00DC82\n[npm-downloads-href]: https://npm.chart.dev/@benedictleejh/nuxt-sanitise-html\n\n[license-src]: https://img.shields.io/npm/l/@benedictleejh/nuxt-sanitise-html.svg?style=flat&colorA=020420&colorB=00DC82\n[license-href]: https://npmjs.com/package/@benedictleejh/nuxt-sanitise-html\n\n[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt\n[nuxt-href]: https://nuxt.com\n","readmeFilename":""}