{"_id":"@github/query-selector","_rev":"51-fa07473b233496201450ff77cc3e5353","name":"@github/query-selector","dist-tags":{"latest":"1.0.4"},"versions":{"0.1.0":{"name":"@github/query-selector","version":"0.1.0","keywords":["flow","query"],"license":"MIT","_id":"@github/query-selector@0.1.0","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"}],"homepage":"https://github.com/github/query-selector#readme","bugs":{"url":"https://github.com/github/query-selector/issues"},"dist":{"shasum":"1123fff8046badf3d497652ed59c6fc1a5327874","tarball":"https://registry.npmjs.org/@github/query-selector/-/query-selector-0.1.0.tgz","fileCount":7,"integrity":"sha512-VMRpN+5ldI+aNWBVoiy61MG1SjqVo1LSe4s4enxzru9lZb5oKHmmc9Jg7dHETluziJofjM0R5Sa42+tjGNsN2A==","signatures":[{"sig":"MEUCIQC3xLQ96YFumapaiDF94pI5Io6l9/VZqTxcQZXGGJu7QQIgbKgjN+IveIHMB9m8Ywi61sN3N9qhej/M8uNCvvgs1zA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnEtECRA9TVsSAnZWagAAh8EP/jZEW9MdkxrMi40QcWzp\nBgz8To7BU4jTpfbnQ7Bpy52u9CPQoT/dhTbUBue8Mt+Ql2i1Fr0AJZnbceuC\nWQdcx7BpP5uvdXWHC3k79y6FlvDDOwrcbH6mm7sEXX7czNeEM5KMcTfFeESn\nGk66/bNtMqix29salM7/C6bg42pss+G3KQcIPzCD5rtzVIsl+dKYicRMJhD4\n7yBeLH+iUpGUzLfE8Uub1Ah0Db963Kk9Ff+vh6JKp7O20A2nVcU/Sg+UuENl\nrA9DrXzGBCP0Jf0zipin65uBJF0sTWFCMrgAVXmgEtgc9Z7hrkXFm7voe1IU\nUkLECTLqxHUuQwA30EIH6TcjGAxkj3sjpS2FrYeInEuWznoXlKBsjVzf4c9Y\nGIbQ7YZuud4hy4r9t2DdRGmpiuhkV7zTUU3J8Lw3kTITqx3SppPtnNF/h7SH\nnJsn/s6nUsf2IyLeFygb429W6IqFEDSrAOEkdOftbUD1WK49jfgRl9qcFLwk\nNS9ozKtPwjebyFqR5x/w0xluOdCyDyOPPtnwe+0wT25aaKmb8CHRg/Glr8oP\nSi6bzNfX9nCJF8iqkVMOCZrkugSx/m2FQib6exCaBtN3i5635PvndQ3O879t\n5euLJ4O+czoQIt81HJtWbigtJXFkO3wOGUNeuNItO66/a9FZyt0RlJ9K/o6U\nrAMO\r\n=s8BZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","babel":{"env":{"esm":{"presets":[["@babel/env",{"modules":false}],"@babel/flow"]},"umd":{"plugins":["@babel/plugin-transform-modules-umd"],"presets":["@babel/env","@babel/flow"]}}},"module":"dist/index.esm.js","gitHead":"067fb7383e0842e8692272c7ff6665769c8ce089","scripts":{"lint":"eslint index.js test/ && flow check","test":"BABEL_ENV=umd mocha --require @babel/register","build":"npm run build-umd && npm run build-esm","clean":"rm -rf dist","prebuild":"npm run clean && npm run lint && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index.esm.js && cp index.js.flow dist/index.esm.js.flow","build-umd":"BABEL_ENV=umd babel index.js -o dist/index.umd.js && cp index.js.flow dist/index.umd.js.flow","prepublishOnly":"npm run build"},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/query-selector.git","type":"git"},"_npmVersion":"6.4.1","description":"Query the document tree by selector, filtering by element type.","directories":{},"_nodeVersion":"10.10.0","eslintConfig":{"parser":"babel-eslint","extends":["plugin:flowtype/recommended","plugin:github/es6","plugin:github/browser"]},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^12.0.0","mocha":"^5.2.0","eslint":"^5.5.0","flow-bin":"^0.80.0","@babel/cli":"^7.0.0","@babel/core":"^7.0.1","babel-eslint":"^9.0.0","jsdom-global":"^3.0.2","@babel/register":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/preset-flow":"^7.0.0","eslint-plugin-github":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/query-selector_0.1.0_1536969540061_0.07461523871775722","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@github/query-selector","version":"0.2.0","keywords":["flow","query"],"license":"MIT","_id":"@github/query-selector@0.2.0","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"}],"homepage":"https://github.com/github/query-selector#readme","bugs":{"url":"https://github.com/github/query-selector/issues"},"dist":{"shasum":"eb19400ccf8f1d9f20debe6cabb0b7272d03af45","tarball":"https://registry.npmjs.org/@github/query-selector/-/query-selector-0.2.0.tgz","fileCount":7,"integrity":"sha512-UF/agXck1VSKgOOszp5EvVQDcZu1M0rDYNTtMyFNvbQ77PQJzw1bASMbsqHlqphkCS+NTDlt/bDPpfPHD+XGEg==","signatures":[{"sig":"MEUCIQD5uEG61y58UVBg5OZxf/0NNg7oUQNzkHbVxRCSQQJSfgIgGbxm6yGO548naZQ7Tas8iyAiJckBLYbKZncppp/kSiU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtAKUCRA9TVsSAnZWagAApm8P/3dh3aMDCcPsE1UKOo3/\n44wzXdRoEP9GZzmmv4LlVOZvuKDqmmKvUpzmbDpkkfG2JI/0Or0V9wV9TAR4\nNrzne9p4BVvw54A5yK28p7mgIG72oTrvlAGwOK1YOK+ayhIiuoY9f0iBfeMs\nN+b9Q/3kNKxzXs95tYHWsSqGfr85Tl3cQU5pqIf6iZZsXDm3fFenmfxa/Sif\nH+wrfhLvaIiipURy1VGPhwNTo2OwxbBxS5kuVHXEJSSlgjx4PbaTYdp1JMlL\nJCg1tb3DuxtkwjZ4vrbvLC8InGzHpqknPHTuFumedEMbkqv5zcfmlVAasGck\nFgAsr7r/nE9BkZlOStgEf242wYKCFzsIvBDy/cHIzkVTQx3SECf94YHLVeKC\nMvXQtDfYWnit9UvTEPhHb3C5avesHIi95JpW72IL6m7o+9knsscbGyX3wtiH\nODf06oEBIpmNFymMbKxFag9hpHgtbBPE9AX1iAvm3YrL6btcb1DcK2p5rfgo\nViFm0fEvxPcOJYc3diVCB6s7voTGto50inmFqTFcAW32ZA0lx5OPpYSH7Qts\nHLhWT18OXT4CT5jpA5+bUxdvEay5l2L0pNRtACdfZ+sgPPvjjV+Oz/pjRMii\n4Ag5E8JzrkpLKDrPputuWpeF8BWsqomk+jUEAPwC35fXVU0V/1tMo5EiP8Wc\nw29v\r\n=dBLb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","babel":{"env":{"esm":{"presets":[["@babel/env",{"modules":false}],"@babel/flow"]},"umd":{"plugins":["@babel/plugin-transform-modules-umd"],"presets":["@babel/env","@babel/flow"]}}},"module":"dist/index.esm.js","gitHead":"1a304bd4f149ae597abe10e1af8e7770b15ec7d8","scripts":{"lint":"eslint index.js test/ && flow check","test":"BABEL_ENV=umd mocha --require @babel/register","build":"npm run build-umd && npm run build-esm","clean":"rm -rf dist","prebuild":"npm run clean && npm run lint && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index.esm.js && cp index.js.flow dist/index.esm.js.flow","build-umd":"BABEL_ENV=umd babel index.js -o dist/index.umd.js && cp index.js.flow dist/index.umd.js.flow","prepublishOnly":"npm run build"},"_npmUser":{"name":"josh","email":"josh@joshpeek.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/query-selector.git","type":"git"},"_npmVersion":"6.4.1","description":"Query the document tree by selector, filtering by element type.","directories":{},"_nodeVersion":"10.11.0","eslintConfig":{"parser":"babel-eslint","extends":["plugin:flowtype/recommended","plugin:github/es6","plugin:github/browser"]},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^12.0.0","mocha":"^5.2.0","eslint":"^5.5.0","flow-bin":"^0.80.0","@babel/cli":"^7.0.0","@babel/core":"^7.0.1","babel-eslint":"^9.0.0","jsdom-global":"^3.0.2","@babel/register":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/preset-flow":"^7.0.0","eslint-plugin-github":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/query-selector_0.2.0_1538523795995_0.7199331844613002","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@github/query-selector","version":"1.0.0","keywords":["flow","query"],"license":"MIT","_id":"@github/query-selector@1.0.0","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"}],"homepage":"https://github.com/github/query-selector#readme","bugs":{"url":"https://github.com/github/query-selector/issues"},"dist":{"shasum":"67c6a8834b21b787e8e85110a1d06a1b96695c36","tarball":"https://registry.npmjs.org/@github/query-selector/-/query-selector-1.0.0.tgz","fileCount":8,"integrity":"sha512-uiATUYt9WjQCBi++Rt9UdyPsbqI4YKxWxBq0yD24/bUWnojkrGhdmLhz6YmYI0hOkvbbvbmWy3MJlQdf3pvzvA==","signatures":[{"sig":"MEQCIGWrAmSoux2VuBC3lhtk5YvKSd1ne5toC9Imw1iVnUiTAiA5f2Iv3zR2ZRoHdyf5/x3J5asDhRp94cmmSTEj1FSCmQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcve24CRA9TVsSAnZWagAAjqMP+QCLMAWMPoOcbKAosv5S\nA1HmKp3x335t8CbTGhx36O9iCfn/BQX681aeU8r1plV9ffcyLSfrcovQv28h\nbKWANvhsEZQiMAPbM+PdqVRshmPuPY58mmTZqkn2YeHG0fSSI3ZuI3wkPuBm\nOYmhW6pUMVBCFJ8Qu/Tr8do0r8u9jSgTWOKTz3HYLxKB0FgiZb84LLSrvj/1\nYAWgevreH4gUkT3jrVNd96AfQ8ojtYpCXO8HL9AoeHUnh/oDwqAD3r+6oyQC\nuU1KTs4YJJm4uDvSRuPh438rkSv7huzjwE3sIp/IY9CIPQYbzVNbfifVvoyZ\nfcHGfm3AY7IFdI2jCgPWSM2VVrAKYhaoGt2ShaTTJjx6NYNjpHZNEsdGxgWw\nnL4rR05V5STzTvcABsm76pQOZz+SZ5BMKeNK1cCVzWRZeFjKQBLCM+ag8ALI\nAfUV+DCHlpu9h8tNgG875Imq1NwtSrKU2KH+E58stIQlnt93BWqQJgXc2J9V\nf1tixlFGheFstyT/TmeGXi4S7LnJjxrU23v5fvNdEken/fYPGFB/E5wBlc9v\nuxSCbf0ZClYLaW1WNDzni42NT6zeAgqQEY0TS90XgnpuUPMlvyMILuf+z9D5\nAxEpE0JNtGBzvDrX+6UvyUgVVXoscSTzpPTr6XF3z6dLvUO5hhSIm1dBlWF5\nWHfu\r\n=21Bu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","babel":{"env":{"esm":{"presets":[["@babel/env",{"modules":false}],"@babel/flow"]},"umd":{"plugins":["@babel/plugin-transform-modules-umd"],"presets":["@babel/env","@babel/flow"]}}},"types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"baaef4622913d7bef16def25291fa055d7826ba0","scripts":{"lint":"eslint index.js test/ && flow check","test":"BABEL_ENV=umd mocha --require @babel/register && tsc --noEmit --strict test/test.ts","build":"npm run build-umd && npm run build-esm && cp index.d.ts dist/index.d.ts","clean":"rm -rf dist","prebuild":"npm run clean && npm run lint && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index.esm.js && cp index.js.flow dist/index.esm.js.flow","build-umd":"BABEL_ENV=umd babel index.js -o dist/index.umd.js && cp index.js.flow dist/index.umd.js.flow","prepublishOnly":"npm run build"},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/query-selector.git","type":"git"},"_npmVersion":"6.9.0","description":"Query the document tree by selector, filtering by element type.","directories":{},"_nodeVersion":"11.14.0","eslintConfig":{"parser":"babel-eslint","extends":["plugin:flowtype/recommended","plugin:github/es6","plugin:github/browser"]},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^15.0.0","mocha":"^6.1.4","eslint":"^5.16.0","flow-bin":"^0.97.0","@babel/cli":"^7.4.3","typescript":"^3.4.4","@babel/core":"^7.4.3","babel-eslint":"^10.0.1","jsdom-global":"^3.0.2","@babel/register":"^7.4.0","@babel/preset-env":"^7.4.3","@babel/preset-flow":"^7.0.0","eslint-plugin-github":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/query-selector_1.0.0_1555951031160_0.0037520216261501815","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@github/query-selector","version":"1.0.1","keywords":["flow","query"],"license":"MIT","_id":"@github/query-selector@1.0.1","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"}],"homepage":"https://github.com/github/query-selector#readme","bugs":{"url":"https://github.com/github/query-selector/issues"},"dist":{"shasum":"598b13515582e02d1498aecd85377a2e06bfab42","tarball":"https://registry.npmjs.org/@github/query-selector/-/query-selector-1.0.1.tgz","fileCount":8,"integrity":"sha512-a5fBRp8kq3LjJkY9X97lDA8P7UQ6l5i+q5vysKB99TJbmIi6tTxbdzj2PC1xL9UJglsYieFWSuE2a6h135cLSw==","signatures":[{"sig":"MEUCIQD9+87AyLAN9X0NZSs9qofEMkwKiGIn7quUf3DZVnJPlQIgVpon67AXJ38pBe4bxvuFvxAUe2DRcge+Y+crhC3PyMM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQcDUCRA9TVsSAnZWagAA3wYQAKRtrjPILxKgCNqjm3t1\nihgZHVDOB9mVgg63xRokgkNkmk86HuBdA6f95V/zdZ7PaLeZ4c5Ru3/pprcT\nJ2lBDG4pf5alGEoKclCmgL+wu7uDZX19Dv/0mA0IaRt5pgQ135soeydDOMXM\n2oUwKHEhv6lxqIdWntM5gA9cWAAq1A1vB54v/g6H7ZrfzfFJqgW6Al6RIUa5\nm6d7GtCTHlfwTmefzDocekuFDmawdfB+BV1kiIY7+cZMzUXo2P+f+zVbmFPK\nDKNmSZktyhmqnhJOI4A5XLKOkkSP6k4IV/vVVpRSQNXenToUoytUaKGD7A1Y\nfAgOeGs0dkhXRDXrgIXjk1PkjCp97KugN3GyRqujLMMPaezMtD9Y5Hv3AT43\nxPbuqmH1Xf+o0i1Nvgi/bl0aCXsxuXh6nW+OePXWgrpXbGCF+LUPCOz/bqlx\nPaIlrpc03Kz+J10cfQ6YtNiKm7vARpDzCZJfumds+8WacHLKHnVcNaZU0Agx\np5j0Dd5omYqVRkxFcjPmbWSmQSv/55FsY+T4vIB/qUKfcWMTXCuh83I0Loil\nXKfpluZoS0QLvxzzXW6l2O8byYSZu5Eq3IB+Co15MzrteclSbPjaGHMijU3Y\nWp1obv8pCSZqZaumHuuV0t0dNqvDYwy2awRLOEzOLXeWmoRrydq7HNPI/msD\nU4Zl\r\n=CXTb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","babel":{"env":{"esm":{"presets":[["@babel/env",{"modules":false}],"@babel/flow"]},"umd":{"plugins":["@babel/plugin-transform-modules-umd"],"presets":["@babel/env","@babel/flow"]}}},"types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"297aa2c1e403efab7a96b0e6ed11a727c628eb91","scripts":{"lint":"github-lint","test":"BABEL_ENV=umd mocha --require @babel/register && tsc --noEmit --strict test/test.ts","build":"npm run build-umd && npm run build-esm && cp index.d.ts dist/index.d.ts","clean":"rm -rf dist","prebuild":"npm run clean && npm run lint && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index.esm.js && cp index.js.flow dist/index.esm.js.flow","build-umd":"BABEL_ENV=umd babel index.js -o dist/index.umd.js && cp index.js.flow dist/index.umd.js.flow","prepublishOnly":"npm run build"},"_npmUser":{"name":"koddsson","email":"koddsson@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/query-selector.git","type":"git"},"_npmVersion":"6.10.2","description":"Query the document tree by selector, filtering by element type.","directories":{},"_nodeVersion":"12.6.0","eslintConfig":{"parser":"babel-eslint","extends":["plugin:flowtype/recommended","plugin:github/es6","plugin:github/browser"]},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^15.0.0","mocha":"^6.1.4","eslint":"^5.16.0","flow-bin":"^0.97.0","@babel/cli":"^7.4.3","typescript":"^3.4.4","@babel/core":"^7.4.3","babel-eslint":"^10.0.1","jsdom-global":"^3.0.2","@babel/register":"^7.4.0","@babel/preset-env":"^7.4.3","@babel/preset-flow":"^7.0.0","eslint-plugin-github":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/query-selector_1.0.1_1564590291837_0.6998363166789019","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@github/query-selector","version":"1.0.2","keywords":["flow","query"],"license":"MIT","_id":"@github/query-selector@1.0.2","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"lgarron","email":"code@garron.net"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"}],"homepage":"https://github.com/github/query-selector#readme","bugs":{"url":"https://github.com/github/query-selector/issues"},"dist":{"shasum":"7d4d922e9c19b4b9fbbd9f7881df08a73753f3d8","tarball":"https://registry.npmjs.org/@github/query-selector/-/query-selector-1.0.2.tgz","fileCount":8,"integrity":"sha512-V9UCH/FXd4N/qtWF2iD7n09Zlf8DGxNPGog3CVrS1fZVoze45nMBT/53CVPU9TKgTKW7cfC2ZMIrvYxCG27muQ==","signatures":[{"sig":"MEUCICwcCwg6SOQrQbi4jELJaudhxkaw2FFCBQguP7J29SUeAiEAlWCG0S+LTemuANUiM7Ts30pTZXCHQKBrq8H6xDGCp+E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSZEgCRA9TVsSAnZWagAAmxUP/3TNHWO7Zac3klIPXIen\nBFNA3xzdYYYwYX9XmGT+Hpz0Zxi6lJRZ+WqDY5bvHgTM9xJrS8EFF1IbX7ru\nGnaW0+wWmw5vxpR1m94LLo7U+Rj4vL1xqgudIpWpAIOoO/r50ZNqWcW8ByUx\n8NjiizsX4ZnaGI+9D0DeSXvkeh/JJDr93/ECjtT9utfYpTzapzUhffVZQqJD\nKgshbv2N0ZCXK63SO/9nduMI8rCOrk7jkIVBUkJQJGwlbJLJZ+ydOcQKREA2\nqIBa8TGGgertY44cazEOFeO+Ar4sy50CFws+4rsIwsEXMZAz1zWUfvAE+joz\n0e01mtshOlEbRKvdaweJjLtQoD+kp7+NzmVsT7NZfpnINpAqLVtrq1rVQ0m6\nLVXnNba8LiElHaF7F0Hq/koRGAqw7iNaSAecwMEyEHNNWqrUInLKcf3Z8I6i\nMbHWIgPkDg3G2OBAUS2lDPjlBsPYZiomPAGoZazXvBFQHygIDOqWaRxBrAJE\nmvliASUp+K8ebuoh9gkwZmNmmdB4iwfYKRNFBwJFTmEsbFcfPc46YwoPoD+8\n3qmmh/AJOkhHzYe9lFGGFrCPZg7xgAYdZqruieL1TFx6/aCKsgmgRivkfqyH\nj5jIB4gsnqNH7phakbE7lfcEBlM6uUkdAnkQw57xOoZBzzkoEnjqnZcOBwNN\nrL7g\r\n=xgeU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","babel":{"env":{"esm":{"presets":[["@babel/env",{"modules":false}],"@babel/flow"]},"umd":{"plugins":["@babel/plugin-transform-modules-umd"],"presets":["@babel/env","@babel/flow"]}}},"types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"ed91a5bc9464104d215171d6dfb6b5bc28f72e33","scripts":{"lint":"github-lint","test":"BABEL_ENV=umd mocha --require @babel/register && tsc --noEmit --strict test/test.ts","build":"npm run build-umd && npm run build-esm && cp index.d.ts dist/index.d.ts","clean":"rm -rf dist","prebuild":"npm run clean && npm run lint && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index.esm.js && cp index.js.flow dist/index.esm.js.flow","build-umd":"BABEL_ENV=umd babel index.js -o dist/index.umd.js && cp index.js.flow dist/index.umd.js.flow","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"koddsson","email":"koddsson@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/query-selector.git","type":"git"},"_npmVersion":"6.10.2","description":"Query the document tree by selector, filtering by element type.","directories":{},"_nodeVersion":"12.6.0","eslintConfig":{"parser":"babel-eslint","extends":["plugin:flowtype/recommended","plugin:github/es6","plugin:github/browser"]},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^15.0.0","mocha":"^6.1.4","eslint":"^5.16.0","flow-bin":"^0.97.0","@babel/cli":"^7.4.3","typescript":"^3.4.4","@babel/core":"^7.4.3","babel-eslint":"^10.0.1","jsdom-global":"^3.0.2","@babel/register":"^7.4.0","@babel/preset-env":"^7.4.3","@babel/preset-flow":"^7.0.0","eslint-plugin-github":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/query-selector_1.0.2_1565102368235_0.7644246582774445","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@github/query-selector","version":"1.0.3","keywords":["flow","query"],"license":"MIT","_id":"@github/query-selector@1.0.3","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"josh","email":"josh@joshpeek.com"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"lgarron","email":"code@garron.net"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"shawnbot","email":"shawnbot-npm@nym.hush.com"}],"homepage":"https://github.com/github/query-selector#readme","bugs":{"url":"https://github.com/github/query-selector/issues"},"dist":{"shasum":"c5dac55499926a14417b4d5ed3d8f4278dbbfcdb","tarball":"https://registry.npmjs.org/@github/query-selector/-/query-selector-1.0.3.tgz","fileCount":8,"integrity":"sha512-iS9XoSVLnE4IA6U5FmqxdlKWluF/ABw7MmJ2b2KqHl3bJ8qBMDKwnzRy7i3kbzZWx5J2JkUt/bBVCeJllBUqsw==","signatures":[{"sig":"MEQCIAG+4/1aslPxYqUrQeothqbsTv/z63u+MavF5Mbb38f4AiA9C131FuuYcRQrmEVrKUJ3QQEO7TUsMYyaPJDcUESpwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwrSmCRA9TVsSAnZWagAAD6AP/RrG07I0TNOkcpd2xw4o\nx3fM1M32VLLKJ/0XLYuDefJEWcGjVW5aTPCxe6/qxsAo4vL+MrJnY4xXS9/i\nr5cSN7hMASNazkqhPiHvR/6ZuIyOgbGPmwgzKoBkMH6+yKJM8jE7wV676c9a\n+h3gTxck8EsalPPfyVqltuMwWGea1VURrjgikl7grybO+wkiPS+R1UXBrzLv\nQYkdxrbxzbqFNxMCjQsVrGfDPqRD3KhK5PvMXhyHFBZ17oW71A0nZf7X2dNG\nNHiM2tLZ+jf60QyfLIgMw0lzkww8s+srevqmssGQld7V6ADAxZekjXqgvKsg\ntFj9Kel3YdwMkYDfwag4yO9QLfHimTKynmNlUmcB34xCYjnY3T7fCtr4ZI1M\nVAQraaC6ZUGAeyp008dJxjfd+c10tMYFPmnJBt3TEqEVNO219rSEVsRm1+4y\ns/mQnXXHpZDUmXS8/irR7I1mjfUAC91dT9filcWEed7erQmoMZdD+Pkr/Wr5\nqEtwDh5pViyYFhwwhT1H9wBh1bsl+ZPv15mjpTOI8s2+NgJK2M3BRhrsDgHR\nYJhMhE+rdDgNXr8RCCVHH1HGCIc/H/uoYJGmmRMkoXSENaLmgJ7heZs6lKoM\n3OeyKzgLoIXr7qN0ddlXRS6MRc4TLZEMyK9efUv9toUiZ9MUxJ46Iu9RBTcj\ngalx\r\n=t9TV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","babel":{"env":{"esm":{"presets":[["@babel/env",{"modules":false}],"@babel/flow"]},"umd":{"plugins":["@babel/plugin-transform-modules-umd"],"presets":["@babel/env","@babel/flow"]}}},"types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"62c191ed307ed99cd1f667c70488aa7ac515b178","scripts":{"lint":"github-lint","test":"BABEL_ENV=umd mocha --require @babel/register && tsc --noEmit --strict test/test.ts","build":"npm run build-umd && npm run build-esm && cp index.d.ts dist/index.d.ts","clean":"rm -rf dist","prebuild":"npm run clean && npm run lint && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index.esm.js && cp index.js.flow dist/index.esm.js.flow","build-umd":"BABEL_ENV=umd babel index.js -o dist/index.umd.js && cp index.js.flow dist/index.umd.js.flow","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"koddsson","email":"koddsson@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/query-selector.git","type":"git"},"_npmVersion":"6.12.1","description":"Query the document tree by selector, filtering by element type.","directories":{},"_nodeVersion":"11.11.0","eslintConfig":{"parser":"babel-eslint","extends":["plugin:flowtype/recommended","plugin:github/es6","plugin:github/browser"]},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^15.0.0","mocha":"^6.1.4","eslint":"^5.16.0","flow-bin":"^0.97.0","@babel/cli":"^7.4.3","typescript":"^3.4.4","@babel/core":"^7.4.3","babel-eslint":"^10.0.1","jsdom-global":"^3.0.2","@babel/register":"^7.4.0","@babel/preset-env":"^7.4.3","@babel/preset-flow":"^7.0.0","eslint-plugin-github":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/query-selector_1.0.3_1573041318496_0.18920587497883368","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@github/query-selector","version":"1.0.4","keywords":["flow","query"],"license":"MIT","_id":"@github/query-selector@1.0.4","maintainers":[{"name":"broccolini","email":"diana.mounter@gmail.com"},{"name":"dgraham","email":"david.malcom.graham@gmail.com"},{"name":"emilybrick","email":"emily.brick@buzzfeed.com"},{"name":"emplums","email":"eplummer26@gmail.com"},{"name":"jonrohan","email":"yes@jonrohan.codes"},{"name":"keithamus","email":"npm@keithcirkel.co.uk"},{"name":"koddsson","email":"koddsson@gmail.com"},{"name":"lgarron","email":"code@garron.net"},{"name":"mdo","email":"markdotto@gmail.com"},{"name":"mislav","email":"mislav.marohnic@gmail.com"},{"name":"mschoening","email":"max@max.wtf"},{"name":"muan","email":"me@muanchiou.com"},{"name":"primer-css","email":"design-systems@github.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"homepage":"https://github.com/github/query-selector#readme","bugs":{"url":"https://github.com/github/query-selector/issues"},"dist":{"shasum":"6d8bdcd21bc4bf7df82d71a9a6387b1533f8e120","tarball":"https://registry.npmjs.org/@github/query-selector/-/query-selector-1.0.4.tgz","fileCount":8,"integrity":"sha512-qtV+sWcp3DPO69LUKZJD+VLdfo3FYII1qmJfQhMd0x17pDBZn6FwYQB3fH9okYTz1J8hT1UOfOm8o4siBcQJ5Q==","signatures":[{"sig":"MEYCIQDPI7iNzRlrfEBrTUL+m9j1cvnJZTMARUdCD31BCzSm6QIhAOumrp/bhO1r2hjlGS1s1BrWzoOPJbyHGyWU4rk2iMq5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2I5CCRA9TVsSAnZWagAA3G8P+gPSbrqHBtUv8+IsGAJn\nwehDwWs3SA31HFn8lFPNihdO76Uc9rHw09LkI670r6yULHgV5nIkFaWPhiR6\n/4rrn8YdTPf9iVzDxbf5ZjLpCJLLP/+rqENhFChPLalVvPc0uJlWNlEx5Sde\nbmPCPuKBjhDLmSJf6Er0p4BxzppqtihSIp2axOdZ6NOiKjXLWguQEKOnTcPL\nnwrdd8bTw3Dgn61zZjwL+MghVbpa/oLXIkMLgrezAKIQZyevsARJN6KvZNSJ\nfkBGZrhj2D2Tzk27YezlUyQ472Ga92s2MyPrc64aIls6f+OJVYniv+K8EffJ\neEvrdoe1nXfW/lwkq7K+I60WpOzDZawza5iMI0xefpVymQxhhKeDWywHseQS\n4KlXhGGpw0YJtok69as56/B/Pvj0DASdhZZA0FVnHF3HRZlgNvsQCveBMNWW\n8UXiWltibgT5F4VthYXtzhfeUURkGVvKXcPP/2lMoJPRboTNY139ku46nICa\nwJpwPn6WWjlfCXThPXF1LOMxWHXauLlW2AzgqMp7M7O6wNVImIcJzp2Gzoyv\nsuRQH21uFG2F12V/zo9B8QEzw9hOAYmephRXYnrkandFGincVRVMIV/FArYO\n9SMPWRPC1NFPGmxdFWqNWlhAxQaIamxPuO3z9vmCYnsPkMRTQkOkFtmgeyjo\nZcqX\r\n=cHcs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","babel":{"env":{"esm":{"presets":["@babel/flow"]},"umd":{"plugins":["@babel/plugin-transform-modules-umd"],"presets":["@babel/env","@babel/flow"]}}},"types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"06dec26c57ee65da4aabb4f55d5fe8bd77323e65","scripts":{"lint":"github-lint","test":"BABEL_ENV=umd mocha --require @babel/register && tsc --noEmit --strict test/test.ts","build":"npm run build-umd && npm run build-esm && cp index.d.ts dist/index.d.ts","clean":"rm -rf dist","prebuild":"npm run clean && npm run lint && mkdir dist","build-esm":"BABEL_ENV=esm babel index.js -o dist/index.esm.js && cp index.js.flow dist/index.esm.js.flow","build-umd":"BABEL_ENV=umd babel index.js -o dist/index.umd.js && cp index.js.flow dist/index.umd.js.flow","postpublish":"npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'","prepublishOnly":"npm run build"},"_npmUser":{"name":"dgraham","email":"david.malcom.graham@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/github/query-selector.git","type":"git"},"_npmVersion":"6.13.7","description":"Query the document tree by selector, filtering by element type.","directories":{},"_nodeVersion":"13.11.0","eslintConfig":{"parser":"babel-eslint","extends":["plugin:flowtype/recommended","plugin:github/es6","plugin:github/browser"]},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^16.2.1","mocha":"^7.1.1","eslint":"^6.8.0","flow-bin":"^0.121.0","@babel/cli":"^7.8.4","typescript":"^3.8.3","@babel/core":"^7.9.0","babel-eslint":"^10.1.0","jsdom-global":"^3.0.2","@babel/register":"^7.9.0","@babel/preset-env":"^7.9.0","@babel/preset-flow":"^7.9.0","eslint-plugin-github":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/query-selector_1.0.4_1585264390115_0.46108970449631026","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-09-14T23:58:59.924Z","modified":"2026-08-07T19:04:41.660Z","0.1.0":"2018-09-14T23:59:00.247Z","0.2.0":"2018-10-02T23:43:16.077Z","1.0.0":"2019-04-22T16:37:11.352Z","1.0.1":"2019-07-31T16:24:51.976Z","1.0.2":"2019-08-06T14:39:28.361Z","1.0.3":"2019-11-06T11:55:18.621Z","1.0.4":"2020-03-26T23:13:10.273Z"},"bugs":{"url":"https://github.com/github/query-selector/issues"},"license":"MIT","homepage":"https://github.com/github/query-selector#readme","keywords":["flow","query"],"repository":{"url":"git+https://github.com/github/query-selector.git","type":"git"},"description":"Query the document tree by selector, filtering by element type.","maintainers":[{"email":"manuelpuyol@github.com","name":"manuelpuyol"},{"email":"yes@jonrohan.codes","name":"jonrohan"},{"email":"design-systems@github.com","name":"primer-css"},{"email":"lugraciecy@gmail.com","name":"gracepark"},{"email":"jibrang@github.com","name":"jibrangarcia"},{"email":"arelia.jones@gmail.com","name":"arelia"},{"email":"tylerjdev@github.com","name":"tylerthedev"},{"email":"clay@smockle.com","name":"smockle"},{"email":"sim@simurai.com","name":"simurai"},{"email":"katehiga8@gmail.com","name":"khiga8"},{"email":"simon.taranto@gmail.com","name":"srt32"},{"email":"dgreif+githubbotnpm@github.com","name":"githubbot"},{"email":"jonathan.fuchs@gmail.com","name":"jfuchs"},{"email":"andri.j.alexandrou@gmail.com","name":"andrialexandrou"},{"email":"joycezhu@github.com","name":"joycezhu"},{"email":"bteng22@gmail.com","name":"bteng22"},{"email":"dustin.savery@gmail.com","name":"dustin.savery"},{"email":"ncalteen@github.com","name":"ncalteen"},{"email":"alaingoga@gmail.com","name":"alaingoga"},{"email":"andrei.girip99@gmail.com","name":"andreiig"}],"readme":"# A typed querySelector function\n\nQuery the document tree by selector, filtering by element type.\n\n## Installation\n\n```\n$ npm install @github/query-selector\n```\n\n## Usage\n\nThis library provides a set of functions to query the document tree with a\nstandard selector paired with an additional type filter applied to the result.\n\nAn element must match the selector as well as the type for it to be returned.\n\n- `query(context, selector, klass)`\n- `querySelectorAll(context, selector, klass)`\n- `closest(element, selector, klass)`\n- `namedItem(element, name, klass)`\n- `getAttribute(element, name)`\n\n```js\nimport {closest, getAttribute, namedItem, query, querySelectorAll} from '@github/query-selector'\n\n// Find an element by selector and type, or throw if not found.\nconst image: HTMLImageElement = query(document, '.avatar', HTMLImageElement)\nimage.src = '/hubot.png'\n\n// Find the parent by selector and type, or throw if not found.\nconst parent: HTMLDetailsElement = closest(image, '.container', HTMLDetailsElement)\nparent.open = true\n\n// Filter all children by selector and type.\nconst inputs: Array<HTMLInputElement> = querySelectorAll(document, 'input', HTMLInputElement)\nfor (const input of inputs) {\n  input.value = ''\n}\n\n// Retrieve the attribute's value or throw.\nconst url: string = getAttribute(image, 'data-url')\n\n// Find the form's `input[name=login]` field or throw if not found.\nconst form: HTMLFormElement = query(document, 'form', HTMLFormElement)\nconst input: HTMLInputElement = namedItem(form, 'login')\n```\n\n## Motivation\n\nFinding an individual element in the document tree and operating on it can\nlead to null pointer exceptions.\n\n```js\nconst el = document.querySelector('.expected-element')\n// el may be null!\nel.classList.add('selected')\nel.setAttribute('title', 'hello')\n```\n\nA safer alternative is to guard against null values with a conditional statement.\n\n```js\nconst el = document.querySelector('.expected-element')\nif (el) {\n  el.classList.add('selected')\n  el.setAttribute('title', 'hello')\n}\n```\n\nEven if found, the element may be of the wrong type.\n\n```js\nconst el = document.querySelector('.expected-element')\nif (el) {\n  // Element might not have a value property!\n  el.value = 'hello'\n}\n```\n\nAdding an `instanceof` test would verify the element has the properties and\nmethods we expect.\n\n```js\nconst el = document.querySelector('.expected-element')\nif (el instanceof HTMLInputElement) {\n  el.value = 'hello'\n}\n```\n\nBecause `document.querySelector` is so frequently used in web applications,\nand it's tedious to guard every element query with null checks, these tests\nare most often omitted. When using [Flow][], however, these tests become\nrequired to pass the type checker.\n\n[Flow]: https://flow.org\n\nThe combination of null tests and subclass type refinements feels like we're\nworking against the type system, rather than with it. So, typed query functions\nconsider a missing element, or an element of the wrong type, to be failed\nassertions and throw an exception to fail as early as possible.\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the MIT license. See LICENSE for details.\n","readmeFilename":"README.md"}