{"_id":"@drivy/dom-query","_rev":"11-626ed193839acda58797b7885790bf86","name":"@drivy/dom-query","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.1":{"name":"@drivy/dom-query","version":"1.0.1","description":"Utilities to select dom elements and handle events","source":"src/index.ts","main":"dist/index.js","umd:main":"dist/index.umd.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"test":"jest src --runInBand","lint:js":"eslint src --ext ts,js --max-warnings 0 ","build":"yarn clean-dist && yarn microbundle","build:dev":"yarn build && yarn yalc:publish","clean-dist":"node_modules/.bin/rimraf ./dist","check-packaging":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","yalc:publish":"yalc publish"},"repository":{"type":"git","url":"git+https://github.com/drivy/dom-query.git"},"keywords":["javascript","utility","dom","query","event","typescript"],"author":{"name":"drivy"},"license":"MIT","bugs":{"url":"https://github.com/drivy/dom-query/issues"},"homepage":"https://github.com/drivy/dom-query#readme","devDependencies":{"@babel/preset-env":"^7.4.5","@babel/preset-typescript":"^7.3.3","@drivy/eslint-config":"^1.0.1","@types/jest":"^24.0.13","@typescript-eslint/eslint-plugin":"^1.11.0","@typescript-eslint/parser":"^1.11.0","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-jest":"^22.6.4","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","microbundle":"^0.11.0","prettier":"^1.17.1","typescript":"^3.5.1"},"_id":"@drivy/dom-query@1.0.1","dist":{"shasum":"ac96f888150a48b50af6219f4c051ba2ce650861","integrity":"sha512-05A308HASgw+nvVg9xU5w2pBYsN4gZDct0k0eIpfwvb0Xne5zzeUklJ9SOL6p2d0DWSv2rKcq/4HU3AqjgxM1A==","tarball":"https://registry.npmjs.org/@drivy/dom-query/-/dom-query-1.0.1.tgz","fileCount":11,"unpackedSize":35046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdE3XZCRA9TVsSAnZWagAAi7YP/02rJXrlxP+Cj/eCowDO\njVXwk/eQhWhlpQzpgORrW3t/9YNLRfGErOu4yvYccZZOeZpfdh2E9LSe+dpS\n/KTg+Ls1IZlIDyi8Qt2SfL5/qyl3kPhX0btc75J1ZAt66gfcr4EO0tR6AezL\nuqMxOMB2DTcT1fPIBnGUqYo7jZ53bqmwsUaTL0qaeKxm/EnAorMD2xE7mMf5\nnFSX4U5VaSFlzu9EnMMAwbIZggFM4lXOebxyT0X8ki6naEFsuVgszJWaFgFg\nCouKbzCr02uu14SrLI5vUvHPGFi9cqiDdtbP0sQcHA4IibNaXMnqb11C81/n\nOvtDaGVt1Z/HBn2gCgp3bEAFH2l3ePXUW7THSuv9qi3fRck1MG9QKKQvKLGU\nUFgQomYdOLIKljwvoZ04hUuYtSbFA/IbfjOcfBU0feNTeGA5nOI7PpDRF1bZ\nsreNEB/xJX3E+RLOQu0Td135Ll4RMPqdOzonYR+JV7wXBNwW/WdfojJHDUo8\nU9VelPu99wIGWB6cTgEzFXfvvI/4z9Jf7nIjw1nfLtt+/mMC4Jvn7wcqWIIu\nDeHbNbWm4Y37SZRKrY9bdBS3r4UnLC2YGIh6TsvGlKQB6Q+hMvlopoogT2OR\nKe5Wu3YUEb/SfbJ4HruX64tVhUaIaRHTTtHZYVNtdZAIRFK8mNVc7e4uWC5I\n4FkR\r\n=sNv5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFC3jqnz/l3Ly9mmasQ09cO1qMij4X7t81nlGx4y/ogIAiEAn6Hht5KC+SNvyYoLw74In3eHrZiFiWnbXfwXA6HEiSc="}]},"maintainers":[{"name":"tesnouf","email":"thibaud.esnouf@drivy.com"},{"name":"timpetricola","email":"tim.petricola@gmail.com"}],"_npmUser":{"name":"tesnouf","email":"thibaud.esnouf@drivy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-query_1.0.1_1561556440793_0.6694086369349681"},"_hasShrinkwrap":false},"1.0.2":{"name":"@drivy/dom-query","version":"1.0.2","description":"Utilities to select dom elements and handle events","source":"src/index.ts","main":"dist/index.js","umd:main":"dist/index.umd.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"test":"jest src --runInBand","lint:js":"eslint src --ext ts,js --max-warnings 0 ","build":"yarn clean-dist && yarn microbundle","build:dev":"yarn build && yarn yalc:publish","clean-dist":"node_modules/.bin/rimraf ./dist","check-packaging":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","yalc:publish":"yalc publish"},"repository":{"type":"git","url":"git+https://github.com/drivy/dom-query.git"},"keywords":["javascript","utility","dom","query","event","typescript"],"author":{"name":"drivy"},"license":"MIT","bugs":{"url":"https://github.com/drivy/dom-query/issues"},"homepage":"https://github.com/drivy/dom-query#readme","devDependencies":{"@babel/preset-env":"^7.4.5","@babel/preset-typescript":"^7.3.3","@drivy/eslint-config":"^1.0.1","@types/jest":"^24.0.13","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-jest":"^22.6.4","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","microbundle":"^0.11.0","prettier":"^1.17.1","typescript":"^3.5.1"},"licenseText":"MIT License\n\nCopyright (c) 2019 Drivy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@drivy/dom-query@1.0.2","dist":{"shasum":"3bd5745191434e4d8648238a8e35dde0274836fe","integrity":"sha512-9t33gdRk9tcDNGmJSMwxjkMoxPIdCaLbaj+w6dKnCM5AzC5kIVL6HDjqlWUTf4qnbPNVt0Rtw4w8T+awzvNVuA==","tarball":"https://registry.npmjs.org/@drivy/dom-query/-/dom-query-1.0.2.tgz","fileCount":4,"unpackedSize":8409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpzwrCRA9TVsSAnZWagAA3wAQAJNgNpHugBcqIYl29MHZ\ngTTXYmwm1NqnnwToigyNB1VusVNj1nuwuh7oHSCrAnlDaLXlkk2CwJ5pg0JV\nC1i2HlzFKdUyWke27+vv6SqWfwkRPg7jCNfoj3Q+iavuDAvz7KWlX5FRS9xU\nKJhXtmsyalbjr6aElNCn1c7DBvQQ/tYHNDYy/FormWP47/arKj2RCq/3qbLD\n1qonMXje711uhhiCpCgxfctoJKHOZvxJf1PYampzXdpA2D0rHweNH6ZPsPJe\nY2UD/IlH6+IQCU+dOlSlaaQdlR+YJxIHfXwuYkdFzyfOVKzh3Aws2VIMoefA\nEnYlWjwcPJyblrozoqeflPunYmaJYW991aQ2kaEG2mb+2kE/YEzWlda/KEXp\nklR/k+rmrdvLwYfpLFBN49kRYkLC8ZsmX+Sl/curTqs6soXcMPmaKJCqiJ8s\nN1TyxQSOIYW2uaeuAdekv818VhBQxFoB/NR8pnPZP6fcB7wCcLRBAOpFQseg\nLOtDmwMw+pV0CVPipA64VI5U7si9rhJhDIbiViUOIpy5zpPSDo7Cau7akHPj\nYuIDNOnRaSueCKLBB6kd/xysKaXGIA8VZZdhXqIRqDspNz5zBtQZmWsLigLz\nk26xdhPZe64KU7U8uHFzhqFSokB+sgpXVhZhrwPehE3xIYC5IEGQW4Rwka76\nsuus\r\n=hqn/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGbCQ80Z1Ptru3EdNV9lpEbtjr3hV3OM24/b9N7BbEGAiEA9jBIEPj7Ni5tfat0XkOm0iFdHiZdk8MiBN5JqPUxxsc="}]},"maintainers":[{"email":"npm@patchane.com","name":"cpatchane"},{"email":"thibaud.esnouf@drivy.com","name":"tesnouf"},{"email":"tim.petricola@gmail.com","name":"timpetricola"}],"_npmUser":{"name":"tesnouf","email":"thibaud.esnouf@drivy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-query_1.0.2_1571241002183_0.9545899360385555"},"_hasShrinkwrap":false},"1.0.3":{"name":"@drivy/dom-query","version":"1.0.3","description":"Utilities to select dom elements and handle events","source":"src/index.ts","main":"dist/index.js","umd:main":"dist/index.umd.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"test":"jest src --runInBand","lint:js":"eslint src --ext ts,js --max-warnings 0 ","build":"yarn clean-dist && yarn microbundle","build:dev":"yarn build && yarn yalc:publish","clean-dist":"node_modules/.bin/rimraf ./dist","check-packaging":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","yalc:publish":"yalc publish"},"repository":{"type":"git","url":"git+https://github.com/drivy/dom-query.git"},"keywords":["javascript","utility","dom","query","event","typescript"],"author":{"name":"drivy"},"license":"MIT","bugs":{"url":"https://github.com/drivy/dom-query/issues"},"homepage":"https://github.com/drivy/dom-query#readme","devDependencies":{"@babel/preset-env":"^7.4.5","@babel/preset-typescript":"^7.3.3","@drivy/eslint-config":"^1.0.1","@types/jest":"^24.0.13","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-jest":"^22.6.4","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","microbundle":"^0.11.0","prettier":"^1.17.1","typescript":"^3.5.1"},"licenseText":"MIT License\n\nCopyright (c) 2019 Drivy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@drivy/dom-query@1.0.3","dist":{"shasum":"b24d40dc027501f7d24ba1c9a8bf5100704ea903","integrity":"sha512-TP4zufZrmoJlmn7LjdWvrnjVpGk9g7P1byCdu2wG8LpAI5qHV/koJME4a5Ur9T3QZaJwm8G2ufc48HuzEhKPAg==","tarball":"https://registry.npmjs.org/@drivy/dom-query/-/dom-query-1.0.3.tgz","fileCount":12,"unpackedSize":36104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqBuYCRA9TVsSAnZWagAAbD8QAICwCAhsIwwo77k7d3Vy\nzA3l7DIIak7NGq40VgaxFR9+loB03Xgrnw3DLtz8U1bSYRch7spHaH58F3KG\np8/vhPRd7cbvrMbSSjt3TXr/LmouAErWKL/6HM4fdbz0wJjdFbfhYnz0t3W8\nS10XAcCMywpC2OcoFA/6e0mNRDUa3bKh8B1G/HRtrA9lnFshTTzCl+7gpPqu\nLkujP2qx3o1HhOj19tDD4HprOeYKBokXsuCh+iIn7t0rAUuDPf9bCgV77zrG\n6edMZDlHsWo+ekY1Hd+gke8v9eCGrl0rfPMyQUbtj1tFRouJA6LvkxV3AbPb\nI276qZdbeY39uL33YTD4eIZmjpUAwy3l2pWBlIaHPG+KCznfPKwsTyWDmEfa\n0sjjmFV0V1OgALp/sC3sTJZ9P5m+GAmN9t4EjFYc+bEiQbVnWZ/80ynpjL+i\nZ/jqYVfNGsdgducsF4/t91yQwGiy34mtUwhErn8JRE2sas2f+K7iC5cbwXBW\nSOgTev9YaRGudnDlo6b2G99Hc88Zw9iBd1Pz4fhVljvOVYR3Xww8/yz6gYML\nwF14JbI4JVDsJS2k2JIR33I2d7TX+TaNRhl09DTsFe1aGeXtu7hob6jlRpoq\nWGLkx9SQfNlihOmAPWUpKRjMJO9ZcrrQJRNACR/uj6DKIUn5HI74+PERzDYl\nDFCu\r\n=crSZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8Zk9ewdfzKMC9P/Gw+6Svr8unw3+ib/pEqdYk5mpB/wIgKJ7gbQhWUVcw3wesgAiWzU10QxJOd5HTmWM44qDZYiE="}]},"maintainers":[{"email":"npm@patchane.com","name":"cpatchane"},{"email":"thibaud.esnouf@drivy.com","name":"tesnouf"},{"email":"tim.petricola@gmail.com","name":"timpetricola"}],"_npmUser":{"name":"tesnouf","email":"thibaud.esnouf@drivy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-query_1.0.3_1571298199869_0.9438885538502717"},"_hasShrinkwrap":false},"1.0.4":{"name":"@drivy/dom-query","version":"1.0.4","description":"Utilities to select dom elements and handle events","source":"src/index.ts","main":"dist/index.js","umd:main":"dist/index.umd.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"test":"jest src --runInBand","lint:js":"eslint src --ext ts,js --max-warnings 0 ","build":"yarn clean-dist && yarn microbundle","build:dev":"yarn build && yarn yalc:publish","clean-dist":"node_modules/.bin/rimraf ./dist","check-packaging":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","yalc:publish":"yalc publish"},"repository":{"type":"git","url":"git+https://github.com/drivy/dom-query.git"},"keywords":["javascript","utility","dom","query","event","typescript"],"author":{"name":"drivy"},"license":"MIT","bugs":{"url":"https://github.com/drivy/dom-query/issues"},"homepage":"https://github.com/drivy/dom-query#readme","devDependencies":{"@babel/preset-env":"^7.4.5","@babel/preset-typescript":"^7.3.3","@drivy/eslint-config":"^1.0.1","@types/jest":"^24.0.13","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-jest":"^23.1.1","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","microbundle":"^0.11.0","prettier":"^1.17.1","typescript":"^3.5.1"},"resolutions":{"js-yaml":"^3.13.1"},"licenseText":"MIT License\n\nCopyright (c) 2019 Drivy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@drivy/dom-query@1.0.4","dist":{"shasum":"f7e60b2e5846a3a2cb54c164b8ce94190eda8c50","integrity":"sha512-/HO2ED6iYW0etXbHC+esrMtS/zVSH2B43MdxXeiGIB/Tz7gM9CeueB5wWSccdb701HOYySbi1Fw8p1d1e2/m8A==","tarball":"https://registry.npmjs.org/@drivy/dom-query/-/dom-query-1.0.4.tgz","fileCount":12,"unpackedSize":36161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5ixSCRA9TVsSAnZWagAAL78P/iX7MR8AuEO0K5Y61TUc\n3hTu/uQfhwbsu7rU5gWRrqQz2i6aoG7Gm96VZMGsNy/wGiNnAO0iOqustWt8\nYIxusgarA0nNRHk7nEd2rdDiLSM6ysiAg61oWXWq/hfNgVyTS27VzBuvgjiE\nWhW2UB6a9t/llDs3PTWYd6T7TB/SZLokrKEQWzeUc6UTV81GagvUb8kV4J6p\nDqScHG7Ei2cJ2F7pYqEVCbBosMKUX8GAT5lQI9Y3PUdpaiimyuci7ToJ0PSi\n0rXNHm2H1trKVUla45FcXbSqSFh4aQIEKpXhdXo/flnRSFfxm1psfUbsO8RM\nFFPTWjduoaqeNu9ARgOBETL8xraENIteOy+NuUP33W8OxZPQAMDiFalpPvY3\nTB4Sa9CCxvgroz99w+C0IJq4PkFvTAxjbUeeFgkpo1ikmdg4tWOoYwf3b74K\nGxAZGjn/hyg+2DVPdCmoXwdIpCMjLrK3fUzrBh5QnUdkXYW5fh0KX8LMsxrs\nqb+RJS+FOq+OJNd87G1ZlTafFLTVq3FZUk8wzg2+DIstEfBAjPHP+qZaVOdd\ndGZN5f1j78i4DaNnf88sgnrfh9YjiHJPW6zIrqfb85wKSmbR4Mg0K4cdQwDJ\nwrh7ACi3WT9lLUeUIBG4gfg3ZVAzZZQQhUc0SeE88qtAFuO3e34h5WoqpC5H\nU95K\r\n=BrLB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ/YkTIP9bhtDFZuljBl/hInsITxMRxDvnYQU08AuITAIgQTtuO0Xib9UUKlTOgvxUAP2AFpzxhekaBFvvv8rknK8="}]},"maintainers":[{"email":"npm@patchane.com","name":"cpatchane"},{"email":"louiscuny@gmail.com","name":"louiscuny"},{"email":"thibaud.esnouf@drivy.com","name":"tesnouf"},{"email":"tim.petricola@gmail.com","name":"timpetricola"}],"_npmUser":{"name":"tesnouf","email":"thibaud.esnouf@drivy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-query_1.0.4_1575365713749_0.5048442125931021"},"_hasShrinkwrap":false},"1.0.5":{"name":"@drivy/dom-query","version":"1.0.5","description":"Utilities to select dom elements and handle events","source":"src/index.ts","main":"dist/index.js","umd:main":"dist/index.umd.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"test":"jest src --runInBand","lint:js":"eslint src --ext ts,js --max-warnings 0 ","build":"yarn clean-dist && yarn microbundle","build:dev":"yarn build && yarn yalc:publish","clean-dist":"node_modules/.bin/rimraf ./dist","check-packaging":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","yalc:publish":"yalc publish"},"repository":{"type":"git","url":"git+https://github.com/drivy/dom-query.git"},"keywords":["javascript","utility","dom","query","event","typescript"],"author":{"name":"drivy"},"license":"MIT","bugs":{"url":"https://github.com/drivy/dom-query/issues"},"homepage":"https://github.com/drivy/dom-query#readme","devDependencies":{"@babel/preset-env":"^7.4.5","@babel/preset-typescript":"^7.3.3","@drivy/eslint-config":"^1.0.1","@types/jest":"^26.0.10","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-jest":"^23.1.1","eslint-plugin-prettier":"^3.1.0","jest":"^26.4.2","microbundle":"^0.12.3","prettier":"^1.17.1","typescript":"^3.5.1"},"resolutions":{"handlebars":"^4.3.0","js-yaml":"^3.13.1","kind-of":"^6.0.3","serialize-javascript":"^3.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 Drivy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@drivy/dom-query@1.0.5","dist":{"shasum":"205fbb6ae8ea8ef414e9276321accc054485ddf7","integrity":"sha512-3eKnQkP4IbGkjVEZXlfuS9hMY0NSIWRRKY9JsXlhQ9IadD7beaBMTuUkMaWS0GcWlaM+Q72hthebJsmmzqwvJg==","tarball":"https://registry.npmjs.org/@drivy/dom-query/-/dom-query-1.0.5.tgz","fileCount":12,"unpackedSize":36610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTQE/CRA9TVsSAnZWagAA2CQP/i4GuAaDhliedSKHfH/f\nx3qPEUGJ07LUgoFq1oKE1DFopgJkDiQ6O6NjacSiiO/rQfoaq1pgSoZIY8S9\nMtGwHdhxY26hy2TA8JsnoaooDpDAx399JXGUb5OcMmBSZ3kSDq2pB3P+Fv0P\nDdA1qs1kMFXgESlg9MZEjPwIHi9jQCzAgD8UtNUNx8IEwcdZLjaibdyMbTa5\nW44WoPclK0ziWRitHZGLhyIyglFIEbDjyGnFGeJqeLDugClSwVwHBnQ5w7c2\nVVJrMKJqHK5ScIk2sF8oZx+XbovP7fjni73Op6wq736eBOQYQLvLOSBX9+lO\nckIoVvBY4PJ+s5tmu7+Uha3yuOvCFtLFAWaDYkMczlZbXGhb9w2czvVR4/wB\nSlaX8UuHu9/89/8U3Bi8MsYrvDF6LLxUrTsWu9QZRNJD8xMsnw+b8HLhF2nD\n8zFbtKb2WbylU/pM70OSS6EUGLyymwKOYJ+lyT2UU1rRdjM2VNv6chRxYA1u\nRGUiJ5CuJSV01amwWfyIpMmW2BiZDnSkcIYV7on4v0TQEfpKfdqQBsDxZQAM\nzkjPJz1fOB7t/py8sRg0zmb74EoohLQBNs2n+i6P+onz+k22/u+fJmgzBCHy\nzcXRPpFvfTyqD3cOb3iaJrKLyoDdwvYnASl5hsaQDdJhBO/3WNySNcaL4f1U\nVanO\r\n=YmH5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcPZLerpFzfYGqxrlMNq/XdP9G1kr9iYp7bePHSYlGFAiEAoy6FBuK14+UkAPeMoYP74T3BZhIlrc9lVx7OkoV7OpU="}]},"maintainers":[{"email":"npm@patchane.com","name":"cpatchane"},{"email":"louiscuny@gmail.com","name":"louiscuny"},{"email":"thibaud.esnouf@drivy.com","name":"tesnouf"},{"email":"tim.petricola@gmail.com","name":"timpetricola"}],"_npmUser":{"name":"tesnouf","email":"thibaud.esnouf@drivy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-query_1.0.5_1598882110555_0.6458535114004345"},"_hasShrinkwrap":false},"1.0.6":{"name":"@drivy/dom-query","version":"1.0.6","description":"Utilities to select dom elements and handle events","source":"src/index.ts","main":"dist/index.js","umd:main":"dist/index.umd.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"test":"jest src --runInBand","lint:js":"eslint src --ext ts,js --max-warnings 0 ","build":"yarn clean-dist && yarn microbundle","build:dev":"yarn build && yarn yalc:publish","clean-dist":"node_modules/.bin/rimraf ./dist","check-packaging":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","yalc:publish":"yalc publish"},"repository":{"type":"git","url":"git+https://github.com/drivy/dom-query.git"},"keywords":["javascript","utility","dom","query","event","typescript"],"author":{"name":"drivy"},"license":"MIT","bugs":{"url":"https://github.com/drivy/dom-query/issues"},"homepage":"https://github.com/drivy/dom-query#readme","devDependencies":{"@babel/preset-env":"^7.4.5","@babel/preset-typescript":"^7.3.3","@drivy/eslint-config":"^1.0.1","@types/jest":"^26.0.10","@typescript-eslint/eslint-plugin":"5.9.0","@typescript-eslint/parser":"5.9.0","eslint":"8.6.0","eslint-config-prettier":"^6.0.0","eslint-plugin-jest":"^23.1.1","eslint-plugin-prettier":"^3.1.0","jest":"^26.4.2","microbundle":"^0.14.2","np":"7.6.0","prettier":"^2.1.1","typescript":"4.5.4"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"resolutions":{"glob-parent":"^6.0.1","js-yaml":"^3.13.1","kind-of":"^6.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 Drivy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@drivy/dom-query@1.0.6","dist":{"shasum":"416e71c7ef8e60081d274ba36b9ade48d523335d","integrity":"sha512-fnU0B9gnZYCRrDLytSk2X+JTHU1CnVPWBAbP9fD5NIq9JxomSHbKzqQQ2lKux/a0Ytia1Fl+vMcokHAjjpS5hQ==","tarball":"https://registry.npmjs.org/@drivy/dom-query/-/dom-query-1.0.6.tgz","fileCount":12,"unpackedSize":36746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3p4CCRA9TVsSAnZWagAATi4P/Aoj6IhMxD+QWME55wXs\n/nhMNHLKQlYqRy8hIG5HPkyBbFhKTonqFocu0Ka4G/eCsvt05neGj4xzBI1z\nsBIcAn+KiCMtpRBqZaKLHg8LCk0X7ivj5l8NLLrp2NjixkBtGpg+mcCBKcdM\nxeEmzqkBlX/633cy5d5VkLNqHbQQ9K/4ZyDDiusk4Bvn1WM7Tz473r8/AJkX\nP4goIyoPR75lnAnSqdBgsJBrSAj1Eg2HqcxWOPpdjkoZcuZjOOoIzQcni/C9\nUONZO7/S9GOSMmvAIilEi+ML5YdiWDuLVdqHkAJhTVenOFo+IrvTROW67p6A\n7kKE0G+z+dVU78fFVGclOHPa8si+4HbE3BJVUM7vXYyLlcA9pUoudI9VapUw\nAWVZLl/eqZ5kUJFZx9wVmApMQ814v1MxnavX7CL0QTPfgQlzKaq1l9n3IGQX\n5fkqM14k922gDi9tF90kH6tURAqiFKgYxbFlAcHdRvpF8mXKcMMaPvEZtUZd\nREN29fvi9lolmKDnsR5+8g24W6AJdSDEvmkT4pHtQz1Zf2rwgZa1bdYnHH4l\nEQeUobbOXfR1TKvpKk95Y0LstywQXXmFa4TIiCvCWbD6Dy/4cx3qDNxE/W00\nDzcvlZfsEBIseRoVUglSZXTqZpJs1wq09r5PpbtJFJ4kOo++my3dnPQg51UC\nb532\r\n=/27n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+essEiOpQKbgMAhkK6VIzvc/vJfJ12WaB42OTi0lWYAIhAJeRb+0G8lcS0/gcHkwbPS7PAJ2BNpM86B0pzcVtKuc0"}]},"_npmUser":{"name":"thibaud.getaround","email":"thibaud.esnouf@getaround.com"},"directories":{},"maintainers":[{"name":"thibaud.getaround","email":"thibaud.esnouf@getaround.com"},{"name":"cpatchane","email":"npm@patchane.com"},{"name":"louiscuny","email":"louiscuny@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-query_1.0.6_1641979394077_0.9205489494095449"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-26T13:40:40.603Z","1.0.1":"2019-06-26T13:40:40.915Z","modified":"2022-04-05T05:40:46.194Z","1.0.2":"2019-10-16T15:50:02.479Z","1.0.3":"2019-10-17T07:43:20.058Z","1.0.4":"2019-12-03T09:35:13.895Z","1.0.5":"2020-08-31T13:55:10.698Z","1.0.6":"2022-01-12T09:23:14.230Z"},"maintainers":[{"name":"thibaud.getaround","email":"thibaud.esnouf@getaround.com"},{"name":"cpatchane","email":"npm@patchane.com"},{"name":"louiscuny","email":"louiscuny@gmail.com"}],"description":"Utilities to select dom elements and handle events","homepage":"https://github.com/drivy/dom-query#readme","keywords":["javascript","utility","dom","query","event","typescript"],"repository":{"type":"git","url":"git+https://github.com/drivy/dom-query.git"},"author":{"name":"drivy"},"bugs":{"url":"https://github.com/drivy/dom-query/issues"},"license":"MIT","readme":"# Enhanced HTML elements with query/event methods\n\nUtility functions to easily perform DOM element manipulation:\n\n- Element selection based on css query selectors. Chainable. NodeLists automatically converted as Arrays\n- Helpers to Attach/detach events. Event delegation supported\n\nThis library is provided as an ES module with Typescript declarations.\n\n## Install\n\nInstall with npm:\n\n```ts\n$ npm install @drivy/dom-query\n```\n\nInstall with yarn:\n\n```ts\n$ yarn add @drivy/dom-query\n```\n\n## Usage\n\n```ts\nimport { query, queryAll } from \"@drivy/dom-query\";\n\nqueryAll(\".home-header\").map(header => console.log(header));\n// => <h1 class=\"home-header\"> Welcome </h1>\n// => <h1 class=\"home-header\"> Get started </h1>\n\nquery(\".confirm-button\").on(\"click\", e => {\n  confirm(e.target);\n});\n```\n\n## API\n\n### Get elements from the DOM\n\n`query`\n\n- selects an element from the DOM with a css query selector.\n- returns `null` if no element matches the selector.\n- chainable. Chained method will be based on the last selected element context\n\n`queryStrict`\n\n- like `query` method but will raise en exception if no element matches the selector.\n\n`queryAll`\n\n- selects a list of elements from the DOM with a css query selector. NodeList results will be converted to Arrays so you can directly access Array methods (forEach, map, reduce, filter...)\n\nExamples:\n\n```ts\nimport { query, queryStrict, queryAll } from \"@drivy/dom-query\"\n...\nconst myElement = query(\".js_my-element\")\nconst mySubElement = myElement.query(\".js_my-sub-element\")\nconst mySubElements = myElement.queryAll(\".js_my-sub-elements\")\n\nqueryAll(\".js_my-container .js_my-children-to-select\").map(enhancedElement => {\n  doSomething(enhancedElement)\n})\n\nconst myElement2 = queryStrict(\".js_my-existing-element\")\n//code below won't be reached if the previous element was not found\ndoSomething(myElement2)\n\n```\n\n### Transform existing javascript elements to EnhancedHTMLElements\n\nYou can transform an existing javascript Element/List of Elements to an EnhancedHTMLElement/EnhancedHTMLElementList with the following methods:\n\n- `toEnhancedHTMLElement`\n- `toEnhancedHTMLElementList`\n\nYou have to use those methods when input elements are out of your scope (function args, event.target ...)\n\n```ts\nimport { toEnhancedHTMLElement, toEnhancedHTMLElementList } from \"@drivy/dom-query\"\n...\n\nconst myElement = toEnhancedHTMLElement(myHTMLElement);\nconst myElements = toEnhancedHTMLElementList(myHTMLElements);\n```\n\n### Handle events\n\nYou can attach/detach events with the following methods:\n\nEnhancedHTMLElement`.on`\n\n- attaches event like native `target.addEventListener`.\n- returns a \"detach\" function. When called, will remove the event listener like `target.removeEventListener`.\n\nEnhancedHTMLElementList`.on`\n\n- same parameters and behavior than EnhancedHTMLElement`.on` but the event will be attached on each element contained in the list.\n- returns a \"detach\" function that when called will detach the events attached on each element of the list\n\nEnhancedHTMLElement`.onDelegate`\n\n- does event delegation. [pattern description here](https://davidwalsh.name/event-delegate).\n- like `.on` method but takes an extra parameter (first one) as a css query selector to specify the children to use as event targets\n- returns a \"detach\" function. When called, will remove the event listener attached to the container.\n\nEnhancedHTMLElementList`.onDelegate`\n\n- same parameters and behavior than EnhancedHTMLElement`.onDelegate` but the event delegation will be done for each element of the list.\n- returns a \"detach\" function that when called will detach the events attached on each element of the list\n\nExamples:\n\n```ts\n// EnhancedHTMLElement\n\nconst detach = myElement.on(\"click\", e => {\n  doSomething(e.target)\n})\n...\ndetach() //same behavior than native target.removeEventListener\n\nconst detachDelegation = myContainer.onDelegate(\".js_sub-elements\", \"click\", e => {\n  doSomething(e.target)\n});\n// clicking on a child having the \"js_sub-elements\" class will trigger the event\n\n...\ndetachDelegation() // remove event listener used to delegate\n\n// EnhancedHTMLElementList\n\nconst detach = queryAll(\".js_my-elements\").on(\"click\", e => {\n  doSomething(e.target)\n})\n...\ndetach()\n\nconst detachDelegations = queryAll(\".js_my-elements\").onDelegate(\n  \".js_my-sub-elements\",\n  \"click\",\n  e => {\n    doSomething(e.target)\n  }\n)\n...\ndetachDelegations()\n\n```\n\n### Advanced features\n\n#### Event configuration\n\nWhen attaching an event with `.on` or `.onDelegate` you can specify an optional event configuration object as last parameter.\nThis configuration object has a `once` boolean property that when `true` will automatically detach the event after having called once.\n\n```ts\nmyElement2.on(\n  \"click\",\n  e => {\n    doSomething(e.target);\n    // event listener will be detached\n  },\n  {\n    once: true\n  }\n);\n```\n\n#### Specializing the HTMLElement (ex: HTMLInputElement)\n\nBecause `EnhancedHTMLElement` enhances `HTMLElement` by default, to access properties/methods from an enhanced HTMLInputElement with Typescript (ex: `myEnhancedInput.value`), you must declare the target Type when calling the query/converting method\n\n```ts\nimport { query, queryAll, toEnhancedHTMLElement } from \"@drivy/dom-query\"\n...\n\nconst myEnhancedInput = query<HTMLInputElement>(\".js_my-target-input\");\ndoSomething(myEnhancedInput.value)\n\nconst myEnhancedInput2 = toEnhancedHTMLElement<HTMLInputElement>(myExistingInput);\ndoSomething(myEnhancedInput2.value)\n\nconst myEnhancedInputs = queryAll<HTMLInputElement>(\".js_my-target-inputs\");\nmyEnhancedInputs.forEach(myInput => {\n  doSomething(myInput.value);\n})\n```\n","readmeFilename":"README.md"}