{"_id":"vitest-matchmedia-mock","_rev":"12-91bd401f12f531ce15480a3143300101","name":"vitest-matchmedia-mock","dist-tags":{"latest":"2.0.4"},"versions":{"1.0.0":{"name":"vitest-matchmedia-mock","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@1.0.0","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"7fadcdcbf1abcb126f079d5e232806c9e154f83b","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-1.0.0.tgz","fileCount":5,"integrity":"sha512-Emk5NceenlK9+DxMptVcl9An5j0AuBhhMJbAaHeAzoni+LljtugbbMdjAcw8CKixAJdTCOPEv3v37lZTvemS8g==","signatures":[{"sig":"MEUCIQCjg7WRlff94/ZYztVuqwBOzHCwEmu+Kn+weIoedgHmhgIgMjIcxHu0jTJjhqdhcITb/0vTIXc1OaLgSxQroF4yai8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjt8r8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqteg//SqHtTVj/n6ydDgPDru1gUw+C1msd8S+nPFgusrjDO20f9tBf\r\n8RfH+uAhcweuobI5pca9Jmlt3DxU+HgBq+KG/ZG6edVhCaNaU5phd+mn/vOz\r\nKdssWrh7k1T4cE+TpXuudOakuX5ybwak5ChMoqCBHSmC8r2PES3ve5C4qD1z\r\nnOZrL78riKdMo9ClDWi6ZBo1YxFmBtInIIbxPh/WY/185RMqrQPgyF1mKPCf\r\nStxtyK6KYrXVQHFkf5Xwqa/EFR2hx0h3W8iE/pz+LB/oj03u8pKdicYsHLma\r\nJ/BUdlnOgMQjNn1oOJg+Q7U0AHiAKqFRFDXoM9RIyIw3t7WFnkw20Fkvmf9A\r\ncgu22bvr8J8PIkWwha62+riid7ZxvTlk+FVDs7jA7BTyMYAmmrnyafGE/ziJ\r\nFeXyAP4Ujb7gI0ktU7BXbJ22J/lruoYMubtBUhKXsVbxSS5B6SaZg0SHzWmk\r\nkA/63LtC25BxI6N+tW3Y2lVP5/detRsc62LDb6zrlT6nwdwIMypXOVG8Z6Ny\r\nQlwN/neQSEgrWOCjXUVBRycc+l7f8kilyQvv4tQ0QdTcSdJ3kHpNkt8Qx/1I\r\n8gm4wDPa+nxxSWFdButR2jzE+RHOy/s4B73c5D4hd6mbiI94TjnzkFGjdO9u\r\n2WxcECLxv58EgNMhV2ks8nz4GkOXUvsbp/0=\r\n=XZBH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"81ceafa75b9697b26c93c2e2d5ef2ff017ce9f61","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"8.15.0","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"16.17.1","dependencies":{"vitest":"^0.26.3"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^20.0.3","tslint":"^6.1.3","prettier":"^2.8.1","typescript":"^4.9.4","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_1.0.0_1672989436607_0.46187591577937326","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"vitest-matchmedia-mock","version":"1.0.1","keywords":[],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@1.0.1","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"2404cfa7fda50dce17b38ad8ab33161a1e3e59fe","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-1.0.1.tgz","fileCount":5,"integrity":"sha512-gkJTbkeQwkKMY2IMkcDXxVl1QHGHpzp+3yAe765uQk/gjoBmzcXJqdCqr3Pzib4/n75e+emz9ki0NgCLxTIyJg==","signatures":[{"sig":"MEUCIEPiYpZFjGQZ6239NZWx/B2a96JKMnr4/L6MwMfF2unvAiEAmvX25XUgsL9h2bTRIWpGZb/vMI8XIGbOsNZMet2grx4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjt9LeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmot3w//YzudRo09l1AN751LPHbG2Kr6QgWONsuDCWE50LiSjDl+Lbzr\r\nyCgNtrfyoX3MuHjVccedTr73MU7QRCSaE5JUSDbrlU0E+03u6zaZ+A/5zwsV\r\nEpQ4lS1ALNzRnD3JmSLksRr9FPysd5rTW4bUICecALtQyfBALYnZlO1U+Fik\r\nsvFDLyVvyJNLTFUhR9d81nyKzqQzsHmUmPb1/WkDcfliIon3quWMNWVe/SIq\r\nAoQaliAIs4l06F/pnh3X2ueaJIF7kWjWU9bxZhO6saAy/vK6zjZgINtsTM4d\r\nROWErmQgl7j4YQAQHi6XqprBpZ8zXOogBFlhUZmQrfEiHP+GGH2MkP+J+fcd\r\nR8GbZs/K5SgDW743UoSI9qJWxzfqjxF4Psd8ChVZ2xAhCjct6SrGDLCfDwcu\r\nJM0TBBbwoJHgu+jK1sIjvKXqeW7e2/ccT8wcaClqehMXSpi/Yqls2qeq/+8m\r\nnCzRv3MnFjACD1augkM6//XGgFWS+PN3dVU7EKe/QPP/EdgVjcnfRv9F9H+A\r\n9F9nnlMUHYS/Ks2WbENuHeVFWEcv6O8hlVNQesuKOFVn31nF5ffifN0djmMm\r\n+3+f9XolQzfpCg+FbpmKBliitdh9zrGGFVsZxJLlnjCSMOplohBlMOBAQJj6\r\nvhkfCo90D+D+ayV1lFy1wx47lQPJwkiMXnk=\r\n=omb/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5ea1f460d934d55021e23accadb83887662ab0c7","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"8.15.0","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"16.17.1","dependencies":{"vitest":"^0.26.3"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^20.0.3","tslint":"^6.1.3","prettier":"^2.8.1","typescript":"^4.9.4","@vitest/coverage-c8":"^0.26.3","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_1.0.1_1672991454655_0.8296872296856441","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"vitest-matchmedia-mock","version":"1.0.2","keywords":[],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@1.0.2","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"0f8efd010a0e4ecdc5c100bef0dbd1717ddfa133","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-1.0.2.tgz","fileCount":5,"integrity":"sha512-vRkh/Ity8KKkeLD2PuJ3t8O05r5m/W7YE+L+UowJgeiLQrSQ5BQN1CsRF7IJGE3VJHdZ6dIdUPvkLid997Lrpw==","signatures":[{"sig":"MEYCIQDwBVqUQTbyt9mlb8fByxPckkONobBf2wnqnSGebe8lYQIhAJnnJlA8idG9rmePF7V2Qff2Op6sL0Vltndok4JQIINt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2J00ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXOw//We6UKRDEXkUiaAptGNDFUPaBTWYU8lYI3kJNiMi1xR7bDS/F\r\nStPKY0+yYfqyje/+breMomy3aiQf+VvXluiBWkvcLh5IjjMc495SSOWKfTI3\r\nx9DaxgRnlgzegrkO7R6jsHBSiN37BvlqkMFDzXvVfzVANumDaymga61ThZ8M\r\nSv+eRgrT/esifvbcJbqnUj9mA1vj1rNkH2TzGMWYFXOjEc4+SpujiB4c2cG/\r\nH/6/zo2t+RsKzqJqXUN9TXyC+ycfLks3bcnIoo+553rKESvO85L/KaukVycR\r\nF5JVjH2gF567IgWqPMsEVDu17ElqEuQIvIbmV9ZZOXLRIoLqjEwGlNXZkG70\r\nZr1Q4fH4KnvrdZNNCswYYBtYWYwXICdOppy24WrE34k3+/6PI1ky/nE6p+Cd\r\nPXz3Kk/AbW2XmsuAtlIh7iHyul3AGAy6nJ0wYh1L/GRsOeHURXYE8pzzcjvo\r\ni41Gt5fgwL8uIBjSpLnBb4URZvoo7P/OlFhHrb2f46lXY1jXYfolKNyXHZP/\r\nbZwERh2IJZpWBAzjx9+wsqlXQ77J77tjwBjqeJ9lLzVaoIS9yx099shr2QB/\r\npl1RWZlbMzx5epuL/g3bELAVg31p3eVubKGDSzFELLrxNDNVLUFkyeArlriU\r\nyzod4r5AP5miCGWLrboQDyxuMvwXh6vsB6I=\r\n=6Zto\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"1f845e67d71bc84e55b5b919742d7522fafaec6b","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"8.15.0","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"16.17.1","dependencies":{"vitest":"^0.26.3"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^20.0.3","tslint":"^6.1.3","prettier":"^2.8.1","typescript":"^4.9.4","@vitest/coverage-c8":"^0.26.3","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_1.0.2_1675140404115_0.08854222778926268","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"vitest-matchmedia-mock","version":"1.0.3","keywords":[],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@1.0.3","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"c2a80b0f536936bf012efc8e5ff2f8a6312bcc3c","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-1.0.3.tgz","fileCount":5,"integrity":"sha512-wkrdN04BhR235m/x6qKlNdfYW7I/XNpYX1g0AGWJiYVBrZTl6zBaFJVOdwBAAYVwf9YGr/P9LkzWO8PCkgz3HQ==","signatures":[{"sig":"MEUCIGqfumc7wqhYkrshzRzhOQr+I7YqNSMe2yJ8emHSCH6OAiEAqqSGcMQTkJ0ounw/J/GncbwuxugArcnH+3tCf4RE6f4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10828},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c10322bbe3d574d890dc951ebc77a58e8fc2f695","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"9.8.1","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"18.18.2","dependencies":{"vitest":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^24.0.0","tslint":"^6.1.3","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-c8":"^0.26.3","@vitest/coverage-v8":"^1.2.2","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_1.0.3_1706530844890_0.870722581670168","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"vitest-matchmedia-mock","version":"1.0.4","keywords":[],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@1.0.4","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"ae2a1dc137eb3936128955dcdadb70269df87bc0","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-1.0.4.tgz","fileCount":5,"integrity":"sha512-FW/Mpj962N0CwXXyvfrjofax0XV4mAqJtT9ETYGBDcxrOeL6DNh54Uh6uJbxTptPKPWMqv2N+Q/xr1b9P0ImEg==","signatures":[{"sig":"MEYCIQDUQFZvLtZGfEuNDeiVkx2pAcIrbc1Qy7JmPr2fFX98HgIhAK+Sww4JJVwOD+VPlorJPBw5KVSaCEEZYo8tDLan6MTM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10828},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7fd972c2afaa85e09c42cee912d96e02a8101d49","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"9.8.1","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"18.18.2","dependencies":{"vitest":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^24.0.0","tslint":"^6.1.3","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-c8":"^0.26.3","@vitest/coverage-v8":"^1.2.2","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_1.0.4_1709000023382_0.690806231299163","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"vitest-matchmedia-mock","version":"1.0.5","keywords":[],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@1.0.5","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"37e843c3d30965dff22122805a7c5a0019696e32","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-1.0.5.tgz","fileCount":5,"integrity":"sha512-EqllUk4M7PckMIYZ9kMUygFJxwgPdONeden9UxHpM0Sum+ZZogx3G1pElw0/3FG6a+QOTk1gdGxEcbqV1mflIw==","signatures":[{"sig":"MEUCIEXI4lne80rPghxciCJ11BHWLKF4kSl1+ohM36fFZEOEAiEA5YTGryKyY4tiST495a//dpc+NAuD6CIVOggEvZlrSVM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10828},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"b228429d26f52b4a62dc587be777bb110ec77fde","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"9.8.1","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"18.18.2","dependencies":{"vitest":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^24.0.0","tslint":"^6.1.3","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-c8":"^0.26.3","@vitest/coverage-v8":"^1.2.2","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_1.0.5_1714262338054_0.111625121790911","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"vitest-matchmedia-mock","version":"1.0.6","keywords":[],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@1.0.6","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"e363fa8ee0e4e708de3af43e5a6f058c8223907c","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-1.0.6.tgz","fileCount":5,"integrity":"sha512-UUU0YY6BpmcuD2p4DpUVUP0afKuxHX6YAQs5J5skP+ksm+yXJHi9kSN5eOQuC0TFVTuXnIFPl0U9vGPNgnzA1g==","signatures":[{"sig":"MEYCIQCMpIvDWdW7fmLidoqfAvycJdAIDq9cMT3AdMiasQTOsgIhAMzC4HQK44bisMJd64zJBqQ+TTwjw7fS+ydfeamdHXeE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10837},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5ecc8366811efe3bee6292c79ccbadcdfc82f345","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"10.8.1","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"22.4.0","dependencies":{"vitest":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^24.0.0","tslint":"^6.1.3","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-c8":"^0.26.3","@vitest/coverage-v8":"^2.0.1","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_1.0.6_1721696235051_0.21030212660110936","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"vitest-matchmedia-mock","version":"2.0.0","keywords":[],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@2.0.0","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"201f9d355f3147f33e13973e7961eddf114c7110","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-2.0.0.tgz","fileCount":5,"integrity":"sha512-zyR5VaHRftUSNjcfbQFbaFT2rvvJUqFUl1QqnzIKPw0zzun34od4A8t+Ck1Jro2C6/1PNdacESutVZ4QGBuUIw==","signatures":[{"sig":"MEQCIGdxB1VDEKDtRmBP0kTqOiqKxRo3nfaS6+MxsRt8ep9KAiA0HgoE4tkmXVcEGZ1aWlDQwp3wquSvDJ8pySm/+5UlqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12752},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"1f51b7886a25e11f5159131c18d89b56ddc684f7","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","prepare":"npm run build","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"10.8.3","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"22.9.0","dependencies":{"vitest":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^25.0.0","tslint":"^6.1.3","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-c8":"^0.26.3","@vitest/coverage-v8":"^2.0.1","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_2.0.0_1735885398759_0.13230273093566902","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"vitest-matchmedia-mock","version":"2.0.1","keywords":["mock","matchmedia","vitest"],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@2.0.1","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"6093fb3ed4bec2e3b0635ae248c2a4280447ffc5","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-2.0.1.tgz","fileCount":5,"integrity":"sha512-qrQC4KjS4VBKdjqFlBplQ3jBziS+YW98Fv1UXtZlfKsG+aAobCYbhGAnaVOysvrQLCaJAKSkAuJ09iKTl1YgWg==","signatures":[{"sig":"MEYCIQCcegeXP4otLct0/kQGazi58jNdb+i1aP1YUJmTi+osuwIhAIhVW4JNso6iD1KKeOunDXca5N1ciTiyYcZZ9u9OM5Bg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12374},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"14caddf5c5e0b348b268f4a20dd34264ba5d71ce","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","prepare":"npm run build","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"10.9.2","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"23.5.0","dependencies":{"vitest":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^26.0.0","eslint":"^9.18.0","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-v8":"^3.0.2","tslint-config-prettier":"^1.18.0","@typescript-eslint/parser":"^8.21.0","@typescript-eslint/eslint-plugin":"^8.21.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_2.0.1_1737534453814_0.8743917677066946","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"vitest-matchmedia-mock","version":"2.0.2","keywords":["mock","matchmedia","vitest"],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@2.0.2","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"1dd45a3570e3f794d7f63803a53917926dcbb17d","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-2.0.2.tgz","fileCount":5,"integrity":"sha512-YPCgoNe8dWAXGnzzMYx7PhuxwSBC7ypEIRnOKypkSOIqcUznkg4Lf4r4q3CEzlAP5CWfF0C6WYaS2OdW0Ly6wg==","signatures":[{"sig":"MEUCIQCMnsImiDfOLRSEo2bj8DlC2q7EYWFEmZHxoPn75VYfCAIgbRJsfrlVgeXwdRYCkJ8sZzUx1VNBMT0t3KLCGPUKHeA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12374},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"d9f3c9fb1db35a13f2ad8613b1b4c4835a2d3258","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","prepare":"npm run build","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"10.9.2","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"23.5.0","dependencies":{"vitest":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^26.0.0","eslint":"^9.18.0","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-v8":"^3.0.2","tslint-config-prettier":"^1.18.0","@typescript-eslint/parser":"^8.21.0","@typescript-eslint/eslint-plugin":"^8.21.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_2.0.2_1744007065057_0.8170835863661503","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"vitest-matchmedia-mock","version":"2.0.3","keywords":["mock","matchmedia","vitest"],"author":"","license":"ISC","_id":"vitest-matchmedia-mock@2.0.3","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"4d68c54cc94506023945e68dd4c4b64a4c004f40","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-2.0.3.tgz","fileCount":5,"integrity":"sha512-Oa2fI+dfaqcs67D08PqBL0D+Ymm4MYGZn1WimUgfZGDxp9/eb8gl6xqPmhjyrV3p9KdhKj2tp6E1b4YWiSg1lw==","signatures":[{"sig":"MEYCIQCJ6NcjN5Lna8drG5fvQ0OOIdwsj/bJefPZK/4gK67mcAIhAK/kGxNOTiNuAhLpfiJ3GLI6mCNRBb1lz+8od+SBEBTY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12504},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0ff1ea1fad938782660a4e98421ce455db00136e","scripts":{"lint":"tslint -p tsconfig.json","test":"vitest","build":"tsc","prepare":"npm run build","coverage":"vitest run --coverage"},"_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"8.19.1","description":"mocking window.matchmedia with vitest","directories":{},"_nodeVersion":"22.14.0","dependencies":{"vitest":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^26.0.0","eslint":"^9.18.0","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-v8":"^3.0.2","tslint-config-prettier":"^1.18.0","@typescript-eslint/parser":"^8.21.0","@typescript-eslint/eslint-plugin":"^8.21.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-matchmedia-mock_2.0.3_1744365663884_0.10373287535110043","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"_id":"vitest-matchmedia-mock@2.0.4","bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"dist":{"shasum":"ff13dbfaacb1a8b65c0fc343a52f301ad15b9df1","tarball":"https://registry.npmjs.org/vitest-matchmedia-mock/-/vitest-matchmedia-mock-2.0.4.tgz","fileCount":5,"integrity":"sha512-rjD+EvrepuWissRri9bkvOKaMFoZIIjF+f1Jma+qHIxqt/uk8UKCOtNMrThcI8xN9yX4mnYW+vZFavI/iH8K1g==","signatures":[{"sig":"MEQCIB+ZmrdTPaWepdn3fvwUHCmwkoJcD5wlPlNKS/Q97lhWAiA+FptS9vD5XjnldbDByTTp+QI/dlYvzi3P8vchLOJnCQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGOZOZtI9m8U1tKlYefQIZE8zYePGRZyRzgjXGRz1O/mAiBh4Hv/nuwVipguhOwG4D3dwLHONX2AbAKUEzAT+NHAMQ=="}],"unpackedSize":12513},"main":"dist/index.js","name":"vitest-matchmedia-mock","types":"dist/index.d.ts","author":"","gitHead":"ee6866345cc43e80573a943e516084c60acacffd","license":"ISC","scripts":{"lint":"eslint .","test":"vitest","build":"tsc","prepare":"npm run build","coverage":"vitest run --coverage"},"version":"2.0.4","_npmUser":{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"},"homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","keywords":["mock","matchmedia","vitest"],"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"_npmVersion":"11.12.1","description":"mocking window.matchmedia with vitest","directories":{},"maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"_nodeVersion":"26.0.0","_hasShrinkwrap":false,"devDependencies":{"jsdom":"^30.0.1","eslint":"^10.8.1","vitest":"^4.1.7","prettier":"^3.2.4","typescript":"^5.3.3","@vitest/coverage-v8":"^4.1.7","@typescript-eslint/parser":"^8.21.0","@typescript-eslint/eslint-plugin":"^8.21.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vitest-matchmedia-mock_2.0.4_1790306684925_0.6500499417452343"}}},"time":{"created":"2023-01-06T07:17:16.606Z","modified":"2026-09-25T03:24:45.148Z","1.0.0":"2023-01-06T07:17:16.809Z","1.0.1":"2023-01-06T07:50:54.837Z","1.0.2":"2023-01-31T04:46:44.269Z","1.0.3":"2024-01-29T12:20:45.073Z","1.0.4":"2024-02-27T02:13:43.586Z","1.0.5":"2024-04-27T23:58:58.188Z","1.0.6":"2024-07-23T00:57:15.198Z","2.0.0":"2025-01-03T06:23:18.935Z","2.0.1":"2025-01-22T08:27:34.006Z","2.0.2":"2025-04-07T06:24:25.229Z","2.0.3":"2025-04-11T10:01:04.085Z","2.0.4":"2026-09-25T03:24:45.015Z"},"bugs":{"url":"https://github.com/nggepe/vitest-matchmedia-mock/issues"},"license":"ISC","homepage":"https://github.com/nggepe/vitest-matchmedia-mock#readme","keywords":["mock","matchmedia","vitest"],"repository":{"url":"git+https://github.com/nggepe/vitest-matchmedia-mock.git","type":"git"},"description":"mocking window.matchmedia with vitest","maintainers":[{"name":"nggepe","email":"gilang.pratama.banyuwangi@gmail.com"}],"readme":"# Vitest MatchMediaMock\n\n[![codecov](https://codecov.io/gh/nggepe/vitest-matchmedia-mock/graph/badge.svg?token=UEZOJ9PAYZ)](https://codecov.io/gh/nggepe/vitest-matchmedia-mock)\n[![NPM Version][npm-version-image]][npm-url]\n[![NPM Downloads][npm-downloads-image]][npm-downloads-url]\n\nhow to import:\n\n```typescript\nimport MatchMediaMock from 'vitest-matchmedia-mock'\n```\n\n# Usage example\n\n```typescript\ndescribe('your test', () => {\n  let matchMediaMock = new MatchMediaMock();\n  afterAll(() => {\n    matchMediaMock.clear();\n  });\n});\n```\n\n## Use Media Query\n\n### Example implementation\n\n```typescript\nexport const myImplementation = () => {\n  const myMediaMatcher = window.matchMedia('(prefers-color-scheme: dark)');\n  myMediaMatcher.addEventListener('change', (ev) => {\n    console.log(ev.matches);\n  });\n\n  return myMediaMatcher.matches;\n};\n```\n\n### Test\n\n```typescript\ndescribe('your test', () => {\n  let matchMediaMock = new MatchMediaMock();\n\n  afterEach(() => {\n    matchMediaMock.clear();\n  });\n\n  afterAll(() => {\n    matchMediaMock.destroy();\n  });\n\n  test('matches immediately', () => {\n    matchMediaMock.useMediaQuery('(prefers-color-scheme: dark)');\n    const response = myImplementation();\n\n    expect(response).toBe(true);\n  });\n\n  test('doesnt match immediately', () => {\n    matchMediaMock.useMediaQuery('(prefers-color-scheme: light)');\n    const response = myImplementation();\n\n    expect(response).toBe(false);\n  });\n\n  test('fires change event with match', () => {\n    myImplementation();\n    matchMediaMock.useMediaQuery('(prefers-color-scheme: dark)');\n\n    expect(console.log).toHaveBeenCalledWith(true);\n  });\n\n  test('fires change event with mismatch', () => {\n    myImplementation();\n    matchMediaMock.useMediaQuery('(prefers-color-scheme: light)');\n\n    expect(console.log).toHaveBeenCalledWith(false);\n  });\n});\n```\n## Contributors\n\n<a href=\"https://github.com/nggepe/vitest-matchmedia-mock/graphs/contributors\"><img src = \"https://contrib.rocks/image?repo=nggepe/vitest-matchmedia-mock\"/></a>\n\n[npm-downloads-url]: https://npmcharts.com/compare/vitest-matchmedia-mock?minimal=true\n[npm-downloads-image]: https://badgen.net/npm/dm/vitest-matchmedia-mock\n[npm-version-image]: https://badgen.net/npm/v/vitest-matchmedia-mock\n[npm-url]: https://npmjs.org/package/vitest-matchmedia-mock\n","readmeFilename":"README.md"}