{"_id":"svelte-hyperscript","_rev":"5-b4d416758120bf14a376bbc7c5dd06e0","name":"svelte-hyperscript","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"svelte-hyperscript","version":"1.0.0","description":"hyperscript for svelte","source":"src/h.js","main":"./dist/cjs/h.js","exports":{"./package.json":"./package.json",".":{"import":"./dist/esm/h.js","require":"./dist/cjs/h.js","umd":"./dist/umd/h.js"}},"module":"./dist/esm/h.js","unpkg":"./dist/umd/h.js","sideEffects":false,"scripts":{"prebuild":"rimraf dist","build":"rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json","lint":"xo","fix":"xo --fix && prettier --ignore-path .gitignore --write .","prepublishOnly":"npm run build","test":"jest","test:watch":"npm test -- --watch","test:coverage":"npm test -- --coverage"},"engines":{"node":">=10"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3","core-js":"^3.6.5"},"peerDependencies":{"svelte":"3.x"},"repository":{"type":"git","url":"git+https://github.com/sastan/svelte-hyperscript.git"},"keywords":["svelte","hyperscript"],"author":{"name":"Sascha Tandel","email":"s.tandel@me.com"},"license":"MIT","bugs":{"url":"https://github.com/sastan/svelte-hyperscript/issues"},"homepage":"https://github.com/sastan/svelte-hyperscript#readme","devDependencies":{"@babel/core":"^7.10.3","@babel/plugin-transform-runtime":"^7.10.3","@babel/preset-env":"^7.10.3","@jest/globals":"^26.0.1","@rollup/plugin-babel":"^5.0.3","@rollup/plugin-commonjs":"^13.0.0","@rollup/plugin-node-resolve":"^8.0.1","@testing-library/jest-dom":"^5.7.0","@testing-library/svelte":"^3.0.0","babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-plugin-jest":"^23.13.1","eslint-plugin-jest-dom":"^2.1.0","eslint-plugin-testing-library":"^3.1.3","jest":"^26.0.1","jest-environment-jsdom-sixteen":"^1.0.3","prettier":"^2.0.5","rimraf":"^3.0.2","rollup":"^2.17.1","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-svelte":"^5.2.3","rollup-plugin-terser":"^6.1.0","svelte":"^3.22.3","svelte-fragment-component":"^1.0.0","svelte-jester":"^1.0.6","xo":"^0.30.0"},"gitHead":"61965c0c29be64925b7cb78c04af14de4d319c7b","_id":"svelte-hyperscript@1.0.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qB6+kNtS5vGXDeXnQASDD6+qWfOTIEnwgvp5xYbowOmLjEhuyMbSr1IAdVuaYZ2J2HSZI7XuIo3SYYK9Wwewyg==","shasum":"defe2992b1f66012307fa5aaff3f122a20e6cffc","tarball":"https://registry.npmjs.org/svelte-hyperscript/-/svelte-hyperscript-1.0.0.tgz","fileCount":11,"unpackedSize":135854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe79r4CRA9TVsSAnZWagAAjdUP/13LVsdGgnZmID0myScI\nEhSaujJ+k1WeLnhbzpvN3nKr/GDmi89HtnWHZZjiQ4p0w/GALlypEz5qPDP0\nA8OhH9H0chxMYOwy+EbTPvRRBvf7r2hSwh4gAhyPr0kx5nuvQ6cjzXG8Znyn\nSRNfKHPVbns7SHkBD/7z15/1miONa8CrrF+uX9QP5g2Qi/MTkMJcqpRxSaYw\nDfDc9UEti47lhVOmuQKbZgefIr42TJPfXFKsp+1RTZ15jCBxVHTaiJJR3Bp+\n0xCXyatOXl0V/ROqCC2mprH+5/ftBS27msbngLxGRSiXd0sBAmrRyLVdWG5Q\nvx1RNWSdQDXU+8tXDtePoPi9uJeofInDggtGNxPb9p9Ft5ShVNJrQ/7SMtAT\nZO75LZEhGs1OJCZTEONkQZkM14txASNVFlFNYlPovHqDXgRET4BsvETQiIhN\nAtPwM/mdo99DIFnxXchQAcbrl4Zd/flhh+dP/r9aKEP5krdBkK/U88g0VG0n\n6X6ZFXTxcp9X4J3V2x8rgPEcijqbrxh7yoMrNkAuaba3ordk8bpLrwkNf+vu\ndEs7eX33Tc3aCQp5n0I93XCug3VfzPGEcN3Vjyb7ebRJHrFuWnHvzISZiLcH\nDFnRHc9dcClniwUF46/7Vy+yaQdn6lCTlsI0KZ/uWhia3rjD10wHer2ClUfw\nhGAA\r\n=Xh0l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5Sz7BvOCqzp5/BiNF+NCdWQfFvgK1oQ8Mi/qaZeRyCAiEAp9TKwnv+XeMN+I3nDQA9RF/gGMyszvm4AvoEqoXB7bE="}]},"maintainers":[{"name":"sastan","email":"s.tandel@me.com"}],"_npmUser":{"name":"sastan","email":"s.tandel@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-hyperscript_1.0.0_1592777463805_0.8537845754856606"},"_hasShrinkwrap":false},"1.1.0":{"name":"svelte-hyperscript","version":"1.1.0","description":"hyperscript for svelte","source":"src/h.js","main":"./dist/cjs/h.js","exports":{"./package.json":"./package.json",".":{"import":"./dist/esm/h.js","require":"./dist/cjs/h.js","umd":"./dist/umd/h.js"}},"module":"./dist/esm/h.js","unpkg":"./dist/umd/h.js","jsdelivr":"./dist/umd/h.js","sideEffects":false,"scripts":{"prebuild":"rimraf dist","build":"rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json","lint":"xo","fix":"xo --fix && prettier --ignore-path .gitignore --write .","prepublishOnly":"npm run build","test":"jest","test:watch":"npm test -- --watch","test:coverage":"npm test -- --coverage"},"engines":{"node":">=10"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3","core-js":"^3.6.5"},"peerDependencies":{"svelte":"3.x"},"repository":{"type":"git","url":"git+https://github.com/sastan/svelte-hyperscript.git"},"keywords":["svelte","hyperscript"],"author":{"name":"Sascha Tandel","email":"s.tandel@me.com"},"license":"MIT","bugs":{"url":"https://github.com/sastan/svelte-hyperscript/issues"},"homepage":"https://github.com/sastan/svelte-hyperscript#readme","devDependencies":{"@babel/core":"^7.10.3","@babel/plugin-transform-runtime":"^7.10.3","@babel/preset-env":"^7.10.3","@jest/globals":"^26.0.1","@rollup/plugin-babel":"^5.0.3","@rollup/plugin-commonjs":"^13.0.0","@rollup/plugin-node-resolve":"^8.0.1","@testing-library/jest-dom":"^5.7.0","@testing-library/svelte":"^3.0.0","@testing-library/user-event":"^12.0.7","babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-plugin-jest":"^23.13.1","eslint-plugin-jest-dom":"^2.1.0","eslint-plugin-testing-library":"^3.1.3","jest":"^26.0.1","jest-environment-jsdom-sixteen":"^1.0.3","prettier":"^2.0.5","rimraf":"^3.0.2","rollup":"^2.17.1","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-svelte":"^5.2.3","rollup-plugin-terser":"^6.1.0","svelte":"^3.22.3","svelte-fragment-component":"^1.1.0","svelte-jester":"^1.0.6","xo":"^0.30.0"},"gitHead":"e64fde6ea7bc9bf6dec91cffc8e1dcd01e191c42","_id":"svelte-hyperscript@1.1.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-B8Fxx6bV/uWc9iS3ghfPXgt7yknEGPqEgtFCiEcpR/MjkuCc9Qye7m81SF5Su1RssnO9u5eTX6KxAwME0kIPsg==","shasum":"d2d3ea51924237f2df46a935966279e808c540d6","tarball":"https://registry.npmjs.org/svelte-hyperscript/-/svelte-hyperscript-1.1.0.tgz","fileCount":11,"unpackedSize":195215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8dy7CRA9TVsSAnZWagAAlhEP/AluAByJ3oZp5bkh08TJ\nML7neiaxlufDFug4B3+tJNFITyYuq3x1p4P0B+i0V3bgyPBa+eISrJNZc+NH\nxjhvJA+P7+jkUTk176ZwidhFv6z1ZVap+y7pb1XWaGzRpwAZS7J7+9EjBkFf\nEAk+lBXAR3N8je0tu6U5ucWIhyKq1/TjqvvxVTZcUKRQsGe8gvbuZ2si4YlS\nex9aa3RGBVFLwkSmQL1nZG8tkWDAkHg35TtckrR34pp1vx/qhJmWf3NcRdW5\nlMYisXVr3cfcLGExk0q/2yafuP0djKG8XZi8adVbfyXOKFO3STdjVwENO+P/\nBfM67Sx8El3a9Dyq1UukJnopSCutabSCS1IWizCCJOQFRfRCEzHt+JOyl+uG\nOqL4TMW9hUEU/WmtOXqgObZ+WS41MGhz9Y6sVSYgqFwBFspizxVPfhNWHwAa\nNAPQSj7KQeCJ96n6HHRoPB86QBrt7SAY0J/WHhIyCf21IRCr08DCaQwUGxZ6\ncH1UGVh6uSpLn80v8zJdP20yPyV7ZqXiWXSHAd6LvKQVyU7rw3exvX3WB1dL\n2u1ohSegAi5dGIKBxA5t3BvXa8JNdB9AZT3uB42MYFeT4W249VLHKkANy4Ah\nseqPTSSjkMapKvDvC+DZBpZq+6WBaxsU7oAd8N0NGGfR7kRAkJoqBtXl4B6j\nWL28\r\n=FQdW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIri6gdD0NxuScpts+IIba4P2HyV8jxmNeKc+jpSRWTAiBvysOGi0fjA0oQ39PHYRY7+lvNEoTNvoH2xcdFe9Ygdg=="}]},"maintainers":[{"name":"sastan","email":"s.tandel@me.com"}],"_npmUser":{"name":"sastan","email":"s.tandel@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-hyperscript_1.1.0_1592908987220_0.5688974475366544"},"_hasShrinkwrap":false},"1.1.1":{"name":"svelte-hyperscript","version":"1.1.1","description":"hyperscript for svelte","source":"src/h.js","main":"./dist/cjs/h.js","exports":{"./package.json":"./package.json",".":{"require":"./dist/cjs/h.js","umd":"./dist/umd/h.js","default":"./dist/esm/h.js"}},"module":"./dist/esm/h.js","unpkg":"./dist/umd/h.js","jsdelivr":"./dist/umd/h.js","sideEffects":false,"scripts":{"prebuild":"rimraf dist","build":"rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json","lint":"xo","fix":"xo --fix && prettier --ignore-path .gitignore --write .","prepublishOnly":"npm run build","test":"jest","test:watch":"npm test -- --watch","test:coverage":"npm test -- --coverage"},"engines":{"node":">=10"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3","core-js":"^3.6.5"},"peerDependencies":{"svelte":"3.x"},"repository":{"type":"git","url":"git+https://github.com/sastan/svelte-hyperscript.git"},"keywords":["svelte","hyperscript"],"author":{"name":"Sascha Tandel","email":"s.tandel@me.com"},"license":"MIT","bugs":{"url":"https://github.com/sastan/svelte-hyperscript/issues"},"homepage":"https://github.com/sastan/svelte-hyperscript#readme","devDependencies":{"@babel/core":"^7.10.3","@babel/plugin-transform-runtime":"^7.10.3","@babel/preset-env":"^7.10.3","@jest/globals":"^26.0.1","@rollup/plugin-babel":"^5.0.3","@rollup/plugin-commonjs":"^13.0.0","@rollup/plugin-node-resolve":"^8.0.1","@testing-library/jest-dom":"^5.7.0","@testing-library/svelte":"^3.0.0","@testing-library/user-event":"^12.0.7","babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-plugin-jest":"^23.13.1","eslint-plugin-jest-dom":"^2.1.0","eslint-plugin-testing-library":"^3.1.3","jest":"^26.0.1","jest-environment-jsdom-sixteen":"^1.0.3","prettier":"^2.0.5","rimraf":"^3.0.2","rollup":"^2.17.1","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-svelte":"^5.2.3","rollup-plugin-terser":"^6.1.0","svelte":"^3.22.3","svelte-fragment-component":"^1.1.0","svelte-jester":"^1.0.6","xo":"^0.30.0"},"gitHead":"1a1e5dfc58928e187eb6cc40cec448f26cad4532","_id":"svelte-hyperscript@1.1.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WHuEwZ3G5H3I51m2H13ivRkB5jEM6lUq/TmdaCAc+cAbPfK8sOT/XiqZglqst3lbBjQrOqXE3s8GR8lXcaWluw==","shasum":"5e5a412b3fe351dddb14d7dde4837fc9242d8907","tarball":"https://registry.npmjs.org/svelte-hyperscript/-/svelte-hyperscript-1.1.1.tgz","fileCount":11,"unpackedSize":196039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8iU4CRA9TVsSAnZWagAAXd0P+gLXWCOPm6SF97j/oIAj\nqWnd8LyEzLus/+U9NFeaMcN7loBfiVoKE6hygmMEy4tunrgDI59906l3XyzU\ng05K6ODUkB+XXVkCdsoIZ0kWUmCDqUZJdoRyXCJ6sgyzndouaQTbklZdW2x0\nlfMNH946amxtS7gBOa5YzzmZLfZV3YBsLmFBFcU21RcEPagoqUA3WgkU2wH3\nP1Ty1mZRZ01noe/I2ewaEtOF9xewVGS8Vik6g/9HEMVI5Ws/nI5C7kG/094P\n+cbE4ZzcKHfyiz6MFv/NDvSzMxSgp949j+Wlnnm+g2vEwqLpFNghqABl/Jw5\nc4jarjKIwlm7tpRaqBv+mouqbD1etP+6fepFRrzRKfTQt9+X5FWYF0MLtxLf\ngrl6sMCs5fQvHohrYhYNklGTwyHXCyihtXLyGaua5jwutnPCZHyGJDwQXNZ3\nMq5ImEUc3knRQLvs6/sDoHrLK+JD8BI3Te/P8naA7zSQzo0ZM70YhZDcIOm3\nS7dHBLc5RbAxJfCESodT782b3+h8VrWLXfCukjOAvqxC3cTHBdLgjytfPVBB\nYeahqJxJMUhJ4NJf24Wl1BGY9bXl/8A78AYvgB3/63qZjFJqf88Uw7yZyFqT\nvuHjn4cSTCWj5kWPuA5J8lcuLMDLgMUYketur9vtjzqTEmx309RnOPIGOjRe\nclYC\r\n=jIxq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9aj/29OHajL02gKugD1d/9of/8GO+QbgdEn4Zvj2cmQIgdWdfO4A0BuEg9ewXrYQgFGn+Oi+umHx8pAFasxjX9E8="}]},"maintainers":[{"name":"sastan","email":"s.tandel@me.com"}],"_npmUser":{"name":"sastan","email":"s.tandel@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-hyperscript_1.1.1_1592927543829_0.5221676945705089"},"_hasShrinkwrap":false},"1.2.0":{"name":"svelte-hyperscript","version":"1.2.0","description":"hyperscript for svelte","source":"src/h.js","main":"./dist/cjs/h.js","exports":{"./package.json":"./package.json",".":{"require":"./dist/cjs/h.js","umd":"./dist/umd/h.js","default":"./dist/esm/h.js"}},"module":"./dist/esm/h.js","unpkg":"./dist/umd/h.js","jsdelivr":"./dist/umd/h.js","types":"index.d.ts","sideEffects":false,"scripts":{"prebuild":"rimraf dist","build":"rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json","lint":"xo","fix":"xo --fix && prettier --ignore-path .gitignore --write .","prepublishOnly":"npm run build","test":"jest","test:watch":"npm test -- --watch","test:coverage":"npm test -- --coverage"},"engines":{"node":">=10"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3","core-js":"^3.6.5"},"peerDependencies":{"svelte":"3.x"},"repository":{"type":"git","url":"git+https://github.com/kenoxa/svelte-hyperscript.git"},"keywords":["svelte","hyperscript"],"author":{"name":"Sascha Tandel","email":"s.tandel@kenoxa.de"},"license":"MIT","bugs":{"url":"https://github.com/kenoxa/svelte-hyperscript/issues"},"homepage":"https://github.com/kenoxa/svelte-hyperscript#readme","devDependencies":{"@babel/core":"^7.10.3","@babel/plugin-transform-runtime":"^7.10.3","@babel/preset-env":"^7.10.3","@jest/globals":"^26.0.1","@rollup/plugin-babel":"^5.0.3","@rollup/plugin-commonjs":"^13.0.0","@rollup/plugin-node-resolve":"^8.0.1","@testing-library/jest-dom":"^5.7.0","@testing-library/svelte":"^3.0.0","@testing-library/user-event":"^12.0.7","babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-plugin-jest":"^23.17.1","eslint-plugin-jest-dom":"^2.1.0","eslint-plugin-testing-library":"^3.1.3","husky":"^4.2.5","jest":"^26.1.0","jest-environment-jsdom-sixteen":"^1.0.3","lint-staged":"^10.2.11","prettier":"^2.0.4","rimraf":"^3.0.2","rollup":"^2.18.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-svelte":"^5.2.3","rollup-plugin-terser":"^6.1.0","svelte":"^3.22.3","svelte-fragment-component":"^1.1.0","svelte-jester":"^1.0.6","xo":"^0.32.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"xo --fix","*.{js,css,json,md,svelte,yml,yaml}":"prettier --ignore-path .gitignore --write"},"gitHead":"00d772fae4592ee23b3decf0250c95444ebfa3d4","_id":"svelte-hyperscript@1.2.0","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-71/wKikYfq3eX9dW8tRmixtVS0zuxvN+0qqoZyeHH0GwelxVUrqvk1pRPcHggm7y6MLmIFyVaLLeOUbswDeoFw==","shasum":"f8470f7edcdca11f3b3d8187133e46ea46db1735","tarball":"https://registry.npmjs.org/svelte-hyperscript/-/svelte-hyperscript-1.2.0.tgz","fileCount":12,"unpackedSize":197081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+gcOCRA9TVsSAnZWagAAgvIP/jT7jHtM5fLDG4lsU/6s\nRSjFJ892fh+s0m9oWTqmIXBPqunT4m/JI4RX4gXA8Fr/4d++gG6HdwNMFse/\nrOqlmkb8Y16y5WpyFrQOpVmSiJjkOUN6VCZtGa3rhUIQJkKZNhhbrd3Q2jqJ\nZrOR8Iy08nNgnh6JYOh+ETsMw3wr6rl+V5hxnHikjcnhp9TxrFY4I2StlZYb\nR/whyDidtAusgzgEVw2w1nhHltqgI9q75IAiQ+snrZ4p4el936RyxgH1shaz\naV/t5ICGQbUpj9HOJJ02z0D5PrCe+lycGYUIjsvnzxxYsp/iTCdTWEaCnO/N\nr+nwwH1eUdS7StAZuGxqssuFcrE1j9s0J/807H/cPMb7Ap+HB2f7iYmI75m3\nzX+8BCPi91S4UqQ5j2N1mpC3sIyHRC2YBcqBVEvVQGsJRYkNviCbqaqO0I3G\nCuR8/JXLvS2f0F0FQb6BGfyJCc1hvFz+Avw8+l7/qUaEAUBc8wb8rRTpjzBV\ncp7ppLxqNPFPvgDHA8DBP0ysMzMXkb3FHwWV+ZLD52R4iy0W4z26/hWmKMgf\nrMK0qVGwcQdeg921RdAV4vMa4l8nHCwe4nSi7TMKaCDXwaMl5D/0YuR/D2/u\no/PolZ4db3I00V7TPNOPe+u1lnJMntdvLJXY/vBrJ4+BQe77wwjKCWWiph1F\nEJ0c\r\n=EUTD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZ/C8cFI44o/TK+KmHHGeF0V0fRxklQFDRHLF2djlipgIhAJSBIeUlPpuyRFwmIqzraKzx+gm/UbscuJzvcPaeB5aJ"}]},"maintainers":[{"name":"sastan","email":"s.tandel@me.com"}],"_npmUser":{"name":"sastan","email":"s.tandel@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-hyperscript_1.2.0_1593444110147_0.6065788746817349"},"_hasShrinkwrap":false},"1.2.1":{"name":"svelte-hyperscript","version":"1.2.1","description":"hyperscript for svelte","source":"src/h.js","main":"./dist/cjs/h.js","exports":{"./package.json":"./package.json",".":{"require":"./dist/cjs/h.js","umd":"./dist/umd/h.js","default":"./dist/esm/h.js"}},"module":"./dist/esm/h.js","unpkg":"./dist/umd/h.js","jsdelivr":"./dist/umd/h.js","types":"index.d.ts","sideEffects":false,"scripts":{"prebuild":"rimraf dist","build":"rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json","lint":"xo","fix":"xo --fix && prettier --ignore-path .gitignore --write .","prepublishOnly":"npm run build","test":"jest","test:watch":"npm test -- --watch","test:coverage":"npm test -- --coverage"},"engines":{"node":">=10"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3","core-js":"^3.6.5"},"peerDependencies":{"svelte":"3.x"},"repository":{"type":"git","url":"git+https://github.com/kenoxa/svelte-hyperscript.git"},"keywords":["svelte","hyperscript"],"author":{"name":"Sascha Tandel","email":"s.tandel@kenoxa.de"},"license":"MIT","bugs":{"url":"https://github.com/kenoxa/svelte-hyperscript/issues"},"homepage":"https://github.com/kenoxa/svelte-hyperscript#readme","devDependencies":{"@babel/core":"^7.10.3","@babel/plugin-transform-runtime":"^7.10.3","@babel/preset-env":"^7.10.3","@jest/globals":"^26.0.1","@rollup/plugin-babel":"^5.0.3","@rollup/plugin-commonjs":"^13.0.0","@rollup/plugin-node-resolve":"^8.0.1","@testing-library/jest-dom":"^5.7.0","@testing-library/svelte":"^3.0.0","@testing-library/user-event":"^12.0.7","babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-plugin-jest":"^23.17.1","eslint-plugin-jest-dom":"^2.1.0","eslint-plugin-testing-library":"^3.1.3","husky":"^4.2.5","jest":"^26.1.0","jest-environment-jsdom-sixteen":"^1.0.3","lint-staged":"^10.2.11","prettier":"^2.0.4","rimraf":"^3.0.2","rollup":"^2.18.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-svelte":"^5.2.3","rollup-plugin-terser":"^6.1.0","svelte":"^3.22.3","svelte-fragment-component":"^1.1.0","svelte-jester":"^1.0.6","xo":"^0.32.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"xo --fix","*.{js,css,json,md,svelte,yml,yaml}":"prettier --ignore-path .gitignore --write"},"gitHead":"94d690db9eb8d83f4875cd6f86cb8d5bc4775671","_id":"svelte-hyperscript@1.2.1","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-IVk91VDSOrhOUe0KI+Jfu7yCruUTOXgr4WysrK7hBNbFMDjeBOcPhk+LMYjUjdWxJx3+QSt3bUXj09YrUfRkjg==","shasum":"e8fd4194994eeb22dcb82a69caff98ab5b6fb40b","tarball":"https://registry.npmjs.org/svelte-hyperscript/-/svelte-hyperscript-1.2.1.tgz","fileCount":12,"unpackedSize":197340,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+gjbCRA9TVsSAnZWagAAq8kP/AtCp5V2NiELcO3VJkVU\nSqxJTJd7ZglaCsJcmmiiXPhNrk9HHP/ERV5fucCbXXcSB6QDjULoPHnPJem5\ngjb+5iLh7+z2Ho6onpyCzLLpILaJ1vUCp+syjnBH4nTAY/Rp3crR9SUte75I\nflLy02Kc7I7YFsG6AH3aMM/8HA7vxE9ruBGzuTZknalCZ2ij+Tn4X6XSmVMY\nWENXsJzOxRQ9TVgePkrpoqenr3pYP4NJEM/fde067yTeIpsigMSPR1MAUvi8\npBtqu6/8/eJEchdE5j4HIMnIjKOQoAW5qdlTF6popdXjVfMJvAYXuWALSAeg\nQf8k4yghREeCsnt+ymMahUkWG4AGqlkOmN+yKznCLdhviElFWJkmGvf0iLXX\nDrChQE++42Pc0U+giBqSuHBerzQA4EPnCwJX9b/tj7uggB7RKj/lPCPNBtPr\nVkrgPXu5NutZSghZureZXtd3HzjBYPNRCni93DHr0vTC6UMaBEmHz6Q/ZM6v\n/qbxeibYdk93jIRVDrF80RfqTxsyHrYjhpoxHEWe0AlhzrF0i2qDKrXRR3b8\nwkSInKaVWR9iOFFsvaHi9Z1DVhMNjtyIGeTljP/o6aL8GOkBPcOhPDPhzXQg\nYgWALIA+1X9BhM4ZNkHUIkxWrF086JdP7t+kfPBmBQFJhbhM8BwCW3GfkxV1\nMWBJ\r\n=LJu1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEY1h2J1Vht4zjvDjwtB5t3klMCKACWYPhrwdX0gmOwwIhAIjMlnJQ2Mq0uIZYTHmi5rMeOS0WjKJUzE9GJcjWCAiF"}]},"maintainers":[{"name":"sastan","email":"s.tandel@me.com"}],"_npmUser":{"name":"sastan","email":"s.tandel@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-hyperscript_1.2.1_1593444570939_0.9185649939341911"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-21T22:11:03.804Z","1.0.0":"2020-06-21T22:11:03.989Z","modified":"2022-05-19T02:49:10.169Z","1.1.0":"2020-06-23T10:43:07.344Z","1.1.1":"2020-06-23T15:52:24.012Z","1.2.0":"2020-06-29T15:21:50.306Z","1.2.1":"2020-06-29T15:29:31.097Z"},"maintainers":[{"name":"sastan","email":"s.tandel@me.com"}],"description":"hyperscript for svelte","homepage":"https://github.com/kenoxa/svelte-hyperscript#readme","keywords":["svelte","hyperscript"],"repository":{"type":"git","url":"git+https://github.com/kenoxa/svelte-hyperscript.git"},"author":{"name":"Sascha Tandel","email":"s.tandel@kenoxa.de"},"bugs":{"url":"https://github.com/kenoxa/svelte-hyperscript/issues"},"license":"MIT","readme":"# svelte-hyperscript\n\n> use [hyperscript](https://github.com/hyperhype/hyperscript) to create [svelte](https://svelte.dev/) components\n\n[![License](https://badgen.net/npm/license/svelte-hyperscript)](https://github.com/kenoxa/svelte-hyperscript/blob/main/LICENSE)\n[![Latest Release](https://badgen.net/npm/v/svelte-hyperscript)](https://www.npmjs.com/package/svelte-hyperscript)\n[![View changelog](https://badgen.net/badge/%E2%80%8B/Explore%20Changelog/green?icon=awesome)](https://changelogs.xyz/svelte-hyperscript)\n\n[![CI](https://github.com/kenoxa/svelte-hyperscript/workflows/CI/badge.svg)](https://github.comkenoxan/svelte-hyperscript/actions?query=branch%3Amain+workflow%3ACI)\n[![Coverage Status](https://badgen.net/coveralls/c/github/kenoxa/svelte-hyperscript/main)](https://coveralls.io/github/kenoxa/svelte-hyperscript?branch=main)\n[![PRs Welcome](https://badgen.net/badge/PRs/welcome/purple)](http://makeapullrequest.com)\n[![Conventional Commits](https://badgen.net/badge/Conventional%20Commits/1.0.0/cyan)](https://conventionalcommits.org)\n\n## What?\n\nThis package exposes an [hyperscript](https://github.com/hyperhype/hyperscript) compatible function: `h(tag, properties, ...children)` which returns a svelte component.\n\n## Why?\n\nThis is the core for [svelte-jsx] and [svelte-htm]. These packages allow to simplify svelte testing code especially slot handling.\n\n## Installation\n\n```sh\nnpm install svelte-hyperscript\n```\n\nAnd then import it:\n\n```js\n// using es modules\nimport h from 'svelte-hyperscript'\n\n// common.js\nconst h = require('svelte-hyperscript')\n```\n\nAlternatively use [UNPKG](https://unpkg.com/svelte-htm/) or [jsDelivr](https://cdn.jsdelivr.net/npm/svelte-htm/) packages:\n\nWith script tags and globals:\n\n```html\n<!-- UNPKG -->\n<script src=\"https://unpkg.com/svelte-hyperscript\"></script>\n\n<!-- jsDelivr -->\n<script src=\"https://cdn.jsdelivr.net/npm/svelte-hyperscript\"></script>\n\n<script>\n  <!-- And then grab it off the global like so: -->\n  const h = svelteHyperscript\n</script>\n```\n\nHotlinking from unpkg: _(no build tool needed!)_\n\n```js\nimport h from 'https://unpkg.com/svelte-hyperscript?module'\n```\n\n## Usage\n\n```js\nimport h from 'svelte-hyperscript'\n\nimport Button from '../src/Button.svelte'\n\nlet clicked = 0\nconst LabeledButton = h(Button, { 'on:click': () => (clicked += 1) }, h('span', null, 'Click Me!'))\n\nconst button = new LabeledButton({\n  target: document.body,\n})\n```\n\nThe above example written in [jsx] using [svelte-jsx]:\n\n```jsx\nimport Button from '../src/Button.svelte'\n\nlet clicked = 0\nconst LabeledButton = (\n  <Button onClick={() => (clicked += 1)}>\n    <span>Click Me!</span>\n  </Button>\n)\n\nconst button = new LabeledButton({\n  target: document.body,\n})\n```\n\nor using [svelte-htm]:\n\n```js\nimport html from 'svelte-htm'\nimport Button from '../src/Button.svelte'\n\nlet clicked = 0\nconst LabeledButton = html`<${Button} on:click=${() => (clicked += 1)}><span>Click Me!</span><//>`\n\nconst button = new LabeledButton({\n  target: document.body,\n})\n```\n\n## API\n\nWe [aim to support](#feature-set) all svelte features. In some cases this is not possible due to the static nature of hyperscript. For those cases we provided feasible workarounds:\n\n### Using stores to allow reactivity\n\nTo allow reactivity the following properties accept a [writable store](https://svelte.dev/docs#svelte_store):\n\n- [bind:property](https://svelte.dev/docs#bind_element_property)\n- [bind:group](https://svelte.dev/docs#bind_group)\n- [bind:this](https://svelte.dev/docs#bind_this)\n- [\\<slot let:name={value}>](https://svelte.dev/docs#slot_let)\n\n[\\<slot let:name={value}>](https://svelte.dev/docs#slot_let) additionally accepts a function which is called with the current value.\n\nThis allows to for example to access the value if an input:\n\n```js\nimport { test } from '@jest/globals'\nimport { render } from '@testing-library/svelte'\nimport userEvent from '@testing-library/user-event'\n\nimport { writable, get } from 'svelte/store'\n\nimport h from 'svelte-hyperscript'\n\ntest('write into an input', () => {\n  const text = writable()\n  const { getByRole } = render(h('input', { 'bind:value': text }))\n\n  const input = getByRole('textbox')\n\n  await userEvent.type(input, 'some text')\n\n  expect(get(text)).toBe('some text')\n})\n```\n\nThe [tests](https://github.com/kenoxa/svelte-hyperscript/tree/main/src/__tests__) are a good source of how to use this feature.\n\n### Action factories\n\nThe [action feature](https://svelte.dev/docs#use_action) of svelte is supported but lacks the possibility to pass parameters to the action. This can still be achieved using a factory function as action:\n\n```js\nimport h from 'svelte-hyperscript'\n\nimport action from 'some-action-module'\n\nh('div', { 'use:action': (node) => action(node, parameters) })\n```\n\n## Related Projects\n\n- [svelte-jsx] - write svelte components using [jsx]\n- [svelte-htm] - [**H**yperscript **T**agged **M**arkup](https://www.npmjs.com/package/htm) for svelte\n- [svelte-fragment-component] - a utility component\n\n## Feature Set\n\n- [x] plain html children\n- [x] readable store children\n- [x] on:eventname\n- [x] on:eventname modifiers\n- [x] bind:property **but** using writable store\n  - [x] bind:property on components\n  - [x] bind:property on html elements\n  - [x] bind:group\n  - [x] bind:this\n- [x] use:action\n- [x] class:name\n- [ ] transition:fn\n- [ ] in:fn/out:fn\n- [x] `<slot>`\n  - [x] `<slot name=\"name\">`\n  - [x] `<slot let:name={setter}>` **but** using setter or writable store\n  - [x] `<slot let:name={property}>{property}</slot>` when using a writable store\n- [x] context propagation\n- [ ] svelte:self\n- [ ] svelte:component\n- [ ] svelte:window\n- [ ] svelte:body\n- [ ] svelte:head\n\n## Support\n\nThis project is free and open-source, so if you think this project can help you or anyone else, you may [star it on GitHub](https://github.com/kenoxa/svelte-hyperscript). Feel free to [open an issue](https://github.comkenoxan/svelte-hyperscript/issues) if you have any idea, question, or you've found a bug.\n\n## Contribute\n\nThanks for being willing to contribute!\n\n**Working on your first Pull Request?** You can learn how from this _free_ series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)\n\nWe are following the [Conventional Commits](https://www.conventionalcommits.org) convention.\n\n### Develop\n\n- `npm test`: Run test suite\n- `npm run build`: Generate bundles\n- `npm run lint`: Lints code\n\n## NPM Statistics\n\n[![NPM](https://nodei.co/npm/svelte-hyperscript.png)](https://nodei.co/npm/svelte-hyperscript/)\n\n## License\n\n`svelte-hyperscript` is open source software [licensed as MIT](https://github.com/kenoxa/svelte-hyperscript/blob/main/LICENSE).\n\n[jsx]: https://reactjs.org/docs/introducing-jsx.html\n[svelte-jsx]: https://www.npmjs.com/package/svelte-jsx\n[svelte-hyperscript]: https://www.npmjs.com/package/svelte-hyperscript\n[svelte-fragment-component]: https://www.npmjs.com/package/svelte-fragment-component\n","readmeFilename":"README.md"}