{"_id":"@cailiao/watch-dom","_rev":"17-28c2813b3639d3e47e5c9bc64a701cf3","name":"@cailiao/watch-dom","dist-tags":{"latest":"1.0.3"},"versions":{"0.1.1":{"name":"@cailiao/watch-dom","version":"0.1.1","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@0.1.1","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"63254f4027be1846b110dd4dbd83f49cb1112fe2","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-0.1.1.tgz","fileCount":11,"integrity":"sha512-IroWrxlFrgiJO9z3DDExJ65Z55Xq8I6SZtGk2s00hWtyuktgGLleihDkoulV3C16HpEOVtDqLuOi+hPIDPzXBA==","signatures":[{"sig":"MEYCIQCSnOqSZcucr1TSrLeXBLKQGRRF3GjrTqbbmguPXyraYQIhAPPdr7/i1Qdg3oPPehVCrZh+pvEwOGqzLbrH69Ii77Ik","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35645},"main":"dist/index.cjs.browser.min.js","type":"module","module":"dist/index.esm.browser.min.js","gitHead":"b3c8c8443d3ac5c728c04b0a893752ac01b9e83f","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"prettier --check src test script & eslint --ext .js,.vue src test script","build":"node ./script/esbuild.js","major":"npm version major && npm i","minor":"npm version minor && npm i","patch":"npm version patch && npm i","prepare":"husky install","publish":"npm publish","lint:fix":"prettier --write src test script & eslint --fix --ext .js,.vue src test script","build-watch":"node ./script/esbuild.watch.js","postpublish":"git push origin master --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"8.5.0","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.1","eslint":"^8.14.0","@babel/core":"^7.17.9","lint-staged":"^13.0.3","@babel/preset-env":"^7.16.11","eslint-plugin-html":"^6.2.0","@babel/eslint-parser":"^7.17.0","eslint-config-standard":"^15.0.1"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_0.1.1_1684232257872_0.6059763737328119","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@cailiao/watch-dom","version":"0.1.2","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@0.1.2","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"569271e475924952d5a4e033f9f58809f2f4c76f","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-0.1.2.tgz","fileCount":11,"integrity":"sha512-CZfWqfaCz71tuZPW3RXPxhDEWGilPIrusIhPCD1E8eSp73giQ8dnxo6X7kyG+E47OVsgpNjEN5/IJlHEXhUKJg==","signatures":[{"sig":"MEUCIQDWrlHAsMyNj5A1B/ycErrHznLRg+YMwaJKnVYHmzxR9gIgOBQoieza6huKfJJQ5dFo1JGG1Vq6nBu62+HRMwEIlzc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36465},"main":"dist/index.cjs.browser.min.js","type":"module","module":"dist/index.esm.browser.min.js","gitHead":"332dc9936ddaca373204bec6423ddd675acab523","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"prettier --check src test script & eslint --ext .js,.vue src test script","build":"node ./script/esbuild.js","major":"npm version major && npm i","minor":"npm version minor && npm i","patch":"npm version patch && npm i","prepare":"husky install","publish":"npm publish","lint:fix":"prettier --write src test script & eslint --fix --ext .js,.vue src test script","build-watch":"node ./script/esbuild.watch.js","postpublish":"git push origin master --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"8.5.0","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.1","eslint":"^8.14.0","@babel/core":"^7.17.9","lint-staged":"^13.0.3","@babel/preset-env":"^7.16.11","eslint-plugin-html":"^6.2.0","@babel/eslint-parser":"^7.17.0","eslint-config-standard":"^15.0.1"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_0.1.2_1684287815616_0.32805778958422316","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@cailiao/watch-dom","version":"0.1.4","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@0.1.4","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"f6d6514de578716f8bb4431248d8d5cff39d6e4d","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-0.1.4.tgz","fileCount":13,"integrity":"sha512-OVOQOuzTimh44ubBy6r9XU0JnoJ9o6ffQgczxfR1a0jmcTY6pAw9nVM8emZx3dk8anllVcS63qeGYv9JRf4/zw==","signatures":[{"sig":"MEUCIBhc3LcxEdEpppKn72cObBiegyMultWtbgn/R842KI8iAiEAhufsbJkilTTkiqfNG8rCEj1Bzb3j4g6XUh/Yzy5nSos=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49324},"main":"dist/index.cjs.browser.min.js","type":"module","entry":["index.js"],"module":"dist/index.esm.browser.min.js","gitHead":"e630eed183b7203df1679fed1afa83da392898cc","outfile":"index","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"prettier --check src test script & eslint --ext .js,.vue src test script","build":"node ./script/esbuild.js","major":"npm version major && npm i","minor":"npm version minor && npm i","patch":"npm version patch && npm i","prepare":"husky install","publish":"npm publish","lint:fix":"prettier --write src test script & eslint --fix --ext .js,.vue src test script","build-watch":"node ./script/esbuild.watch.js","postpublish":"git push origin master --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"9.5.1","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"18.16.0","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.1","eslint":"^8.14.0","@babel/core":"^7.17.9","lint-staged":"^13.0.3","@babel/preset-env":"^7.16.11","eslint-plugin-html":"^6.2.0","@babel/eslint-parser":"^7.17.0","eslint-config-standard":"^15.0.1","@babel/preset-typescript":"^7.21.5","@typescript-eslint/parser":"^5.59.7","@typescript-eslint/eslint-plugin":"^5.59.7"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_0.1.4_1685095471019_0.9774565969326974","host":"s3://npm-registry-packages"}},"0.1.5":{"name":"@cailiao/watch-dom","version":"0.1.5","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@0.1.5","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"264098a3e4ac47f35393cc9033ae974ee489b4a2","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-0.1.5.tgz","fileCount":9,"integrity":"sha512-EgVVF/Pp2c17saetrGT02Oem+wU7CZ/yAknYaOC4tm9+Cm0RsLfVhf5S7rXgmMnKxfvI9S86D8+rRhNRfCh2KQ==","signatures":[{"sig":"MEUCIQCItA0rv7JDjqhBl+qdPLq3GaQWMVlD8AdXHZtUxqViFAIgOfYiUnXhSgYpkW3kQXJRpNf2NDvQlgddSQ0uIRYmHZY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27088},"main":"dist/index.cjs.browser.min.js","type":"module","entry":["index.js"],"types":"types/index.d.ts","module":"dist/index.esm.browser.min.js","gitHead":"394705a2e3bc2d973ba24017b4aa4fad91a298e5","outfile":"index","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"prettier --check src test script & eslint --ext .js,.vue src test script","build":"node ./script/esbuild.js","major":"npm version major && npm i","minor":"npm version minor && npm i","patch":"npm version patch && npm i","prepare":"husky install","publish":"npm publish","lint:fix":"prettier --write src test script & eslint --fix --ext .js,.vue src test script","build-watch":"node ./script/esbuild.watch.js","postpublish":"git push origin main --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"deprecated":"There are some known problems with this version.","repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"8.5.0","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.1","eslint":"^8.14.0","@babel/core":"^7.17.9","lint-staged":"^13.0.3","@babel/preset-env":"^7.16.11","eslint-plugin-html":"^6.2.0","@babel/eslint-parser":"^7.17.0","eslint-config-standard":"^15.0.1","@babel/preset-typescript":"^7.21.5","@typescript-eslint/parser":"^5.59.7","@typescript-eslint/eslint-plugin":"^5.59.7"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_0.1.5_1697185273097_0.24461558062614408","host":"s3://npm-registry-packages"}},"0.1.6":{"name":"@cailiao/watch-dom","version":"0.1.6","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@0.1.6","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"d2f22b290f4c119dd0afeaf6ae002e450fd7db3f","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-0.1.6.tgz","fileCount":9,"integrity":"sha512-+UDCDvEC3/KYQBH+1YmyuyWDdobAbanj6EUdFfLCkA6FwB3JZ8n406D1ZqkoG/rSbifgqJ8iBS9f7c7QVs8Brw==","signatures":[{"sig":"MEYCIQDIitWp5gYSin2YJb8dSDc2QQEzTchURTmSqP3J6+LCvgIhAIiMubuB1kbdBGnq0VtY8ao51dxwBe1pqmqVaBGzDZzv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27548},"main":"dist/index.cjs.browser.min.js","type":"module","entry":["index.js"],"types":"types/index.d.ts","module":"dist/index.esm.browser.min.js","gitHead":"394705a2e3bc2d973ba24017b4aa4fad91a298e5","outfile":"index","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"prettier --check src test script & eslint --ext .js,.vue src test script","build":"node ./script/esbuild.js","major":"npm version major && npm i --package-lock-only","minor":"npm version minor && npm i --package-lock-only","patch":"npm version patch && npm i --package-lock-only","prepare":"husky install","publish":"npm publish","lint:fix":"prettier --write src test script & eslint --fix --ext .js,.vue src test script","build-watch":"node ./script/esbuild.watch.js","postpublish":"git push origin main --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"deprecated":"There are some known problems with this version.","repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"8.5.0","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.1","eslint":"^8.14.0","@babel/core":"^7.17.9","lint-staged":"^13.0.3","@babel/preset-env":"^7.16.11","eslint-plugin-html":"^6.2.0","@babel/eslint-parser":"^7.17.0","eslint-config-standard":"^15.0.1","@babel/preset-typescript":"^7.21.5","@typescript-eslint/parser":"^5.59.7","@typescript-eslint/eslint-plugin":"^5.59.7"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_0.1.6_1697187285364_0.39961010458517765","host":"s3://npm-registry-packages"}},"0.1.7":{"name":"@cailiao/watch-dom","version":"0.1.7","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@0.1.7","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"3db498e7829cba0c837dcc82adf34f75c8051ae4","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-0.1.7.tgz","fileCount":9,"integrity":"sha512-cVriKr6sut/Z31I9SnPVy+DmhKQnfpobvJ0Z8PjbB+s0Qfj6bUFuuK5VPtTzcWhh8zL8iX7xnimZeiRAc4uCnQ==","signatures":[{"sig":"MEYCIQDnPjpkKmtAbAkhAXVxQUkYrlT3wytBkdfJAmrgiaFBkgIhAM0avuEx72fra+m7Gh+yyLEdFs+sUdNOvgjiiogDLIyF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27558},"main":"dist/index.cjs.browser.min.js","type":"module","entry":["index.js"],"types":"types/index.d.ts","module":"dist/index.esm.browser.min.js","gitHead":"394705a2e3bc2d973ba24017b4aa4fad91a298e5","outfile":"index","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"prettier --check src test script & eslint --ext .js,.vue src test script","build":"node ./script/esbuild.js","major":"npm version major && npm i --package-lock-only","minor":"npm version minor && npm i --package-lock-only","patch":"npm version patch && npm i --package-lock-only","prepare":"husky install","publish":"npm publish","lint:fix":"prettier --write src test script & eslint --fix --ext .js,.vue src test script","build-watch":"node ./script/esbuild.watch.js","postpublish":"git push origin main --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"8.5.0","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.1","eslint":"^8.14.0","@babel/core":"^7.17.9","lint-staged":"^13.0.3","@babel/preset-env":"^7.16.11","eslint-plugin-html":"^6.2.0","@babel/eslint-parser":"^7.17.0","eslint-config-standard":"^15.0.1","@babel/preset-typescript":"^7.21.5","@typescript-eslint/parser":"^5.59.7","@typescript-eslint/eslint-plugin":"^5.59.7"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_0.1.7_1697188948242_0.463392355781169","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@cailiao/watch-dom","version":"1.0.0","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@1.0.0","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"14fc5ed86ec08a163af47ce0cea0ab14db5f631a","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-1.0.0.tgz","fileCount":6,"integrity":"sha512-FoVUyhFzE63xQVun/AGBLnxsbxJijFwTdlRzCaBJx6iOyE0gGhTm4++HWUwivUqv+VMwkUdqbY2XDQ0oTKF8Ug==","signatures":[{"sig":"MEYCIQDs0Ar7e3X8h4V6qRyCL/IkNCUuqk1cH+GTQhweK+L3hQIhAMx2pjuBWLw1C6wJP7VGnfXL0iEIAs/hMKujIq3/K9Zl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16634},"main":"dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"outfile":"index","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint --fix --cache --ext .js,.ts,.vue,.mjs,cjs --max-warnings=0 src","build":"vite build","major":"npm version major","minor":"npm version minor","patch":"npm version patch","verify":"pnpm run type-check && pnpm run prettier && pnpm run lint","prepare":"husky install","publish":"npm publish","prettier":"prettier -w --cache src","type-check":"tsc --noEmit --skipLibCheck","build-watch":"vite build --watch","build:types":"tsc --emitDeclarationOnly","postpublish":"git push origin main --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"10.9.3","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"23.11.1","_hasShrinkwrap":false,"devDependencies":{"vite":"npm:rolldown-vite@latest","husky":"^9.1.7","doctoc":"^2.2.1","eslint":"^8.57.1","prettier":"^3.6.2","@eslint/js":"^9.34.0","typescript":"^5.9.2","@types/node":"^24.3.0","lint-staged":"^16.1.6","unplugin-dts":"1.0.0-beta.6","prettier-eslint":"^16.4.2","vite-plugin-dts":"^4.5.4","eslint-plugin-jsx":"^0.1.0","eslint-plugin-vue":"^10.4.0","vue-eslint-parser":"^8.3.0","eslint-plugin-jsdoc":"^54.2.0","eslint-plugin-import":"^2.32.0","@microsoft/api-extractor":"^7.52.11","@typescript-eslint/parser":"^8.41.0","@typescript-eslint/eslint-plugin":"^8.41.0"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_1.0.0_1759060478942_0.44059166466263333","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cailiao/watch-dom","version":"1.0.1","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@1.0.1","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"0a4a05ef0341f5e9184800bf377fcf4d890e9346","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-1.0.1.tgz","fileCount":6,"integrity":"sha512-WEdyLcuLyc3+UgCRoZc6s7CGnop4Lr3laRVjVkJuBPLSJoomSI8ZjJUrg2zRpXHYE6G63y0lkxGYDtcvhRVqIg==","signatures":[{"sig":"MEQCIEEkri7iFHLJAYppCg7VTN9MjmbW0uaErhcE1SvOgDo5AiBrzT+xrNakg4phtVaaVk46/Y5EiDAlnMU7RSU7oMc57Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16977},"main":"dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"outfile":"index","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint --fix --cache --ext .js,.ts,.vue,.mjs,cjs --max-warnings=0 src","build":"vite build","major":"npm version major","minor":"npm version minor","patch":"npm version patch","verify":"pnpm run type-check && pnpm run prettier && pnpm run lint","prepare":"husky install","publish":"npm publish","prettier":"prettier -w --cache src","type-check":"tsc --noEmit --skipLibCheck","build-watch":"vite build --watch","build:types":"tsc --emitDeclarationOnly","postpublish":"git push origin main --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"10.9.3","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"23.11.1","_hasShrinkwrap":false,"devDependencies":{"vite":"npm:rolldown-vite@latest","husky":"^9.1.7","doctoc":"^2.2.1","eslint":"^8.57.1","prettier":"^3.6.2","@eslint/js":"^9.34.0","typescript":"^5.9.2","@types/node":"^24.3.0","lint-staged":"^16.1.6","unplugin-dts":"1.0.0-beta.6","prettier-eslint":"^16.4.2","vite-plugin-dts":"^4.5.4","eslint-plugin-jsx":"^0.1.0","eslint-plugin-vue":"^10.4.0","vue-eslint-parser":"^8.3.0","eslint-plugin-jsdoc":"^54.2.0","eslint-plugin-import":"^2.32.0","@microsoft/api-extractor":"^7.52.11","@typescript-eslint/parser":"^8.41.0","@typescript-eslint/eslint-plugin":"^8.41.0"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_1.0.1_1759061376165_0.2715081327895039","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@cailiao/watch-dom","version":"1.0.2","keywords":["watch","DOM","Element","observer"],"author":{"url":"Eleg-i","name":"cailiao"},"license":"ISC","_id":"@cailiao/watch-dom@1.0.2","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"homepage":"https://github.com/Eleg-i/watch-dom/#readme","bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"dist":{"shasum":"dc1e3a7740d05ab3a1b17d80d5c7b446d134d548","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-1.0.2.tgz","fileCount":6,"integrity":"sha512-yH9hQO3NfcQwKRe4dfXxAtllqlnYto1Ot3/qFNlsH6cAUulPPgNlXU9XjNbpjgrpCZzBifl3FJ0jb38d/4jftw==","signatures":[{"sig":"MEUCIEHWbyiIrVBLwUg+nttDuOIBI2excT3i1o2BzrW8V5c/AiEAnT1z2dXDMNyo4w7b76LJJpcqBW+WhG3mx8lj/3i+C+0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16981},"main":"dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"outfile":"index","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint --fix --cache --ext .js,.ts,.vue,.mjs,cjs --max-warnings=0 src","build":"vite build","major":"npm version major","minor":"npm version minor","patch":"npm version patch","verify":"pnpm run type-check && pnpm run prettier && pnpm run lint","prepare":"husky install","publish":"npm publish","prettier":"prettier -w --cache src","type-check":"tsc --noEmit --skipLibCheck","build-watch":"vite build --watch","build:types":"tsc --emitDeclarationOnly","postpublish":"git push origin main --follow-tags","prepublishOnly":"npm run build -s"},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"repository":{"url":"git+https://github.com/Eleg-i/watch-dom.git","type":"git"},"_npmVersion":"10.9.3","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","directories":{},"_nodeVersion":"23.11.1","_hasShrinkwrap":false,"devDependencies":{"vite":"npm:rolldown-vite@latest","husky":"^9.1.7","doctoc":"^2.2.1","eslint":"^8.57.1","prettier":"^3.6.2","@eslint/js":"^9.34.0","typescript":"^5.9.2","@types/node":"^24.3.0","lint-staged":"^16.1.6","unplugin-dts":"1.0.0-beta.6","prettier-eslint":"^16.4.2","vite-plugin-dts":"^4.5.4","eslint-plugin-jsx":"^0.1.0","eslint-plugin-vue":"^10.4.0","vue-eslint-parser":"^8.3.0","eslint-plugin-jsdoc":"^54.2.0","eslint-plugin-import":"^2.32.0","@microsoft/api-extractor":"^7.52.11","@typescript-eslint/parser":"^8.41.0","@typescript-eslint/eslint-plugin":"^8.41.0"},"_npmOperationalInternal":{"tmp":"tmp/watch-dom_1.0.2_1760148929974_0.4459255619318385","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@cailiao/watch-dom","version":"1.0.3","description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","type":"module","module":"dist/index.mjs","main":"dist/index.cjs","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.mjs"}},"types":"./dist/index.d.ts","outfile":"index","keywords":["watch","DOM","Element","observer"],"author":{"name":"cailiao","url":"Eleg-i"},"repository":{"type":"git","url":"git+https://github.com/Eleg-i/watch-dom.git"},"bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"homepage":"https://github.com/Eleg-i/watch-dom/#readme","license":"ISC","scripts":{"build:types":"tsc --emitDeclarationOnly","build-watch":"vite build --watch","build":"vite build","type-check":"tsc --noEmit --skipLibCheck","prettier":"prettier -w --cache src","lint":"eslint --fix --cache --ext .js,.ts,.vue,.mjs,cjs --max-warnings=0 src","verify":"pnpm run type-check && pnpm run prettier && pnpm run lint","prepare":"husky install","prepublishOnly":"npm run build -s","patch":"npm version patch","minor":"npm version minor","major":"npm version major","publish":"npm publish","postpublish":"git push origin main --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"devDependencies":{"@eslint/js":"^9.34.0","@microsoft/api-extractor":"^7.52.11","@types/node":"^24.3.0","@typescript-eslint/eslint-plugin":"^8.41.0","@typescript-eslint/parser":"^8.41.0","doctoc":"^2.2.1","eslint":"^8.57.1","eslint-plugin-import":"^2.32.0","eslint-plugin-jsdoc":"^54.2.0","eslint-plugin-jsx":"^0.1.0","eslint-plugin-vue":"^10.4.0","husky":"^9.1.7","lint-staged":"^16.1.6","prettier":"^3.6.2","prettier-eslint":"^16.4.2","typescript":"^5.9.2","unplugin-dts":"1.0.0-beta.6","vite":"npm:rolldown-vite@latest","vite-plugin-dts":"^4.5.4","vue-eslint-parser":"^8.3.0"},"_id":"@cailiao/watch-dom@1.0.3","_nodeVersion":"23.11.1","_npmVersion":"10.9.3","dist":{"integrity":"sha512-JTdRXjieK9WOdkXxUFH1XfgrSbrBVD2ZznqOBU3yfnaCXiSm9nBURB63Qv2BXl047AsEoW5C78C26VnMfm16SA==","shasum":"f705aa7aa1f98ed6e04c396948926b88ccaf10b3","tarball":"https://registry.npmjs.org/@cailiao/watch-dom/-/watch-dom-1.0.3.tgz","fileCount":6,"unpackedSize":17145,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD9gPp/gLw0os7AfK+CVz12F5NlLNvfdsn8KmTxDRcAVQIgUXOhdyehmIyeCtthipa/8/XWmwaTll91+7UOrPUsEI4="}]},"_npmUser":{"name":"cailiao","email":"chenyu.personal@foxmail.com"},"directories":{},"maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/watch-dom_1.0.3_1760149332348_0.7956886167946975"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-16T10:17:37.783Z","modified":"2025-10-11T02:22:12.728Z","0.1.0":"2023-05-16T10:07:22.519Z","0.1.1":"2023-05-16T10:17:38.090Z","0.1.2":"2023-05-17T01:43:35.773Z","0.1.3":"2023-05-26T09:59:47.189Z","0.1.4":"2023-05-26T10:04:31.222Z","0.1.5":"2023-10-13T08:21:13.327Z","0.1.6":"2023-10-13T08:54:45.669Z","0.1.7":"2023-10-13T09:22:28.506Z","1.0.0":"2025-09-28T11:54:39.131Z","1.0.1":"2025-09-28T12:09:36.490Z","1.0.2":"2025-10-11T02:15:30.182Z","1.0.3":"2025-10-11T02:22:12.533Z"},"bugs":{"url":"https://github.com/Eleg-i/watch-dom/issues"},"author":{"name":"cailiao","url":"Eleg-i"},"license":"ISC","homepage":"https://github.com/Eleg-i/watch-dom/#readme","keywords":["watch","DOM","Element","observer"],"repository":{"type":"git","url":"git+https://github.com/Eleg-i/watch-dom.git"},"description":"监听dom树节点的变化，并允许作出处理。(Listens for changes to dom tree nodes and allows processing.)","maintainers":[{"name":"cailiao","email":"chenyu.personal@foxmail.com"}],"readme":"# watch-dom —— Monitor DOM changes\n\n[简体中文](readme/README-zh-cn.md) | English\n\n## Description\n\nMonitor changes to nodes on a specified DOM tree or changes to the size of element box models and allow processing of changes.\n\n## Getting Started\n\nInstall dependencies\n\n```bash\nnpm i @cailiao/watch-dom\n```\n\n#### Import\n\nthe patch function\n\n```javascript\nimport { patch } from '@cailiao/watch-dom'\n\n// Choosing to execute the patch function at the right time will create two prototype methods $watch and $watchBox on the global class Element.\npatch()\n\n// Or import only the specified methods as needed, watch is equivalent to the $watch method on the prototype, and watchBox is equivalent to the $watchBox method on the prototype.\nimport { watch, watchBox } from '@cailiao/watch-dom'\n```\n\n#### Usage\n\n- patch function\n\n```javascript\n// Monitor changes to child nodes on the DOM tree. targetElement is an instance of any built-in Element class, i.e., a DOM element.\nconst unwatch = targetElement.$watch(record => { console.log(record) }, { subtree: true, childList: true })\n// Cancel monitoring\nunwatch()\n\n\n// Monitor changes to the size of element box models. targetElement is an instance of any built-in Element class, i.e., a DOM element.\nconst unwatch = targetElement.$watchBox(record => { console.log(record) }, { subtree: true, childList: true })\n// Cancel monitoring\nunwatch()\n// Pause monitoring\nunwatch.pause()\n// Resume monitoring\nunwatch.resume()\n```\n\n- import only needed\n\n```javascript\n// Monitor changes to child nodes on the DOM tree. targetElement is an instance of any built-in Element class, i.e., a DOM element.\nconst unwatch = watch(targetElement, record => { console.log(record) }, { subtree: true, childList: true })\n// Cancel monitoring\nunwatch()\n\n\n// Monitor changes to the size of element box models. targetElement is an instance of any built-in Element class, i.e., a DOM element.\nconst unwatch = watchBox(targetElement, record => { console.log(record) }, { subtree: true, childList: true })\n// Cancel monitoring\nunwatch()\n// Pause monitoring\nunwatch.pause()\n// Resume monitoring\nunwatch.resume()\n```\n\n## Explanation\n\nThe `patch()` method inserts two methods, `$watch` and `$watchBox`, on the prototype of `Element`. The directly imported `watch` is equivalent to the `$watch` method on the prototype, and `watchBox` is equivalent to the `$watchBox` method on the prototype, with only slight differences in the parameters passed in.\n\n#### `$watch` `Function`\n\n##### Parameters\n\n- `callback`: Required. `Function` type. Pass in one parameter,\n\n  - `record` is an array of [MutationRecord](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord). It contains information about the modification of the DOM.\n\n  - `observer`: A reference to ResizeObserver itself.\n\n- `options`: Required. `Object` type. It is the options parameter of [MutationObserver.observe()](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe),\n\n  Options are as follows:\n\n  - `subtree` Optional\n\n    Set to `true` to extend monitoring to the entire subtree of nodes rooted at `target`. All of the other properties are then extended to all of the nodes in the subtree instead of applying solely to the `target` node. The default value is `false`.\n\n  - `childList` Optional\n\n    Set to `true` to monitor the target node (and, if `subtree` is `true`, its descendants) for the addition of new child nodes or removal of existing child nodes. The default value is `false`.\n\n  - `attributes` Optional\n\n    Set to `true` to watch for changes to the value of attributes on the node or nodes being monitored. The default value is `true` if either of `attributeFilter` or `attributeOldValue` is specified, otherwise the default value is `false`.\n\n  - `attributeFilter` Optional\n\n    An array of specific attribute names to be monitored. If this property isn't included, changes to all attributes cause mutation notifications.\n\n  - `attributeOldValue` Optional\n\n    Set to `true` to record the previous value of any attribute that changes when monitoring the node or nodes for attribute changes; See [Monitoring attribute values](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver#monitoring_attribute_values) for details on watching for attribute changes and value recording. The default value is `false`.\n\n  - `characterData` Optional\n\n    Set to `true` to monitor the specified target node (and, if `subtree` is `true`, its descendants) for changes to the character data contained within the node or nodes. The default value is `true` if `characterDataOldValue` is specified, otherwise the default value is `false`.\n\n  - `characterDataOldValue` Optional\n\n    Set to `true` to record the previous value of a node's text whenever the text changes on nodes being monitored. The default value is `false`.\n\n##### returns: `Function`\n\nReturns a function to cancel the monitor.\n\n#### `$watchBox` `Function`\n\n##### Parameters\n\n- `callback`: Required. `Function` type. Pass in two parameters,\n\n  - record is an array of [ResizeObserverEntry](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry). It contains information about the modified size of elements.\n\n  - observer: A reference to ResizeObserver itself.\n\n- `options`: Optional. `Object` type. It is the options parameter of [ResizeObserver.observe()](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe),The properties of options are as follows:\n\n  - `box`  Sets which box model the observer will observe changes to. Possible values are:\n\n    - `content-box` (the default)\n\n      Size of the content area as defined in CSS.\n\n    - `border-box`\n\n      Size of the box border area as defined in CSS.\n\n    - `device-pixel-content-box`\n\n      The size of the content area as defined in CSS, in device pixels, before applying any CSS transforms on the element or its ancestors.\n\n##### returns: `Function`\n\nReturns a function to cancel the monitor.\n\n- pause：`Function` type, causes the current monitor to pause monitoring.\n\n- resume：`Function` type, resumes monitoring to the current monitor. Should be called only after `pause()` has been called.\n\n#### `watch` `Function`\n\n##### Parameters\n\n- `target`：Required. `HTMLAllCollection` type.\n\n- `callback`: Required. `Function` type. Pass in one parameter,\n\n  - record is an array of [MutationRecord](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord). It contains information about the modification of the DOM.\n\n  - observer: A reference to ResizeObserver itself.\n\n- `options`: Required. `Object` type. It is the options parameter of [MutationObserver.observe()](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe),\n\n  - Options are as follows:\n\n  - `subtree` Optional\n\n    Set to `true` to extend monitoring to the entire subtree of nodes rooted at `target`. All of the other properties are then extended to all of the nodes in the subtree instead of applying solely to the `target` node. The default value is `false`.\n\n  - `childList` Optional\n\n    Set to `true` to monitor the target node (and, if `subtree` is `true`, its descendants) for the addition of new child nodes or removal of existing child nodes. The default value is `false`.\n\n  - `attributes` Optional\n\n    Set to `true` to watch for changes to the value of attributes on the node or nodes being monitored. The default value is `true` if either of `attributeFilter` or `attributeOldValue` is specified, otherwise the default value is `false`.\n\n  - `attributeFilter` Optional\n\n    An array of specific attribute names to be monitored. If this property isn't included, changes to all attributes cause mutation notifications.\n\n  - `attributeOldValue` Optional\n\n    Set to `true` to record the previous value of any attribute that changes when monitoring the node or nodes for attribute changes; See [Monitoring attribute values](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver#monitoring_attribute_values) for details on watching for attribute changes and value recording. The default value is `false`.\n\n  - `characterData` Optional\n\n    Set to `true` to monitor the specified target node (and, if `subtree` is `true`, its descendants) for changes to the character data contained within the node or nodes. The default value is `true` if `characterDataOldValue` is specified, otherwise the default value is `false`.\n\n  - `characterDataOldValue` Optional\n\n    Set to `true` to record the previous value of a node's text whenever the text changes on nodes being monitored. The default value is `false`.\n\n##### returns: `Function`\n\nReturns a function to cancel the monitor.\n\n#### `watchBox` `Function`\n\n##### Parameters\n\n- `target`：Required. `HTMLAllCollection` type.\n\n- `callback`: Required. `Function` type. Pass in two parameters,\n\n  - record is an array of [ResizeObserverEntry](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry). It contains information about the modified size of elements.\n\n  - observer: A reference to ResizeObserver itself.\n\n- `options`: Optional. `Object` type. It is the options parameter of [ResizeObserver.observe()](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe),The properties of options are as follows:\n\n  - `box`  Sets which box model the observer will observe changes to. Possible values are:\n\n    - `content-box` (the default)\n\n      Size of the content area as defined in CSS.\n\n    - `border-box`\n\n      Size of the box border area as defined in CSS.\n\n    - `device-pixel-content-box`\n\n      The size of the content area as defined in CSS, in device pixels, before applying any CSS transforms on the element or its ancestors.\n\n##### returns: `Function`\n\nReturns a function to cancel the monitor.\n\n- pause：`Function` type, causes the current monitor to pause monitoring.\n\n- resume：`Function` type, resumes monitoring to the current monitor. Should be called only after `pause()` has been called.\n\n## 🤝 Support\n\nEnjoying this project? Show your support by giving it a star! ⭐\n\nYour stars help the project gain visibility and encourage further development.\n","readmeFilename":"README.md"}