{"name":"apollo-link-batch","version":"1.0.2","description":"Apollo Link that performs batching and operation on batched Operations","author":{"name":"Evans Hauser","email":"evanshauser@gmail.com"},"contributors":[{"name":"James Baxley","email":"james@meteor.com"},{"name":"Jonas Helfer","email":"jonas@helfer.email"},{"name":"jon wong","email":"j@jnwng.com"},{"name":"Sashko Stubailo","email":"sashko@stubailo.com"}],"license":"MIT","main":"./lib/bundle.umd.js","module":"./lib/index.js","jsnext:main":"./lib/index.js","typings":"./lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-link.git"},"bugs":{"url":"https://github.com/apollographql/apollo-link/issues"},"homepage":"https://github.com/apollographql/apollo-link#readme","scripts":{"build:browser":"browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i apollo-link && npm run minify:browser","build":"tsc -p .","bundle":"rollup -c","coverage":"jest --coverage","clean":"rimraf lib/* && rimraf coverage/*","filesize":"npm run build && npm run build:browser","lint":"tslint --type-check -p tsconfig.json -c ../../tslint.json src/*.ts","minify:browser":"uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js","postbuild":"npm run bundle","prebuild":"npm run clean","prepublishOnly":"npm run clean && npm run build","test":"jest","watch":"tsc -w -p ."},"dependencies":{"apollo-link":"^1.0.4"},"devDependencies":{"@types/graphql":"0.11.7","@types/jest":"21.1.8","browserify":"14.5.0","fetch-mock":"5.13.1","graphql":"0.11.7","graphql-tag":"2.5.0","jest":"21.2.1","proxyquire":"1.8.0","rimraf":"2.6.1","rollup":"0.52.0","ts-jest":"21.2.3","tslint":"5.8.0","typescript":"2.6.2","uglify-js":"3.2.0"},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"]},"_id":"apollo-link-batch@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"jbaxleyiii","email":"james@meteor.com"},"dist":{"integrity":"sha512-13a48xuPbOL+cnPM8e5AjmYbXFfiQfHrmvkE7+ePB3C8Fl2y0Iql4TRB/2RWYMsAs9WS5vC2YDHA2EbIffJdxw==","shasum":"04362f09477142418527e164f22146e0d92af5ef","tarball":"http://registry-npm.ywwl.com/apollo-link-batch/download/apollo-link-batch-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA4mTE2X08lxrbz+WenS1PfUNgkkf+YxwemBZhUYzi6QIhAKyAr3Qo1rami7sCrqSNHXRolAhImdZH2ZV9jCnbdKRL"}],"size":9804,"noattachment":false,"key":"/apollo-link-batch/-/apollo-link-batch-1.0.2.tgz"},"maintainers":[{"name":"evanshauser","email":"evanshauser@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"mdg","email":"npm@meteor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-batch-1.0.2.tgz_1512052414744_0.11491108103655279"},"directories":{},"readme":"# Batch Link\r\n\r\n## Purpose\r\nAn Apollo Link to allow batching of multiple operations into a single request. For example, the `apollo-link-batch-http` uses this link to batch operations into a single http request.\r\n\r\n## Installation\r\n\r\n`npm install apollo-link-batch --save`\r\n\r\n## Usage\r\n```js\r\nimport { BatchLink } from \"apollo-link-batch\";\r\n\r\nconst link = new BatchLink({\r\n  batchHandler: (operations: Operation[], forward: NextLink) => Observable<FetchResult[]> | null\r\n});\r\n```\r\n\r\n## Options\r\nBatch Link takes an object with three options on it to customize the behavior of the link. The only required option is the batchHandler function\r\n\r\n|name|value|default|required|\r\n|---|---|---|---|\r\n|batchInterval|number|10|false|\r\n|batchMax|number|0|false|\r\n|batchHandler|(operations: Operation[], forward: NextLink) => Observable<FetchResult[]> | null|NA|true|\r\n\r\n## Context\r\nThe Batch Link does not use the context for anything\r\n","publish_time":1512052415708,"_cnpm_publish_time":1512052415708,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.1.15"}}