{"name":"apollo-link-batch","version":"1.1.11","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/index.js","module":"./lib/bundle.esm.js","typings":"./lib/index.d.ts","sideEffects":false,"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":"tsc && rollup -c","coverage":"jest --coverage","clean":"rimraf lib/* && rimraf coverage/*","filesize":"../../scripts/minify","lint":"tslint -c \"../../tslint.json\" -p tsconfig.json -c ../../tslint.json src/*.ts","prebuild":"npm run clean","prepare":"npm run build","test":"npm run lint && jest","watch":"tsc -w -p . & rollup -c -w"},"dependencies":{"apollo-link":"^1.2.10","tslib":"^1.9.3"},"devDependencies":{"@types/graphql":"14.0.7","@types/jest":"24.0.11","fetch-mock":"6.5.2","graphql":"14.1.1","graphql-tag":"2.10.1","jest":"24.5.0","proxyquire":"1.8.0","rimraf":"2.6.3","rollup":"1.6.0","ts-jest":"22.4.6","tslint":"5.13.1","typescript":"3.0.3"},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"],"testURL":"http://localhost"},"gitHead":"127ab65ba89185a82c492299c7853f02fdd7e570","_id":"apollo-link-batch@1.1.11","_nodeVersion":"8.12.0","_npmVersion":"lerna/3.13.1/node@v8.12.0+x64 (darwin)","dist":{"integrity":"sha512-HhGkwJ9rMNOPNioJxxLyozn5vJYeKtmmYVS3sEHHdxBSIbt0lc4+5FhlFXAPopYI/P39UuY/J/KiwpYGL0Tj+w==","shasum":"c93da3dfedc49429ee5a3dc5dc310fb634e49298","tarball":"http://registry-npm.ywwl.com/apollo-link-batch/download/apollo-link-batch-1.1.11.tgz","fileCount":22,"unpackedSize":76068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJciaqjCRA9TVsSAnZWagAAneQP/j6nCKiFP0eULiePXkC9\n1OWOmfLIkmU96wEQU4LSdLU46gdGdmX5j19G4TDMPTW2UshHjF4VQxSzPGmM\nqJuramE63VzTmvztBLEhWAmGzV/2Wsm9WUjuKaIXOWCTCNM8B8qP+SYDcC1i\nYEw/1UlF8+SgtOTIr46zDHvSRm1X1IHZtviS/AXQjRtWnTwx3o1tThaVStH/\nF1veSQG0ojb4hdJAaUpyNE+nMoqnpEF30fEM/tB5W/xgOZ+Cbbn+Bq1p4EEA\nL+NR5Y9G9h7uSfWwC7Q0uJmypJMccbqaJPIhVhbdFwblVY7wAdBvtGfSi2H8\nL6wlUIkvc2askL9AkuFWwxL5ABTAJcXadY2qTp2W6ufauf7MIBlgY7OgO5YM\n3OixcQsrZwng3CgmQh1BbihvqEcqT+vByebBMQ8T+1jRV6t5lAFjbyq0Guta\nncLpLPV87KjLT/vjVh8VurDPq2eGJdF+P3XsUXtfErM6HP0MDhWXUsWG2vAw\nIZGpC9T4Uu2elUPE/QZB9sqm1JyeTvInyn8rN8ThDpp29T5ANpR7gs7/po+k\nKF4IUz25D8/Hi9+tQYaJaQRkCTcrzTRqRCp5Dl5DDrGUDkiFYo6SqeOZC9L8\nrxXcSzgJcOqmof4GF6CCTPpvZtD8NI0yYEWU54pNY4eP8VV0XNEorlpf2YBg\nQ1QV\r\n=iR1Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXpTT749wpAdLv02qMiDJUWJpe212ujiWOYD7mqznr/AiAJr9jABuWNPuyiXwvepvtJBqBPNNWcz48nnbdf92oLng=="}],"size":12951,"noattachment":false,"key":"/apollo-link-batch/-/apollo-link-batch-1.1.11.tgz"},"maintainers":[{"email":"npm@apollographql.com","name":"apollo-bot"},{"email":"evanshauser@gmail.com","name":"evanshauser"},{"email":"james@meteor.com","name":"jbaxleyiii"}],"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-batch_1.1.11_1552525987103_0.5647591821133182"},"_hasShrinkwrap":false,"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":1552525987321,"_cnpm_publish_time":1552525987321,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.1.15"}}