{"_id":"@dxlb/svelte-apollo","_rev":"6-ddffcbc8cfef9392772c93729d38444b","name":"@dxlb/svelte-apollo","dist-tags":{"latest":"0.4.4"},"versions":{"0.4.0":{"name":"@dxlb/svelte-apollo","version":"0.4.0","author":{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/timhall/svelte-apollo.git"},"main":"dist/svelte-apollo.cjs.js","module":"dist/svelte-apollo.es.js","types":"dist/svelte-apollo.d.ts","keywords":["svelte","apollo","graphql"],"scripts":{"build":"rollup -c","dev":"rollup -c -w","prepublishOnly":"npm run build","test":"jest","typecheck":"tsc --noEmit","format":"prettier --write \"src/**/*.ts\""},"dependencies":{},"peerDependencies":{"@apollo/client":"^3.2.0","graphql":"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0","svelte":"^3.0.0"},"devDependencies":{"@apollo/client":"^3.2.3","@rollup/plugin-typescript":"^6.0.0","@types/jest":"^26.0.14","graphql":"^15.3.0","jest":"^26.5.2","prettier":"^2.1.2","rollup":"^2.29.0","rollup-plugin-dts":"^1.4.13","rollup-plugin-filesize":"^9.0.2","svelte":"^3.29.0","ts-jest":"^26.4.1","typescript":"^4.0.3"},"jest":{"testEnvironment":"node","preset":"ts-jest"},"gitHead":"54aa177fddff2ee318bfe28b80485e6d4e45b37a","description":"Svelte integration for Apollo GraphQL.","bugs":{"url":"https://github.com/timhall/svelte-apollo/issues"},"homepage":"https://github.com/timhall/svelte-apollo#readme","_id":"@dxlb/svelte-apollo@0.4.0","_nodeVersion":"15.6.0","_npmVersion":"7.4.0","dist":{"integrity":"sha512-jLKn0vE4y3T7bikZBB4c151i2z1ixVeT5u4zoO4wl2E9CULDJcTKidARQIPT8od5JVs9jlX5Wt9/xsls3e2JWQ==","shasum":"f35a09be13a3472a456ba480c4c9d111644a8bf0","tarball":"https://registry.npmjs.org/@dxlb/svelte-apollo/-/svelte-apollo-0.4.0.tgz","fileCount":8,"unpackedSize":68454,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNhyRCRA9TVsSAnZWagAAIq4P/3wtcYxCjBFDRZtj4HqQ\nkcxQCED+CZE8a36/LczdUPmznamyoLTlx1mluNyaLolBvUrRUSFOqFQdbPGw\nQoZh+00LZCXu/fFlHIAJM66UdbOhkVcr+Zkd2TtJ4b3wdsGNc3DwY+bfltif\nG3EiQQyfj+sNroLKR2kCpEeaXWu3jAhGNAfSzuAPndJP05Ub0JfoXXr8wQF/\nCy1PBnmSYa+V3b+Lham5d3N2NKb2TEKD6okNb7NLPrnBhiHMmnHBjYWgnjwM\n8YWo0u5QJObLDKQZ8fLIAEa0zE67JMkTO7/vABWWifnqJum6ZTJuWPkCfMbq\nwMDk6+RcR+IgPkin5TQX9ju6CNNSuYPqr1d4v0b4VwzWHMrL9qhluzjZZ96z\nvaenHMmmPOiDBHnz0OhH6M6CG6iSVHupywKa7k3UbO4YfjTcGChN4gaNFx/+\nmxjmseWTYbIUpYx33yGMo6Oj1LnFLgfqDyaQES9tpm+7ZxaOp69I5ZuWatl2\nsdt5pRXXZZZkQ34Dh26HD4d0618+A6QNb1Cla/XXPS9QKudUp9K8jvzurWWK\nibWSCZD1wb4ZWSUSImmpvmGxj6u0Y5IPjRI2xtWYzcS50R7/z/LUaOr5XwfT\n/Pe+6K8QwC4CK+QJqBHO/8VKBEYM5fFDv2ve5/NsXfY0VjKONv41qqtOLHxs\nvM2I\r\n=Sp7t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAm/S+xT/6bbmO62SpDJ9xrIwn8TTvmuHNyik0KBVSwAiAxogPgLv7DRMtDcmS/BkeB6R9pXsy+YAlEKvooU6r6Ag=="}]},"_npmUser":{"name":"dexterlabs","email":"dexter@nerdalize.com"},"directories":{},"maintainers":[{"name":"dexterlabs","email":"dexter@nerdalize.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-apollo_0.4.0_1614158993008_0.08951338749206683"},"_hasShrinkwrap":false},"0.4.1":{"name":"@dxlb/svelte-apollo","version":"0.4.1","author":{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/timhall/svelte-apollo.git"},"main":"dist/svelte-apollo.cjs.js","module":"dist/svelte-apollo.es.js","types":"dist/svelte-apollo.d.ts","keywords":["svelte","apollo","graphql"],"scripts":{"build":"rollup -c","dev":"rollup -c -w","prepublishOnly":"npm run build","test":"jest","typecheck":"tsc --noEmit","format":"prettier --write \"src/**/*.ts\""},"dependencies":{},"peerDependencies":{"@apollo/client":"^3.2.0","graphql":"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0","svelte":"^3.0.0"},"devDependencies":{"@apollo/client":"^3.2.3","@rollup/plugin-typescript":"^6.0.0","@types/jest":"^26.0.14","graphql":"^15.3.0","jest":"^26.5.2","prettier":"^2.1.2","rollup":"^2.29.0","rollup-plugin-dts":"^1.4.13","rollup-plugin-filesize":"^9.0.2","svelte":"^3.29.0","ts-jest":"^26.4.1","typescript":"^4.0.3"},"jest":{"testEnvironment":"node","preset":"ts-jest"},"gitHead":"e11d40be1ce81a1bde15fbdc70407acec42ec70d","description":"Svelte integration for Apollo GraphQL.","bugs":{"url":"https://github.com/timhall/svelte-apollo/issues"},"homepage":"https://github.com/timhall/svelte-apollo#readme","_id":"@dxlb/svelte-apollo@0.4.1","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-d2KRoft3k8uW2g3S4xwYSPile7VLg0SN8z31C4fkmvUgH+TPSPnyAwKiraP9m/gbJOVCfaISOzhElQT3jXvKHA==","shasum":"6603b6e27336aba60959b389e4589b803c555e2e","tarball":"https://registry.npmjs.org/@dxlb/svelte-apollo/-/svelte-apollo-0.4.1.tgz","fileCount":8,"unpackedSize":68455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBvpmCRA9TVsSAnZWagAA4SAP/1C9JEW7BiLYG6OJfihW\naJPzo78sQ4DVzvpYY9eW9POEMIpoUMcs2WIR+uFEZFOTHxsY03JB7r3ji7FA\nejdxNc7IxQr8ArQR2Z6TUcMFVIRhDfhqV/bNpZwLI5+vv6ZkLAEIUlsBuWL6\njU0IhV5K7i/i3uzhHjYBV2FQ/4d7aXtidq20WFVtJr/6qWKHp0I0tv8ZjALS\nyLcPz7YVWcsCw0/CBbBTXaG/jCHp+UCUzowBZrC7dEqmyRbE+ggICMSgOAEX\nEQlbJfBwKagI3Xey7ZrjpUVtohYHRFq9yco1h08J+oYnhpJRHhtgyNXDvI3K\nP3ZeYkYUhYaH+xtog/HGj3ehjmuU5cXajHX/dosSsAeMiJegs1UqZfIp6IpM\nYeYkU05TAkEEFXIKjBluEcJboBFTfTvKYGMZJzkYBAj9CBNCv/FEwibYOsIc\nR9A1JuoW7QSzs8WGvvqWSz8doOgd6ggDt3EcxrJ+atbl2YUXDM+DgwwxGvIH\nOojypP2/gmSEekHLbYtwF3+Pk4atLfW7Oxs1L5VGeKKLuYeeyrYvH3aTeOwT\nL3xdeim9QrjeX/+L6kvpytfMnRkj23hLpc7Nfz4uHhZzOIEuxdI5iGUPe/bn\n9hwcai8MonkcokEetJRXTm53xtPJsovTeUp0YmrBAMB1BJh3UOzYnDqO1nYD\njMBN\r\n=VEo8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXbw17MkC5OeUGuR8CporfomhWc7UzG1JnPr+ZDCnoEgIhAMqIELXUWeYVNSJZWKGN8+GGRXAxOyeykJLKa5CHZYHw"}]},"_npmUser":{"name":"dexterlabs","email":"dexter@nerdalize.com"},"directories":{},"maintainers":[{"name":"dexterlabs","email":"dexter@nerdalize.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-apollo_0.4.1_1627847270143_0.5422546742178718"},"_hasShrinkwrap":false},"0.4.2":{"name":"@dxlb/svelte-apollo","version":"0.4.2","author":{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/timhall/svelte-apollo.git"},"main":"dist/svelte-apollo.cjs.js","module":"dist/svelte-apollo.es.js","types":"dist/svelte-apollo.d.ts","keywords":["svelte","apollo","graphql"],"scripts":{"build":"rollup -c","dev":"rollup -c -w","prepublishOnly":"npm run build","test":"jest","typecheck":"tsc --noEmit","format":"prettier --write \"src/**/*.ts\""},"dependencies":{},"peerDependencies":{"@apollo/client":"^3.2.0","graphql":"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0","svelte":"^3.0.0"},"devDependencies":{"@apollo/client":"^3.2.3","@rollup/plugin-typescript":"^6.0.0","@types/jest":"^26.0.14","graphql":"^15.3.0","jest":"^26.5.2","prettier":"^2.1.2","rollup":"^2.29.0","rollup-plugin-dts":"^1.4.13","rollup-plugin-filesize":"^9.0.2","svelte":"^3.29.0","ts-jest":"^26.4.1","typescript":"^4.0.3"},"jest":{"testEnvironment":"node","preset":"ts-jest"},"gitHead":"969cd589b29253e150ef920ba60d96ca7c5c0a91","description":"Svelte integration for Apollo GraphQL.","bugs":{"url":"https://github.com/timhall/svelte-apollo/issues"},"homepage":"https://github.com/timhall/svelte-apollo#readme","_id":"@dxlb/svelte-apollo@0.4.2","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-r3QkB0G8fw+E2AUuDzOByEPXhw5nj8TUs9Lbx/bWJrhHGLglYQgwHsMyzjwC4U2P17d2XHMJzV69N4swPGAknA==","shasum":"ad26ca21042ffbf1a89b1b80c3b355a49106ff26","tarball":"https://registry.npmjs.org/@dxlb/svelte-apollo/-/svelte-apollo-0.4.2.tgz","fileCount":8,"unpackedSize":67843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBxWXCRA9TVsSAnZWagAAbFYP/Ahu3cFul5Gq7HQRIW6g\neNGR5uhVETWF0l51piyzRyIc1ODE4g43fE9lqPntpdup3NImIDoZmMI2d49l\nOfhiuNDG2eNh0nr5l4s0dJVKpL4ycrGOKsIf7fWd1nfOElNihW9yR4wBqkm0\nhOXbRw0PnzzOaTV/GJTVTjQFumu35zH3lH0cOq0CYYHlRhCHcSaFDxwrj+oM\nupTmMsXaY/ZT53/4ydyVJCfQIgk6EhSXNWT6B7z887wLCOD8xQ8StM+2Ghcx\nUi/9bC+rDnLIBHpnO3Zn8edVXc3b7F23Yqmo5yfWrPTodi2SCB21mhD6Mz3T\nBncdsqvWpr8NdnwIhU9sQIIM628qh+nEtB4uZzE8vYV15YNV847R3dURnGXl\niipF63QvedVn/JNU7kmO35weWVvQx7AqwfwFP+r9NW5GW1RpHu8cmeaEx7VE\nkXx8ftl2eUtU6F0zsM70mYWr/cc+vQkrKcTeLUkf3HEChllCKEzYlY8Io5H/\nLDyvyoX0CkicPUiKszh83e6WXK03zIUTaW186Fn3yHra4DqF+B5mVgoCC3J/\nQIwWbnlOnuYIHBmY/V+splxE23eGqUuETXUx0YHnw3F5Cq/oBOYqePFVEHn9\njVIQqACEnobvLMvWiGGSbgv4J901OGYt5opbkJpxY/o6JeZw9P2Ja8fRSKo6\nqy63\r\n=yP9F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7gw2UOkw3SA3R8/tlZWZkXzdF0fe0f9KDCLYw3bA7eAiAa+yeKiYtHBHlfwVBz0iq6tZUGJCxFpPywe9SkmEtEjQ=="}]},"_npmUser":{"name":"dexterlabs","email":"dexter@nerdalize.com"},"directories":{},"maintainers":[{"name":"dexterlabs","email":"dexter@nerdalize.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-apollo_0.4.2_1627854231027_0.8222977843810897"},"_hasShrinkwrap":false},"0.4.3":{"name":"@dxlb/svelte-apollo","version":"0.4.3","author":{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/timhall/svelte-apollo.git"},"main":"dist/svelte-apollo.cjs.js","module":"dist/svelte-apollo.es.js","types":"dist/svelte-apollo.d.ts","keywords":["svelte","apollo","graphql"],"scripts":{"build":"rollup -c","dev":"rollup -c -w","prepublishOnly":"npm run build","test":"jest","typecheck":"tsc --noEmit","format":"prettier --write \"src/**/*.ts\""},"peerDependencies":{"@apollo/client":"^3.2.0","graphql":"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0","svelte":"^3.0.0"},"devDependencies":{"@apollo/client":"^3.2.3","@rollup/plugin-typescript":"^6.0.0","@types/jest":"^26.0.14","graphql":"^15.3.0","jest":"^26.5.2","prettier":"^2.1.2","rollup":"^2.29.0","rollup-plugin-dts":"^1.4.13","rollup-plugin-filesize":"^9.0.2","svelte":"^3.29.0","ts-jest":"^26.4.1","typescript":"^4.0.3"},"jest":{"testEnvironment":"node","preset":"ts-jest"},"gitHead":"7cdc1490eb4709ae52967868b48fe20b033b5c16","description":"Svelte integration for Apollo GraphQL.","bugs":{"url":"https://github.com/timhall/svelte-apollo/issues"},"homepage":"https://github.com/timhall/svelte-apollo#readme","_id":"@dxlb/svelte-apollo@0.4.3","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-s06wffYxgXqDDuDFOGrqjYeOejmfTGGKdjW9nJdB4lhBeG8YmV6XPoGxcsPDcoyhv804YxVXm+XtpMX8eo69sw==","shasum":"dfaed1c5ffc0beeeeeac0fd6ed259016490be6de","tarball":"https://registry.npmjs.org/@dxlb/svelte-apollo/-/svelte-apollo-0.4.3.tgz","fileCount":8,"unpackedSize":70976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBxX3CRA9TVsSAnZWagAAK94P/0PfDxM0ku1gRb9jIBkX\nC2nw/Y0Dsadrj3BEcyucntIm7i24GaWf995bwToZhN6FCcylwjs7HRuUT0P3\nuUYWEu/nafCYh+z5Nhs5ZsXWdDPSY9HheniVOvrSuLqve9OCYCurSq+oUMF0\n7cVmzQshLB/wcJY6RUuq6NUAK2B/owqMj1/t3IfC1zQadOzVIw3jDdLbk0hm\nsriWfbbKH22BPyPEcBz0L4+AcezGKBLQhYeENW9YEp0FbIPErSIcLBqSHfTr\nrk7NuGg2OUXpdmH5SYfFbTBaif7MOFndPzJaOFgZ5seP7Uw04iu9Cm2DWsVI\n2iaubhkWcNqCCwE8nYAXmN5zSXdK9QtX4cd3QmyIdJhw5lNhItG44KjUeJ4r\nBwcKKJl9fIRrnBnbp/7tZ0YGhjuDfZdeOlXkT1fx6kMUuVEm4PECXQ/w0QSm\n5cPQLG9bli0cGYwb8qMehtivy/wRqGhrHlSbYFM0AZekwJzKl1Joz0oTgrG5\nqHEy3RQ70lTAS+bd5OrlB3N9tU7kn6/g2CnfznuBHEnI3otC9cSgJxc7O68q\nSKlwsy68HgpBLQI8QWQUYPPVRCExEHdaxH+urtMg7r88R0/OYN72/cEEmJEA\nZva2M7u7eH3qEQIde/K1FxFKZDIkoFcTfpSl333kpVN1kW5BMzlom7UvScru\n2Onq\r\n=HqaV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqzNp8/YBQeObIOtHQiPxbsIh7yl+E3apHtst/V/dlSAiA2vOLFAbIdVwEZDW7cau8YkeoVuGzU/D7hkTy9MME2Zw=="}]},"_npmUser":{"name":"dexterlabs","email":"dexter@nerdalize.com"},"directories":{},"maintainers":[{"name":"dexterlabs","email":"dexter@nerdalize.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-apollo_0.4.3_1627854327597_0.06438869377415246"},"_hasShrinkwrap":false},"0.4.4":{"name":"@dxlb/svelte-apollo","version":"0.4.4","author":{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/timhall/svelte-apollo.git"},"main":"dist/svelte-apollo.cjs.js","module":"dist/svelte-apollo.es.js","types":"dist/svelte-apollo.d.ts","keywords":["svelte","apollo","graphql"],"scripts":{"build":"rollup -c","dev":"rollup -c -w","prepublishOnly":"npm run build","test":"jest","typecheck":"tsc --noEmit","format":"prettier --write \"src/**/*.ts\""},"peerDependencies":{"@apollo/client":"^3.5.0-beta.16","graphql":"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0","svelte":"^3.0.0"},"devDependencies":{"@apollo/client":"^3.5.0-beta.16","@rollup/plugin-typescript":"^6.0.0","@types/jest":"^26.0.14","graphql":"^15.3.0","jest":"^26.5.2","prettier":"^2.1.2","rollup":"^2.29.0","rollup-plugin-dts":"^1.4.13","rollup-plugin-filesize":"^9.0.2","svelte":"^3.29.0","ts-jest":"^26.4.1","typescript":"^4.0.3"},"jest":{"testEnvironment":"node","preset":"ts-jest"},"gitHead":"a3f800a848ae6895adf5b790088a9d2636f9d5c2","description":"Svelte integration for Apollo GraphQL.","bugs":{"url":"https://github.com/timhall/svelte-apollo/issues"},"homepage":"https://github.com/timhall/svelte-apollo#readme","_id":"@dxlb/svelte-apollo@0.4.4","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-FeAdwEEhPmobHHUuAeiaQRIQv5xF3qqq4dukZecupDLpyfgY917QCydtwPCCAEnZPaY3MwfJG2GYoRikDpu1OQ==","shasum":"682169760403dea755e5d8dd66684c07f6cef2f5","tarball":"https://registry.npmjs.org/@dxlb/svelte-apollo/-/svelte-apollo-0.4.4.tgz","fileCount":8,"unpackedSize":71007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2Ey4CRA9TVsSAnZWagAAg2EP/1ZiN7TUcmUaqOT5V8K3\nRcl6dRUVUHoTwLOzbhI5tMhM6hLOSmOP59lamj/10Qk6LVUSMyGD4aESRuf0\nyA9Z4Et5AEfc8AI+LMhV5B3URrV6MCHAHbyXRdb18xdOP197d978jS38dvDy\nrJul2tuJpZ+0oLrnXzF3loDTGvImgMb07EwBAtvFBXFMaf6xzlzh1LKmTPa+\nh8VwwFztD3HUtsEcHCuJ5XxWU9r/XFcEfRmfDHepIAj+OPSx9Z15/9UaeUGh\nh3Y9wnF3QZNMLY/TAtiuoiFuqPjXzIq/BagDEGG5M+titzxE9jIHxlqOKrp9\nsEz6oaR8PciBqe3c2b4oicGiDB48pIZLlQBYDxonby/Fja1ABQl5xLhq2tHT\nT5zqt2rPjx2jSTMdNEsqy2XbHxh1ek2VKmMM8O55Kc2EknaJhSh6sSCQY0G4\nalaFFhIJhi5du9PcOzziR6gOqpYevgqppA3BYscDRo6HWDrAxYIa9AGdm/4S\n8Me8SG1yGhZp4Vr1ysVRSruF2+I4Kqa5vJXjEN1Axi5kvyVac5Vfxjp3/wF8\npEa4Hixrfc3ouxiCf1be8kqtk3TI0/5uA39x5uen3jDyivEq01Gc52TOwOwt\nU5GMLEx5oNxeEtJKCNv4yUuW7twTY4pU/45qh+2tbJq2v44tHGMvpjn6npml\nC1tI\r\n=AIaF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzB+qD3g5Xn7BJUQ7TogJnJtAhySj2+GuoA9zuXGKsMwIhAP+DulIAWj1CsX8TSZP/cPB6nL2cH3ejPK/6+zi6UzA/"}]},"_npmUser":{"name":"dexterlabs","email":"dexter@nerdalize.com"},"directories":{},"maintainers":[{"name":"dexterlabs","email":"dexter@nerdalize.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-apollo_0.4.4_1632425258057_0.07487360632200635"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-24T09:29:52.849Z","0.4.0":"2021-02-24T09:29:53.130Z","modified":"2022-04-05T06:14:14.614Z","0.4.1":"2021-08-01T19:47:50.500Z","0.4.2":"2021-08-01T21:43:51.138Z","0.4.3":"2021-08-01T21:45:27.760Z","0.4.4":"2021-09-23T19:27:38.281Z"},"maintainers":[{"name":"dexterlabs","email":"dexter@nerdalize.com"}],"description":"Svelte integration for Apollo GraphQL.","homepage":"https://github.com/timhall/svelte-apollo#readme","keywords":["svelte","apollo","graphql"],"repository":{"type":"git","url":"git+https://github.com/timhall/svelte-apollo.git"},"author":{"name":"Tim Hall","email":"tim.hall.engr@gmail.com"},"bugs":{"url":"https://github.com/timhall/svelte-apollo/issues"},"license":"MIT","readme":"# svelte-apollo\n\nSvelte integration for Apollo GraphQL.\n\n## Example\n\nThe following simple example shows how to run a simple query with svelte-apollo.\n\n```svelte\n<!-- App.svelte -->\n<Books />\n\n<script>\n  import { ApolloClient } from \"@apollo/client\";\n  import { setClient } from \"svelte-apollo\";\n  import Books from \"./Books.svelte\";\n\n  // 1. Create an Apollo client and pass it to all child components\n  //    (uses svelte's built-in context)\n  const client = new ApolloClient({\n    /* ... */\n  });\n  setClient(client);\n</script>\n```\n\n```svelte\n<!-- Books.svelte -->\n<script>\n  import { query } from \"svelte-apollo\";\n  import { GET_BOOKS } from \"./queries\";\n\n  // 2. Execute the GET_BOOKS GraphQL query using the Apollo client\n  //    -> Returns a svelte store of promises that resolve as values come in\n  const books = query(GET_BOOKS);\n</script>\n\n<!-- 3. Use $books (note the \"$\"), to subscribe to query values -->\n{#if $books.loading}\n  Loading...\n{:else if $books.error}\n  Error: {$books.error.message}\n{:else}\n  {#each $books.data.books as book}\n    {book.title} by {book.author.name}\n  {/each}\n{/if}\n```\n\n## API\n\n<a href=\"#query\" name=\"query\">#</a> <b>query</b>(<i>document</i>[, <i>options</i>])\n\nQuery an Apollo client, returning a readable store of result values.\nUses Apollo's [`watchQuery`](https://www.apollographql.com/docs/react/api/apollo-client.html#ApolloClient.watchQuery),\nfor fetching from the network and watching the local cache for changes.\nIf the client is hydrating after SSR, it attempts a `readQuery` to synchronously check the cache for values.\n\n```svelte\n<script>\n  import { query } from \"svelte-apollo\";\n  import { GET_BOOKS } from \"./queries\";\n\n  const books = query(GET_BOOKS, {\n    // variables, fetchPolicy, errorPolicy, and others\n  });\n\n  function reload() {\n    books.refetch();\n  }\n</script>\n\n<ul>\n  {#if $books.loading}\n    <li>Loading...</li>\n  {:else if $books.error}\n    <li>ERROR: {$books.error.message}</li>\n  {:else}\n    {#each $books.data.books as book (book.id)}\n      <li>{book.title} by {book.author.name}</li>\n    {/each}\n  {/if}\n</ul>\n\n<button on:click=\"{reload}\">Reload</button>\n```\n\nReactive variables are supported with `refetch`:\n\n```svelte\n<script>\n  import { query } from \"svelte-apollo\";\n  import { SEARCH_BY_AUTHOR } from \"./queries\";\n\n  export let author;\n  let search = \"\";\n\n  const books = query(SEARCH_BY_AUTHOR, {\n    variables: { author, search },\n  });\n\n  // `books` is refetched when author or search change\n  $: books.refetch({ author, search });\n</script>\n\nAuthor: {author}\n<label>Search <input type=\"text\" bind:value=\"{search}\" /></label>\n\n<ul>\n  {#if $books.loading}\n    <li>Loading...</li>\n  {:else if $books.error}\n    <li>ERROR: {$books.error.message}</li>\n  {:else if $books.data}\n    {#each $books.data.books as book (book.id)}\n      <li>{book.title}</li>\n    {/each}\n  {:else}\n    <li>No books found</li>\n  {/if}\n</ul>\n```\n\n<a href=\"#mutation\" name=\"mutation\">#</a> <b>mutation</b>(<i>document</i>[, <i>options</i>])\n\nPrepare a GraphQL mutation with the Apollo client, using Apollo's [`mutate`](https://www.apollographql.com/docs/react/api/apollo-client.html#ApolloClient.mutate).\n\n```svelte\n<script>\n  import { mutation } from \"svelte-apollo\";\n  import { ADD_BOOK } from \"./queries\";\n\n  const addBook = mutation(ADD_BOOK);\n  let title = \"\";\n  let author = \"\";\n\n  async function handleSubmit() {\n    try {\n      await addBook({ variables: { title, author } });\n    } catch (error) {\n      // TODO\n    }\n  }\n</script>\n\n<form on:submit|preventDefault=\"{handleSubmit}\">\n  <label for=\"book-author\">Author</label>\n  <input type=\"text\" id=\"book-author\" bind:value=\"{author}\" />\n\n  <label for=\"book-title\">Title</label>\n  <input type=\"text\" id=\"book-title\" bind:value=\"{title}\" />\n\n  <button type=\"submit\">Add Book</button>\n</form>\n```\n\n<a href=\"#subscribe\" name=\"subscribe\">#</a> <b>subscribe</b>(<i>document</i>[, <i>options</i>])\n\nSubscribe using an Apollo client, returning a store that is compatible with `{#await $...}`. Uses Apollo's [`subscribe`](https://www.apollographql.com/docs/react/api/apollo-client#ApolloClient.subscribe).\n\n```svelte\n<script>\n  import { subscribe } from \"svelte-apollo\";\n  import { NEW_BOOKS } from \"./queries\";\n\n  const newBooks = subscribe(NEW_BOOKS);\n</script>\n\n{#if $newBooks.loading}\n  Waiting for new books...\n{:else if $newBooks.data}\n  New Book: {$newBooks.data.book}\n{/if}\n```\n\n<a href=\"#restore\" name=\"restore\">#</a> <b>restore</b>(<i>document</i>, <i>options</i>)\n\nRestore a previously executed query (e.g. via preload) into the Apollo cache.\n\n```svelte\n<script context=\"module\">\n  import client from \"./client\";\n  import { GET_BOOKS } from \"./queries\";\n\n  export async function preload() {\n    return {\n      preloaded: await client.query({ query: GET_BOOKS }),\n    };\n  }\n</script>\n\n<script>\n  import { restore } from \"svelte-apollo\";\n\n  export let preloaded;\n\n  // Load preloaded values into client's cache\n  restore(GET_BOOKS, preloaded);\n</script>\n```\n\n<a href=\"#setClient\" name=\"setClient\">#</a> <b>setClient</b>(<i>client</i>)\n\nSet an Apollo client for the current component's and all child components' contexts.\n\n```svelte\n<!-- Parent.svelte -->\n<script>\n  import { setClient } from \"svelte-apollo\";\n  import client from \"./client\";\n\n  setClient(client);\n</script>\n```\n\n<a href=\"#getClient\" name=\"getClient\">#</a> <b>getClient</b>()\n\nGet an Apollo client from the current component's context.\n\n```svelte\n<!-- Child.svelte -->\n<script>\n  import { getClient } from \"svelte-apollo\";\n\n  const client = getClient();\n</script>\n```\n","readmeFilename":"README.md"}