{"_id":"@aaxis/lokka-transport-http","_rev":"3-2334c97a06359441ec99c8260e99b3a3","name":"@aaxis/lokka-transport-http","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@aaxis/lokka-transport-http","version":"1.0.0","description":"Isomorphic HTTP Transport for Lokka with Expose handle Request and Response","repository":{"type":"git","url":"git+https://github.com/vurtnec/lokka-transport-http.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"keywords":["lokka","transport","http","aaxis"],"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"},"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","portscanner":"1.x.x","express":"4.x.x","express-graphql":"0.4.x","graphql":"0.4.x","bluebird":"2.x.x","lokka":"1.x.x"},"dependencies":{"babel-runtime":"6.x.x","node-fetch":"^1.5.2","whatwg-fetch":"^1.0.0"},"peerDependencies":{"lokka":"1.x.x"},"gitHead":"8d4575ee81b66f28f38f98053567a0a2f2c64e2c","bugs":{"url":"https://github.com/vurtnec/lokka-transport-http/issues"},"homepage":"https://github.com/vurtnec/lokka-transport-http#readme","_id":"@aaxis/lokka-transport-http@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"},"dist":{"integrity":"sha512-uKCNZPx7rHl9zX5dfzsozrrSL24Qkon0jg35DA9YlKA7i2FLkzNAMdj4BZO9kycqzYO6ZRkUq6I635FYlnvNjw==","shasum":"2d630b535d63d7856c644636374b7e89c218748c","tarball":"https://registry.npmjs.org/@aaxis/lokka-transport-http/-/lokka-transport-http-1.0.0.tgz","fileCount":10,"unpackedSize":140393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+JqkCRA9TVsSAnZWagAAFs0P/1ZqaRjD7jF+piQCI0xx\nNW7MFwI5sxcxnsIK5/3V0oLqh4PgJCCV+7PSUBXTY2lfFWiXL4oqPSCokvmT\nPw9SJhgDvkXZxyVUOV26hWvnjVY9KjsPMbkOY21xp7HMZcDTGPKIJxTZu38B\nkr42ROc32e30eESHFbZkXJ7BQLmCI0lkSQ9X/0wYVbmBxy9sqwLrd+R0WzTc\nqVD+W+CAPf3n3AhuvFLKcADNLYa19qy/J9B2oNQeWZvTs3e9yGzOYrdHw1CC\nF/ev+Cq+E8OBRSxHNOEEIts78qQq0ziosSGwms791aiFp1hT8uHms0olQ9eq\nPWKdJQDMbjrc4edA4gDVkRvfABw9nfm4A5fhV3LxifWjRQmV2MqdCkiRzRqu\nJNbmoT+yOJ6RzMJlMfw1YGOtVNoZa+cWcDyZZYHhaCxWdYQhQuKh72yC8P/s\nEJNN9+eQXEjux+b00YEY+gao7Br0RhA2HY3BysO//Xb67bDfxi0OzglUQWSZ\nKzXm8a2FXgQlpdqBmKepx3nFy0PDx53rX2aDJW+MTdOSsvBXWjCSeJZOpgmD\nUdsoQ/9ue4DO/r6trPgipjvhbZ9oDmvoazcfeXUuRpwvtHpUTyx+6drd+1DW\n6iMpzfahZopDl3k6geqeLkhaT8d00cxSViPuAsQH5N7WtNuSFgcwW7VxDiBF\nDhBe\r\n=Ccaz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRF/U95so2+eJv+JZkmDYJHMb+cCezu8rf4jAnWPlvKAiBA7/ad9P9Bj/oC46clDaJQ9SUK+6ytpZTqVF6Ey3PSHg=="}]},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lokka-transport-http_1.0.0_1576573604016_0.5486683908833823"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aaxis/lokka-transport-http","version":"1.0.1","description":"Isomorphic HTTP Transport for Lokka with Expose handle Request and Response","repository":{"type":"git","url":"git+https://github.com/vurtnec/lokka-transport-http.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"keywords":["lokka","transport","http","aaxis"],"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"},"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","portscanner":"1.x.x","express":"4.x.x","express-graphql":"0.4.x","graphql":"0.4.x","bluebird":"2.x.x","lokka":"1.x.x"},"dependencies":{"babel-runtime":"6.x.x","node-fetch":"^1.5.2","whatwg-fetch":"^1.0.0"},"peerDependencies":{"lokka":"1.x.x"},"gitHead":"8d4575ee81b66f28f38f98053567a0a2f2c64e2c","bugs":{"url":"https://github.com/vurtnec/lokka-transport-http/issues"},"homepage":"https://github.com/vurtnec/lokka-transport-http#readme","_id":"@aaxis/lokka-transport-http@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"},"dist":{"integrity":"sha512-zZYawDfzmX/8jQ5sFe8eBwky9brmPTiZrX2hB+Q4uf31m5ytTRIuXdHhUts3INkWGWOlEswJFTHK1QUSQlAqeg==","shasum":"58c742f40ea4eae0b969cf39f030aacf1265cf60","tarball":"https://registry.npmjs.org/@aaxis/lokka-transport-http/-/lokka-transport-http-1.0.1.tgz","fileCount":10,"unpackedSize":140359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+J3qCRA9TVsSAnZWagAAp7MP/3W6BSybHVQduTbEYrAr\nKCQrQDPC55ukABOEof6Ir9DZtFGydsxjDm2+ozHQISdBKtY5Bmf4wT6VNxXx\nl5S86hND4WKiX5ae5yvzkyS5WemildME/YqX5rccznZDstnO+pgX7QI8OKIz\n/s9nEdZdaqHTkq2X4DIcWH8fK9wK53yjlhbSOcjWpLKNX8I3Z29vevtLUEtn\nnMOzeS+B6cfpSMAJ2UWWN5Wpt8A8knXM6MYh420LDhw3pA1tBKAfgenH9TIU\ndjte5PhksusPbB1MWYOzgqzk5Sxd/qXPcKHNPzqC1f70QJ0Vd6BWN9Mnud8k\n5CA0COy5Q7WE21099/+wujg9je76rsd1epZWxZRqiyP/PViw51a1sRm4KM7o\n/Q51l3fLlG3AKaNWdmMGbS2g1Sp+bLePoHM9DekOTfpArDkJY/s4Zy7Pdtbj\nlLFqZmqV9dJzzkU0Jc79O5FECaQV1Lp7CfKciXorlutzUEseWfjTW/Crl9He\nU4LjWzYEkLPc0JTwrcINDSBULUlhA9iBB7wTXI+vIxbvbGPxmnFDaSvNtRfX\noNYJ2zCyUPfB+rPlpUiSlWjvun6k5PxMyaK7vlmyHxD6oCFef0zBpT6IY6OA\nMtJA67Rx+nTTFF0uiJCAzcgibafJhwnZExylQDFe87S34orHGNwVB/pcUuPm\nlhwl\r\n=wx//\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtwm2JZLiijIZShBjZlQdn21qa6u+utkVMyjuImmlj6AiBvewJvvw+Rh6JJjgTA4szTmHiHpB7CsCoeXE3UbL6pfg=="}]},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lokka-transport-http_1.0.1_1576574441676_0.5874622283162612"},"_hasShrinkwrap":false},"1.0.2":{"name":"@aaxis/lokka-transport-http","version":"1.0.2","description":"Isomorphic HTTP Transport for Lokka with Expose handle Request and Response","repository":{"type":"git","url":"git+https://github.com/vurtnec/lokka-transport-http.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner lib/**/__tests__/**/*.js"},"keywords":["lokka","transport","http","aaxis"],"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"},"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","portscanner":"1.x.x","express":"4.x.x","express-graphql":"0.4.x","graphql":"0.4.x","bluebird":"2.x.x","lokka":"1.x.x"},"dependencies":{"babel-runtime":"6.x.x","node-fetch":"^1.5.2","whatwg-fetch":"^1.0.0"},"peerDependencies":{"lokka":"1.x.x"},"gitHead":"1c3aaee579a826876af59344f211e7bb96507129","bugs":{"url":"https://github.com/vurtnec/lokka-transport-http/issues"},"homepage":"https://github.com/vurtnec/lokka-transport-http#readme","_id":"@aaxis/lokka-transport-http@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"},"dist":{"integrity":"sha512-2AhjecIdqjUjtRe5US55yES7PHpbEfLEYk6aUczbPjvxtGfOyIKEvQZC5e9e/+pk6zmQWODwhLtdIqM3+XLLzQ==","shasum":"cc45ca86bb1ef8dae6039ae0bd61fb3cd6c661a1","tarball":"https://registry.npmjs.org/@aaxis/lokka-transport-http/-/lokka-transport-http-1.0.2.tgz","fileCount":10,"unpackedSize":140054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+ZtOCRA9TVsSAnZWagAAJHQP/3dN/VVpBVXIhklP0qXk\nbYxeYtiw/mjd5x5qPeehFdcI6kQ4zbYM+ESHsMBreWTfNc32bU5L5afR0h+u\n6vEPDoxJJ9G1mvE8hycxnL/962YA+CoEuD9Zd5uSrELMgO377ngZzQTvELw0\nGgkCwt+yRrpvYhAppbTnS1ksj5J/yFyIPgz85EH9A03PdOpe940OgXDe4YvO\nnM+DxXOus4/RWGNm4rJ7trEe0uPCoADVtcQTc4Pu+xyQnIx7JyU8pC2dkpvP\nCqwmT9vo/U4RTjH5myjcYWeFGec76xhfq1L3XpZ4eKGZwHmt4VDoFtAE6p4Q\nG0a8UaQsfZ6biUCCtLRZxwZgYZKlzkAlFsw6bv78U14VQctqMzQ1u2nDDyat\nPUz2p39CC2wI7GTWpKt2bz8LOMjt3uqq7xgBjyPBqP4B/wd9NjeIBFwhqT+A\nVGnsCedwYvhaoNZeQ+wHwBylbu7l0BQWCAH86tpchbuZQyvMgpfn2fpoVTxQ\nCE3XN7MqdAz78tr/uynRM5fj0SxVsBXRwBoeaPVkERPXWecLOnfKZWQDPhIy\nMuOFKMLDLg6Tg/qNuRktFuOKA3LEBAz4S5ZIzBQ1jVd3KxvYF2OA61FwIse5\nFzTvbXPToj0EN5t34k7oBV8vlk3B8AJrWwib5Su3N3F1vx4MnLLrvyruhoDf\n6z6m\r\n=cON0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeli7N1+oO1HgF9XWPHh6zG4mvbmK1LxMOyDSDAoLwQQIgXD9VgZjl8A+WaUMLt1YrIRvRwQESp5gfSMPG793bGJU="}]},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lokka-transport-http_1.0.2_1576639310283_0.4496974312879749"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-17T09:06:43.983Z","1.0.0":"2019-12-17T09:06:44.221Z","modified":"2022-04-04T10:56:27.447Z","1.0.1":"2019-12-17T09:20:41.775Z","1.0.2":"2019-12-18T03:21:50.493Z"},"maintainers":[{"name":"aaxis","email":"zacharyhou@aaxiscommerce.com"}],"description":"Isomorphic HTTP Transport for Lokka with Expose handle Request and Response","homepage":"https://github.com/vurtnec/lokka-transport-http#readme","keywords":["lokka","transport","http","aaxis"],"repository":{"type":"git","url":"git+https://github.com/vurtnec/lokka-transport-http.git"},"bugs":{"url":"https://github.com/vurtnec/lokka-transport-http/issues"},"license":"MIT","readme":"# @aaxis/lokka-transport-http\n\nIsomorphic HTTP Transport Layer with Expose handle Request and Response \n\n---\n\nThis is a compatible transport layer for [Lokka](https://github.com/kadirahq/lokka).\n\n## Basic Usage\n\nInstall the package:\n\n```\nnpm i --save @aaxis/lokka-transport-http\nnpm i --save lokka\n```\n\n```js\nimport HttpTransport from '@aaxis/lokka-transport-http';\nconst transport = new HttpTransport('http://graphql-swapi.parseapp.com/');\ntransport.send(`\n    {\n      allFilms {\n        films {\n          title\n        }\n      }\n    }\n`).then(response => {\n    console.log(JSON.stringify(response, null, 2));\n});\n```\n\n## Send Custom Request & Response\n\nIt's possible to send custom headers like this:\n\n```js\nconst headers = {\n    'my-headers': 'some-value'\n};\nconst transport = new HttpTransport('/graphql', {\n    headers,\n    buildOptions: () => {\n      // build you custom header here\n    },\n    formatResponse: (response) => {\n      // format you response here\n    }\n})\n```\n\n## Authentication\n\nThis package does not handle authentication information for you. But it'll let you interact with your app's existing authentication mechanism.\n\n* If you already have an authorized cookie, it'll be sent with the HTTP request. (supports CORS)\n* You can also set a custom `Authorization` [header]((https://www.npmjs.com/package/basic-auth-header) to implement [basic-auth](https://www.npmjs.com/package/basic-auth) support.\n\n## Error Handling\n\nBy default it will create and throw a new `Error` object using the first GraphQL error. Error handling can be customized with the `handleErrors` option. Check the deafult error handler in `lib/index.js` for an example.\n","readmeFilename":"README.md"}