{"_id":"lokka","_rev":"20-3d6894dbe70e533212991775dbbd13ec","name":"lokka","dist-tags":{"latest":"1.7.0"},"versions":{"0.0.0":{"name":"lokka","version":"0.0.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"lokka@0.0.0","_shasum":"cf35cb9be78648c32c9e035c58b98d7d9cc426ba","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"cf35cb9be78648c32c9e035c58b98d7d9cc426ba","tarball":"https://registry.npmjs.org/lokka/-/lokka-0.0.0.tgz","integrity":"sha512-0srIBQmpbUQxuXF31ieLVSm/o3HVYP/bE3NUpy2yN9yeiav4oRDIUkvCBv0GXCj/M9rvPgP1WArc7aGPf7Ul0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHW5gE92vONeIH0ytyca9brdxFch1XUwbMs+m6yljonLAiAShQGdP8PPXa/+Ex+e4TivKrpsdVlDtx9P2o3YedNxRQ=="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.0.0":{"name":"lokka","version":"1.0.0","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"be1e47ac4f1edee618638aec0bd55862606c27cc","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.0.0","_shasum":"fa15f930c8a7578bcdf37926515615e0bd102fa1","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"fa15f930c8a7578bcdf37926515615e0bd102fa1","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.0.0.tgz","integrity":"sha512-3j4VXQ0lzIB1lr1vzKWa4pzc32ABfpbE1JDbkuj3kKMMQFlgm2EzD93uSjfwJ+SBp7XIQVmpvafavVAvyYt1dQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGkWKjDSuwy+uD4dGAiQbaEz8UYx+dbjaYw10jvyMrCAiBla44LF7KPyFD5UHpY1LhIKB9RlpQHEIFtokLI8Ranbw=="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.0.1":{"name":"lokka","version":"1.0.1","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"cb2655c57a8cc00ec341b7daec26d9892380385d","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.0.1","_shasum":"d1cdd75f829a7a9e335c001c9b26e8908f7e88f6","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"d1cdd75f829a7a9e335c001c9b26e8908f7e88f6","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.0.1.tgz","integrity":"sha512-//SSJp0FTFQdka3AnF0xPiWf8qKyeLCz+20jLSYuKNjnDhjRoFDBjCMPrIh/JcGp8KR0yA2kO9xGmo6+mozKdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAYM3sYqKBtk4BQYqOugAL2/UwALuG8esfzdaPCB3PAVAiADvwzIYAUC8qQfmSHMejTIDQwzbHsJsbu4EBj9MJfZcQ=="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.1.0":{"name":"lokka","version":"1.1.0","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"3fb29728df1062157ac3c9322a902dd65d754d97","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.1.0","_shasum":"79e75a073585f1336898a47684bb9f85c2d2f7b7","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"79e75a073585f1336898a47684bb9f85c2d2f7b7","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.1.0.tgz","integrity":"sha512-26wrB1boWiMN7Da8w+/bUzLzheJ7RHe7gF0wrJhi0SdYaqRsBwLK9S80c8N9an/7gAXILwbtBUwc1T3R4Ilcbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCkSXnFWa1h34yr9xa77Le+4yp6sBkJ5Oa00ndXLdrkAIgH+Kpz54srGYzKDKSxMEg/i72RbjWIH7OP1a9GRacyKk="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.2.0":{"name":"lokka","version":"1.2.0","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"377612899a2a53dcee646ca1f38d221c9d870f0f","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.2.0","_shasum":"0e1cfca2bafa0719e21f1e7700619e6cd9297026","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"0e1cfca2bafa0719e21f1e7700619e6cd9297026","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.2.0.tgz","integrity":"sha512-UaPgobOjtt5v6z1E12aESNy0+BIB6A480aMtTNUqvfnEKYSkvrDDRdJEKnQU7x4utxGDOcUOoat/HFUSLLXrmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGibgQSviUqCzeeE77wVaKZaJkefKkYXAxXhrGnBsodbAiEAuzvC6AcVy/zH1fXfIcZcK8IZgQUAue0KzQWyJPhGo4k="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.2.1":{"name":"lokka","version":"1.2.1","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"4864e0805964face969070cee121051dedec4a6f","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.2.1","_shasum":"525fca4339769051319ed00bc978a71f0cabcb8d","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"525fca4339769051319ed00bc978a71f0cabcb8d","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.2.1.tgz","integrity":"sha512-+J2hQ8Jvp9RL6wGDLrU+CCRqzpQmLTaF61CFW5QD83UjMpCyDc/2GftE4XjvMrmCvclCgpSKLfp2iORzMUK7OA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNvEzqt4RWesdsmqAr+ALrk6w+LcKhVOsi0NAQUSb54AiEA6myNga1XSH1pAesOB0YyB8cIdmebEi5ldWT4+xOnttE="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.3.0":{"name":"lokka","version":"1.3.0","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"0a6d02053244ffcf28b9ed5599bccc1a17fd28f1","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.3.0","_shasum":"1e039e828bff0aadbaeb313c7d0a1094363225ec","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"1e039e828bff0aadbaeb313c7d0a1094363225ec","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.3.0.tgz","integrity":"sha512-TYXT+9Jbi9BTze9/9hdGthTVDBqqM2xIUvFv3xY8rkxSia2vpp7eqGortLdb4028lDq2rwDsGrAkwo9tY7qF+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICwahSorcx0asmvMwuArAsjWJmLoBmsPnb+2VMyNP4BtAiEAlMkPomWBxXLAAxZ1QfavaOkbIRfsqxNq9fG8tf5Ws6c="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.3.1":{"name":"lokka","version":"1.3.1","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"8bacaa154f9cbdc5439bec0b7a3f4ecf2048dcba","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.3.1","_shasum":"ee49850dc67f085984b4e3f0fb11745d57bf3fd7","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"ee49850dc67f085984b4e3f0fb11745d57bf3fd7","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.3.1.tgz","integrity":"sha512-lQjKRarRi2efAYKSbtrWNRa7xwr3d/cPwstnpXA35DS7wIVNiAocLE0D6yPOBMtsCYo9e8MJ4lRP5JTWCQMyJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDj+hi9wzgYfMZJGp2Hjjc+cq1PRub11/opUJpT63vnGAiEArrRs3hhu2uW9Onjb+fgi7Nh0t/9ZS5uvwTxkVtvYPfo="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.4.0":{"name":"lokka","version":"1.4.0","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"5b814ea8e7f597afce6c0e58c052a2e9f52da075","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.4.0","_shasum":"770b6782bcc6bd4c08792fbfae6038ba0c336f00","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"770b6782bcc6bd4c08792fbfae6038ba0c336f00","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.4.0.tgz","integrity":"sha512-p9V+iyMXfkq+8t388T5S1WSs5EK+gaAcnrnksc2mf6f3DTJ0sSwc0xyzTFDMBnQTZpRjVzTVIeorIpULWS5MyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICuNmeDnpBjXHnhjSdTJ4Ug/+EwK+cjtAvwIz7R0DHIwAiATloY8eSStw2i/OrZYThJ9oltz8DHuXF8T37mi4yyYrQ=="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.5.0":{"name":"lokka","version":"1.5.0","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"1734adc1ad4a07278d5cb402dae0d780850616b1","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.5.0","_shasum":"90b63b1934b1df26ac523a4d6b9cb843b2b8f8ef","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"90b63b1934b1df26ac523a4d6b9cb843b2b8f8ef","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.5.0.tgz","integrity":"sha512-3wi8jO6XaR8ZNNXQ97wDRZeMhzbJdDmnL2dBnMF8mGt8xvqXLe5s4jyx6XpTQeAQFyiF1dsdbZ0nN4O4QHLytQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZlcTfXOKaLso2kLR9Nnm1/Kku57xFc+3y9dw+prDJOgIhAO1cAUXArf2pVXembZemRxmzwcFtMhKek5kGZHH3CNol"}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.6.0":{"name":"lokka","version":"1.6.0","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"3e3b12b7b89363bb83366030e45c87fe05543ce5","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.6.0","_shasum":"60ff6b716860833173013d3d2f4bd82a0de56a32","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"60ff6b716860833173013d3d2f4bd82a0de56a32","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.6.0.tgz","integrity":"sha512-pPq9yHwKcxg7xcAG15z7RT6nsb2tU9XOMxNoN1O25HcpuEIQRlfeOj5NJY06tcSTqT4aKlAZ75Dj8YiZ0s+9EA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDuxmEBok+Y+wMuN3xfufprbt/EZbn3wxqv+2Bggx4WwIgfy+oTU8xlG2ZePVu0mP6CH0LjYJqLvRQ4bQowaOwu7s="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.6.1":{"name":"lokka","version":"1.6.1","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"2192d447d35a14af5d69f867d1bd9ddbab224cd9","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.6.1","_shasum":"9c0a51b930f16c4e2f5deacda9047d85c6a8abce","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"9c0a51b930f16c4e2f5deacda9047d85c6a8abce","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.6.1.tgz","integrity":"sha512-ZWc5akYZjNzI6v1coVU4m3OgbEA0cSNB32mTPHxBksPE5NsxwW1F1n0MYQHwJetdzsyBUpjJVeha7FAG8ocT6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpXwYR97ZHYBW9gne2DNkS9GlwPTwY6sl3Ti4EVNzZLgIhAJHauCYYw83oOSQw/jS14Me4uOfXVrLELH7N7RuwuhZf"}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}]},"1.7.0":{"name":"lokka","version":"1.7.0","description":"Simple JavaScript client for GraphQL","repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"keywords":["graphql","client","javascript"],"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./lib","lintfix":"eslint ./lib --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly"},"directories":{"lib":""},"devDependencies":{"mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x"},"dependencies":{"babel-runtime":"6.x.x","uuid":"2.x.x"},"gitHead":"4e4b97691056c209ee37a6e09ac7ac8345d61ea3","bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"homepage":"https://github.com/kadirahq/lokka#readme","_id":"lokka@1.7.0","_shasum":"ab2e8334612d2afd359aa89047547bd7de21046c","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.7.0","_npmUser":{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},"dist":{"shasum":"ab2e8334612d2afd359aa89047547bd7de21046c","tarball":"https://registry.npmjs.org/lokka/-/lokka-1.7.0.tgz","integrity":"sha512-4/XqX7LfkldHSDsHbl7alMdB0AINdsUTnqIcN6CwDa4srFpRR3iatx+6ULK2KDgS1JPKPDOTVuyhhoXZ+EgH7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJtWOQ20nDK0xp1bjMpij0iYyXMyzmJ7wXL96fr7XVfAiBdlkZpa8b6aT0JgW+3lMOhx51d9WjAA7t+JGzu7Jw5hg=="}]},"maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/lokka-1.7.0.tgz_1458118249950_0.25817336863838136"}}},"readme":"# lokka\n\nSimple GraphQL client for JavaScript. \n\nWorks on all the JavaScript environments including **Browser**, **NodeJS** and **React Native**.\n\n## TOC\n\n* [Installation](#installation)\n* [Usage](#usage)\n* [Core API](#core-api)\n* [Cache API](#cache-api)\n* [Demo Apps](#demo-apps)\n* [Future Development](#future-development)\n\n## Installation\n\nInstall lokka and a transport layer:\n\n```\nnpm i --save lokka lokka-transport-http\n```\n\n> Here we'll be using Lokka's [HTTP transport layer](https://github.com/kadirahq/lokka-transport-http) which is compatible with [express-graphql](https://github.com/graphql/express-graphql).\n\n## Usage\n\nWe can initialize a Lokka client like this:\n\n```js\nconst Lokka = require('lokka').Lokka;\nconst Transport = require('lokka-transport-http').Transport;\n\nconst client = new Lokka({\n  transport: new Transport('http://graphql-swapi.parseapp.com/')\n});\n```\n\n> Here we connect lokka to Facebook's [SWAPI GraphQL Demo](http://graphql-swapi.parseapp.com/).\n\n## Core API\n\n### Basic Querying\n\nThen you can invoke a simple query like this:\n(This query will get titles of all the Star Wars films)\n\n```js\nclient.query(`\n    {\n      allFilms {\n        films {\n          title\n        }\n      }\n    }\n`).then(result => {\n    console.log(result.allFilms);\n});\n```\n\n### Using Fragments\n\nYou can also create fragments and use inside queries.\n\nLet's define a fragment for the `Film` type.\n\n```js\nconst filmInfo = client.createFragment(`\n  fragment on Film {\n    title,\n    director,\n    releaseDate\n  }\n`);\n```\n\n> NOTE: Here's you don't need to give a name to the fragment\n\nLet's query all the films using the above fragment:\n\n```js\nclient.query(`\n  {\n    allFilms {\n      films {\n        ...${filmInfo}\n      }\n    }\n  }\n`).then(result => {\n  console.log(result.allFilms.films);\n});\n```\n\n> We can also use fragments inside fragments as well. Lokka will resolve fragments in nested fashion.\n\n### Mutations\n\nGraphQL Swapi API, does not have mutations. If we had mutations we could invoke them like this:\n\n```js\nclient.mutate(`\n    newFilm: createMovie(\n        title: \"Star Wars: The Force Awakens\",\n        director: \"J.J. Abrams\",\n        producers: [\n            \"J.J. Abrams\", \"Bryan Burk\", \"Kathleen Kennedy\"\n        ],\n        releaseDate: \"December 14, 2015\"\n    ) {\n        ...${filmInfo}\n    }\n`).then(response => {\n    console.log(response.newFilm);\n});\n```\n\n> Normally, when we are sending a GraphQL mutation we write it like below:\n>\n> ```\n> mutation someNameForRequest {\n>   newFilm: createMovie(...) {\n>     ...\n>   }\n> }\n> ```\n>\n> But with lokka, you don't need to write `mutation someNameForRequest` part. Lokka will add it for you.\n\n### Query Variables\n\nWe can use [query variables](https://learngraphql.com/basics/query-variables) when querying the schema.\n\n```js\nconst query = `\n  query sumNow($a: Int, $b: Int) {\n    sum(a: $a, b: $b)\n  }\n`;\n\nconst vars = {a: 10, b: 30};\nclient.query(query, vars).then(result => {\n  console.log(result.sum);\n});\n```\n\n## Cache API\n\nLokka has a built in cache. But it won't be used when you are invoking the core API. For that, you need to use following APIs:\n\n### Lokka.watchQuery()\n\nThis API allows to watch a query. First it will fetch the query and cache it. When the cache updated, it'll notify the change. Here's how to use it.\n\n```js\n// create a query with query variables (query variables are not mandatory)\nconst query = `\n  query _($message: String!) {\n    echo(message: $message)\n  }\n`;\n// object pass as the query variables\nconst vars = {message: 'Hello'};\n\n// create a lokka client with a transport\nconst client = new Lokka({...});\n\n// watch the query\nconst watchHandler = (err, payload) => {\n  if (err) {\n    console.error(err.message);\n    return;\n  }\n\n  console.log(payload.echo);\n};\nconst stop = client.watchQuery(query, vars, watchHandler);\n\n// stop watching after a minute\nsetTimeout(stop, 1000 * 60);\n```\n\n\n### Lokka.refetchQuery()\n\nRefetch a given query and update the cache:\n\n```js\nclient.watchQuery(query, {message: 'Hello Again'});\n```\n\nThis will notify all the watch handlers registered with `BlogSchema.watchQuery`.\n\n### Lokka.cache.getItemPayload()\n\nGet the item inside the cache for a query.\n\n```js\nconst payload = client.cache.getItemPayload(query, vars);\n```\n\n### Lokka.cache.setItemPayload()\n\nSet the item inside the cache. New value will be send to all registered watch handlers.\n\n```js\nclient.cache.setItemPayload(query, vars, payload);\n```\n\n> Payload must to identical to what's receive from the GraphQL.\n\n### Lokka.cache.removeItem()\n\nWith this we can remove the query and vars combo from the cache. But this won't notify watch handers.\n\n```js\nclient.cache.removeItem(query, vars);\n```\n\n### Lokka.cache.fireError()\n\nFire an error for all the registered watchHandlers.\n\n```js\nclient.cache.removeItem(query, vars, new Error('some error'));\n```\n\n## Demo Apps\n\nHave a look at some sample apps:\n\n* [Client Side App](https://github.com/kadira-samples/react-graphql-todos)\n* [React Native App](https://github.com/kadira-samples/react-native-graphql-demo)\n* [Blog App with Meteor](https://github.com/kadira-samples/meteor-graphql-demo)\n\n## Future Development\n\nIn this version of lokka, it's just a basic API where you can query against a GraphQL Schema. This API is stable.\n\nWe'll have more features in the future versions of lokka.\n\n* 1.x.x - Query/Mutate against a GraphQL schema.\n  * support for query variables.\n  * query watching support.\n  * [current] basic client side cache.\n* 2.x.x - Client side query validations.\n* 3.x.x - Client side smart cache.\n* 4.x.x - Subscriptions Support.\n","maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"time":{"modified":"2022-06-19T14:02:27.567Z","created":"2015-12-09T03:41:57.540Z","0.0.0":"2015-12-09T03:41:57.540Z","1.0.0":"2015-12-14T09:38:05.705Z","1.0.1":"2015-12-14T12:34:59.549Z","1.1.0":"2015-12-14T16:25:17.209Z","1.2.0":"2015-12-15T04:52:50.621Z","1.2.1":"2015-12-15T11:58:41.214Z","1.3.0":"2015-12-16T12:11:18.218Z","1.3.1":"2015-12-16T13:29:59.762Z","1.4.0":"2015-12-25T11:57:36.558Z","1.5.0":"2015-12-26T23:28:43.530Z","1.6.0":"2015-12-27T08:21:39.466Z","1.6.1":"2015-12-28T15:12:54.791Z","1.7.0":"2016-03-16T08:50:52.076Z"},"license":"MIT","readmeFilename":"README.md","description":"Simple JavaScript client for GraphQL","homepage":"https://github.com/kadirahq/lokka#readme","keywords":["graphql","client","javascript"],"repository":{"type":"git","url":"git+https://github.com/kadirahq/lokka.git"},"bugs":{"url":"https://github.com/kadirahq/lokka/issues"},"users":{"arunoda":true,"vashigor":true,"hckhanh":true,"estill01":true,"fmakareev":true}}