{"_id":"grapheetee","_rev":"1-e41fdbabd3347f659e457625e3b5fca5","name":"grapheetee","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"grapheetee","version":"0.1.0","description":"Fetch based GraphQL client.","main":"lib/GraphQlClient.js","scripts":{"build":"rollup -c","coverage":"nyc --reporter=text --reporter=lcov mocha","lint":"eslint . && prettier --check '**/*.js'","prepublishOnly":"npm run build","test":"mocha"},"keywords":["GraphQL","fetch","client"],"author":{"name":"Alex J Burke @alexjeffburke","email":"ajb@one.com"},"repository":{"type":"git","url":"git://github.com/One-com/grapheetee.git"},"license":"BSD-3-Clause","devDependencies":{"eslint":"^6.6.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-mocha":"^6.2.1","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","esm":"^3.2.25","fetchception":"^1.1.0","mocha":"^6.2.2","nyc":"^14.1.1","prettier":"^1.19.1","rollup":"^1.27.5","rollup-plugin-commonjs":"^10.1.0","unexpected":"^11.8.1","unexpected-sinon":"^10.11.2"},"dependencies":{"createerror":"^1.1.0","form-data":"^3.0.0","httperrors":"^2.0.1","lodash.set":"^4.3.2","node-fetch":"^2.6.0","sinon":"^7.5.0"},"gitHead":"923c1bc36068c849420c893cc37ad471bfa64e78","bugs":{"url":"https://github.com/One-com/grapheetee/issues"},"homepage":"https://github.com/One-com/grapheetee#readme","_id":"grapheetee@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"alexjeffburke","email":"alex@alexjeffburke.com"},"dist":{"integrity":"sha512-eSLB/WZPETBN7Z9Zg/vgxDxodQ+mqdQLeCOoL3WC5oHA91B2dFifldFSYzlZXUBwLlNx1opeZMRmRR+pkXRlWg==","shasum":"b066dd080bdf959beca9abc296903d24246c4535","tarball":"https://registry.npmjs.org/grapheetee/-/grapheetee-0.1.0.tgz","fileCount":14,"unpackedSize":42460,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd392MCRA9TVsSAnZWagAAHxcP/1Sxh88Duf9wFubDNGS/\n2bobtYaS7q+Ee2OCXrHLmauLiyQsgAnUWPzkCAYzMmZfSe/15UWjlUpkb2nK\nHZtypvAvOWTgE06j7EYMSa0avOEtavWi00fdmRch53WUNZ/yW103oxjD6zGk\nPNFTFpc+7hWStUSG3K9uPn/N7qQ88U7juRZakxkZljeT/U1LLjBZVze9cAHs\niW4WiHUFGyRG96kZcYfymDL06stN7fNUjXaev0OoLZsezNXbwDVStSG9yfSO\nbjM0dz5B5MU8LeDrm3lKjD/3hR2FflMZ6PVsYWx52yOdidoJYKSrcuTdxsQ5\nm2rCYlQ1VaSx78OL6DheUnaSn0l7OCeixWxhDeeRK7A0jhiYAg/0oEFOOcRA\nfACOT4bkigWWnyNFsXwkHcFg+qAPvmnS5+ZjpuY6JGPw7E93fF5mp5pd4pqp\nD/PCXfgF+FHUYeX4M2GBrq7GuK7az7Y02VsdXV9ezx3pYxoQe6eXVFdgGXFF\nww/i2ZFcTEm51Va3bq0zjAdRyODETZWfpwEPEuMfKtWJoN+NAIveaY+WgBjk\nDQc9k+d1s5nXhsmkbYWoOK7aoOVqeT2vsNxVUWa9St09g9iaIXBRMM3MWR6O\nhsEdeBdVH5ULDB5SvXiesU5mFh/TBkYay8jyR/DV9YN8/WzBTxQsvttiCr9l\nUo4v\r\n=oQy/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVt/VS1bjDZH8X9CBPhV2r59Lrap5OoFDYjkithZvuMgIgNmrW1ZGXRWVOT+6M5E5AZ3IFlmM6wn92x3hzB9F5bP8="}]},"maintainers":[{"name":"alexjeffburke","email":"alex@alexjeffburke.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grapheetee_0.1.0_1574952331797_0.19351020719465573"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-28T14:45:31.795Z","0.1.0":"2019-11-28T14:45:31.894Z","modified":"2022-05-04T02:27:56.942Z"},"maintainers":[{"name":"alexjeffburke","email":"alex@alexjeffburke.com"}],"description":"Fetch based GraphQL client.","homepage":"https://github.com/One-com/grapheetee#readme","keywords":["GraphQL","fetch","client"],"repository":{"type":"git","url":"git://github.com/One-com/grapheetee.git"},"author":{"name":"Alex J Burke @alexjeffburke","email":"ajb@one.com"},"bugs":{"url":"https://github.com/One-com/grapheetee/issues"},"license":"BSD-3-Clause","readme":"# Grapheetee\n\nThis module is a clean fetch based GraphQL client.\n\n# Usage\n\nOnce installed, the module exposes a constructor at the top-level\nthat is ready to be instantiated in the browser:\n\n```js\nimport Grapheetee from \"grapheetee\";\n\nconst client = new Grapheetee({ url: \"/api\" });\n```\n\nNote that a base `url` must be supplied as an option to the constructor.\n\n### Node\n\nSince the client is fetch based, libraries that provide these interfaces\nmust be provided when the module is used on node. These details are handled\nautomatically by providing a node ready version of the library:\n\n```js\nconst Grapheetee = require(\"grapheetee/node\");\n\nconst instance = new Grapheetee({ url: \"/my/internal/service\" });\n```\n\n### Requests\n\nRequests are made by calling the `query()` or `mutation()` method on\nthe client instance:\n\n```js\ninstance.query({\n  query: \"...\",\n  valariables: {\n    /* optional */\n  }\n});\n\ninstance.mutation({\n  query: \"...\",\n  valariables: {\n    /* optional */\n  },\n  uploads: [\n    /* optional */\n  ]\n});\n```\n\n## License\n\ngrapheetee is licensed under a standard 3-clause BSD\nlicense -- see the `LICENSE`-file for details.\n","readmeFilename":"README.md"}