{"_id":"@coralproject/graphql-anywhere-optimized","_rev":"18-e0389c4d63152d43a4bb5ea9c6afb65b","name":"@coralproject/graphql-anywhere-optimized","time":{"modified":"2022-05-12T17:32:11.024Z","created":"2017-12-04T21:06:38.456Z","3.2.0":"2017-12-04T21:06:38.456Z","0.1.0":"2017-12-04T21:16:22.541Z","0.1.1":"2017-12-05T18:18:26.436Z","0.1.2":"2017-12-05T18:22:35.062Z","0.1.3":"2017-12-05T18:34:43.751Z","0.1.4":"2017-12-07T16:44:06.401Z","0.1.5":"2017-12-07T17:36:44.739Z","0.1.6":"2018-03-12T22:41:02.601Z"},"maintainers":[{"email":"kabeaty@gmail.com","name":"kabeaty"},{"email":"me@wyattjoh.ca","name":"wyattjoh"},{"email":"vinh@vinh.tech","name":"wikiwi"},{"email":"jessiekrushing@gmail.com","name":"immber"},{"email":"tessathornton@gmail.com","name":"tessat"},{"email":"nick.funk@outlook.com","name":"nick.funk"}],"dist-tags":{"latest":"0.1.6"},"description":"Fork of graphql-anywhere with custom optimizations","readme":"# graphql-anywhere-optimized\n\nRun a GraphQL query anywhere, without a GraphQL server or a schema. Just pass in one resolver. Use it together with [graphql-tag](https://github.com/apollographql/graphql-tag).\n\n```\nnpm install graphql-anywhere graphql-tag\n```\n\nI think there are a lot of potentially exciting use cases for a completely standalone and schema-less GraphQL execution engine. We use it in [Apollo Client](https://github.com/apollostack/apollo-client) to read data from a Redux store with GraphQL.\n\nLet's come up with some more ideas - below are some use cases to get you started!\n\n## API\n\n```js\nimport graphql from 'graphql-anywhere'\n\ngraphql(resolver, document, rootValue?, context?, variables?, options?)\n```\n\n- `resolver`: A single resolver, called for every field on the query.\n    - Signature is: `(fieldName, rootValue, args, context, info) => any`\n- `document`: A GraphQL document, as generated by the template literal from `graphql-tag`\n- `rootValue`: The root value passed to the resolver when executing the root fields\n- `context`: A context object passed to the resolver for every field\n- `variables`: A dictionary of variables for the query\n- `options`: Options for execution\n\n#### Options\n\nThe last argument to the `graphql` function is a set of `graphql-anywhere`-specific options.\n\n- `resultMapper`: Transform field results after execution.\n    - Signature is: `(resultFields, resultRoot) => any`\n- `fragmentMatcher`: Decide whether to execute a fragment. Default is to always execute all fragments.\n    - Signature is: `(rootValue, typeCondition, context) => boolean`\n\n#### Resolver info\n\n`info`, the 5th argument to the resolver, is an object with supplementary information about execution. Send a PR or open an issue if you need additional information here.\n\n- `isLeaf`: A boolean that is `true` if this resolver is for a leaf field of the query, i.e. one that doesn't have a sub-selection.\n- `resultKey`: The key the result of this field will be put under. It's either the field name from the query, or the field alias.\n- `directives`: An object with information about all directives on this field. It's an object of the format `{ [directiveName]: { [argumentName]: value }}`. So for example a field with `@myDirective(hello: \"world\")` will be passed as `{ myDirective: { hello: 'world' }}`. Note that fields can't have multiple directives with the same name, as written in the GraphQL spec.\n\n\n## Utilities\n\nSee http://dev.apollodata.com/react/fragments.html for examples of how you might use these.\n\n```js\nimport { filter } from 'graphql-anywhere'\n\nfilter(doc, data);\n```\n\n- `doc`: a GraphQL document, as generated by the template literal from `graphql-tag`, typically either a query or a fragment.\n- `data`: an object of data to be filtered by the `doc`\n\nFilter `data` according to `doc`.\n\n\n```js\nimport { check } from 'graphql-anywhere'\n\ncheck(doc, data);\n```\n\n- `doc`: a GraphQL document, as generated by the template literal from `graphql-tag`, typically either a query or a fragment.\n- `data`: an object of data, as may have been filtered by `doc`.\n\nCheck that `data` is of the form defined by the query or fragment. Throw an exception if not.\n\n```js\nimport { propType } from 'graphql-anywhere'\n\nX.propTypes = {\n  foo: propType(doc),\n  bar: propType(doc).isRequired,\n}\n\n```\n\n- `doc`: a GraphQL document, as generated by the template literal from `graphql-tag`, typically either a query or a fragment.\n\nGenerate a React `propType` checking function to ensure that the passed prop is in the right form.\n\n### Supported GraphQL features\n\nWhy do you even need a library for this? Well, running a GraphQL query isn't as simple as just traversing the AST, since there are some pretty neat features that make the language a bit more complex to execute.\n\n- [x] Arguments\n- [x] Variables\n- [x] Aliases\n- [x] Fragments, both named and inline\n- [x] `@skip` and `@include` directives\n\nIf you come across a GraphQL feature not supported here, please file an issue.\n\n<a id=\"filter\"></a>\n## Example: Filter a nested object\n\n```js\nimport gql from 'graphql-tag';\nimport graphql from 'graphql-anywhere';\n\n// I don't need all this stuff!\nconst gitHubAPIResponse = {\n  \"url\": \"https://api.github.com/repos/octocat/Hello-World/issues/1347\",\n  \"title\": \"Found a bug\",\n  \"body\": \"I'm having a problem with this.\",\n  \"user\": {\n    \"login\": \"octocat\",\n    \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n    \"url\": \"https://api.github.com/users/octocat\",\n  },\n  \"labels\": [\n    {\n      \"url\": \"https://api.github.com/repos/octocat/Hello-World/labels/bug\",\n      \"name\": \"bug\",\n      \"color\": \"f29513\"\n    }\n  ],\n};\n\n// Write a query that gets just the fields we want\nconst query = gql`\n  {\n    title\n    user {\n      login\n    }\n    labels {\n      name\n    }\n  }\n`;\n\n// Define a resolver that just returns a property\nconst resolver = (fieldName, root) => root[fieldName];\n\n// Filter the data!\nconst result = graphql(\n  resolver,\n  query,\n  gitHubAPIResponse\n);\n\nassert.deepEqual(result, {\n  \"title\": \"Found a bug\",\n  \"user\": {\n    \"login\": \"octocat\",\n  },\n  \"labels\": [\n    {\n      \"name\": \"bug\",\n    }\n  ],\n});\n```\n\n<a id=\"mock\"></a>\n## Example: Generate mock data\n\n```js\n// Write a query where the fields are types, but we alias them\nconst query = gql`\n  {\n    author {\n      name: string\n      age: int\n      address {\n        state: string\n      }\n    }\n  }\n`;\n\n// Define a resolver that uses the field name to determine the type\n// Note that we get the actual name, not the alias, but the alias\n// is used to determine the location in the response\nconst resolver = (fieldName) => ({\n  string: 'This is a string',\n  int: 5,\n}[fieldName] || 'continue');\n\n// Generate the object!\nconst result = graphql(\n  resolver,\n  query\n);\n\nassert.deepEqual(result, {\n  author: {\n    name: 'This is a string',\n    age: 5,\n    address: {\n      state: 'This is a string',\n    },\n  },\n});\n```\n<a id=\"normalizr\"></a>\n## Example: Read from a Redux store generated with Normalizr\n\n```js\nconst data = {\n  result: [1, 2],\n  entities: {\n    articles: {\n      1: { id: 1, title: 'Some Article', author: 1 },\n      2: { id: 2, title: 'Other Article', author: 1 },\n    },\n    users: {\n      1: { id: 1, name: 'Dan' },\n    },\n  },\n};\n\nconst query = gql`\n  {\n    result {\n      title\n      author {\n        name\n      }\n    }\n  }\n`;\n\nconst schema = {\n  articles: {\n    author: 'users',\n  },\n};\n\n// This resolver is a bit more complex than others, since it has to\n// correctly handle the root object, values by ID, and scalar leafs.\nconst resolver = (fieldName, rootValue, args, context): any => {\n  if (!rootValue) {\n    return context.result.map((id) => assign({}, context.entities.articles[id], {\n      __typename: 'articles',\n    }));\n  }\n\n  const typename = rootValue.__typename;\n  // If this field is a reference according to the schema\n  if (typename && schema[typename] && schema[typename][fieldName]) {\n    // Get the target type, and get it from entities by ID\n    const targetType: string = schema[typename][fieldName];\n    return assign({}, context.entities[targetType][rootValue[fieldName]], {\n      __typename: targetType,\n    });\n  }\n\n  // This field is just a scalar\n  return rootValue[fieldName];\n};\n\nconst result = graphql(\n  resolver,\n  query,\n  null,\n  data // pass data as context since we have to access it all the time\n);\n\n// This is the non-normalized data, with only the fields we asked for in our query!\nassert.deepEqual(result, {\n  result: [\n    {\n      title: 'Some Article',\n      author: {\n        name: 'Dan',\n      },\n    },\n    {\n      title: 'Other Article',\n      author: {\n        name: 'Dan',\n      },\n    },\n  ],\n});\n```\n\n## Example: Generate React components\n\nYou can use the `resultMapper` option to convert your results into anything you like. In this case, we convert the result fields into children for a React component:\n\n```js\nconst resolver = (fieldName, root, args) => {\n  if (fieldName === 'text') {\n    return args.value;\n  }\n\n  return createElement(fieldName, args);\n};\n\nconst reactMapper = (childObj, root) => {\n  const reactChildren = Object.keys(childObj).map(key => childObj[key]);\n\n  if (root) {\n    return cloneElement(root, root.props, ...reactChildren);\n  }\n\n  return reactChildren[0];\n};\n\nfunction gqlToReact(query): any {\n  return graphql(\n    resolver,\n    query,\n    '',\n    null,\n    null,\n    { resultMapper: reactMapper },\n  );\n}\n\nconst query = gql`\n  {\n    div {\n      s1: span(id: \"my-id\") {\n        text(value: \"This is text\")\n      }\n      s2: span\n    }\n  }\n`;\n\nassert.equal(\n  renderToStaticMarkup(gqlToReact(query)),\n  '<div><span id=\"my-id\">This is text</span><span></span></div>'\n);\n```\n","versions":{"0.1.0":{"name":"@coralproject/graphql-anywhere-optimized","version":"0.1.0","description":"Fork of graphql-anywhere with custom optimizations","main":"./lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"pretest":"npm run compile","test":"npm run testonly --","posttest":"npm run lint","compile":"tsc","watch":"tsc -w","prepublish":"npm run compile","lint":"grunt tslint","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace lib/test/tests.js","postcoverage":"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info","testonly":"mocha --reporter spec --full-trace lib/test/tests.js"},"repository":{"type":"git","url":"git+https://github.com/cvle/graphql-anywhere.git"},"keywords":["ecmascript","es2015","jsnext","javascript","relay","npm","react"],"author":{"name":"The Coral Project Team","email":"coral@mozillafoundation.org"},"license":"MIT","devDependencies":{"@types/chai":"3.5.2","@types/isomorphic-fetch":"0.0.34","@types/graphql":"^0.10.0","@types/lodash":"^4.14.37","@types/mocha":"^2.2.32","@types/node":"^8.0.0","@types/react":"^15.0.14","@types/react-dom":"^15.5.0","async":"^2.0.0","chai":"^4.1.0","chai-as-promised":"^7.0.0","es6-promise":"^4.0.5","graphql":"^0.10.0","graphql-tag":"^2.0.0","grunt":"1.0.1","grunt-tslint":"5.0.0","isomorphic-fetch":"^2.2.1","istanbul":"^0.4.5","mocha":"^3.0.0","react":"^15.3.1","react-dom":"^15.3.1","remap-istanbul":"^0.8.0","source-map-support":"^0.4.0","tslint":"^5.0.0","typescript":"^2.2.1"},"gitHead":"3f5d9e5c619ac4c4065af83abd7f76b84fb81e7c","bugs":{"url":"https://github.com/cvle/graphql-anywhere/issues"},"homepage":"https://github.com/cvle/graphql-anywhere#readme","_id":"@coralproject/graphql-anywhere-optimized@0.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"wikiwi","email":"vinh@wikiwi.io"},"dist":{"integrity":"sha512-6Kaz3gP+ki5JbCunMaIUzdUI7hJy5GwgeKK5G9Kh3HLr8KXCn7vNnx2saB53u7zK8Y0wrmH39uFvcMhMkBZVbA==","shasum":"3456f16f790d8593b0ca4355910578ab1c6edab5","tarball":"https://registry.npmjs.org/@coralproject/graphql-anywhere-optimized/-/graphql-anywhere-optimized-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICkKgJhwrDRw0F4GKUQINtR1GNSDFtP3vZ+ppfI9DMUMAiEAl1F5tKvdHk7sJpugatmH9dlhMxPBcgKodEiRjUZJZQs="}]},"maintainers":[{"name":"wikiwi","email":"vinh@wikiwi.io"},{"name":"wyattjoh","email":"wyattjoh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-anywhere-optimized-0.1.0.tgz_1512422181450_0.8126877022441477"},"directories":{}},"0.1.1":{"name":"@coralproject/graphql-anywhere-optimized","version":"0.1.1","description":"Fork of graphql-anywhere with custom optimizations","main":"./lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"pretest":"npm run compile","test":"npm run testonly --","posttest":"npm run lint","compile":"tsc","watch":"tsc -w","prepublish":"npm run compile","lint":"grunt tslint","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace lib/test/tests.js","postcoverage":"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info","testonly":"mocha --reporter spec --full-trace lib/test/tests.js"},"repository":{"type":"git","url":"git+https://github.com/cvle/graphql-anywhere.git"},"keywords":["ecmascript","es2015","jsnext","javascript","relay","npm","react"],"author":{"name":"The Coral Project Team","email":"coral@mozillafoundation.org"},"license":"MIT","devDependencies":{"@types/chai":"3.5.2","@types/isomorphic-fetch":"0.0.34","@types/graphql":"^0.10.0","@types/lodash":"^4.14.37","@types/mocha":"^2.2.32","@types/node":"^8.0.0","@types/react":"^15.0.14","@types/react-dom":"^15.5.0","async":"^2.0.0","chai":"^4.1.0","chai-as-promised":"^7.0.0","es6-promise":"^4.0.5","graphql":"^0.10.0","graphql-tag":"^2.0.0","grunt":"1.0.1","grunt-tslint":"5.0.0","isomorphic-fetch":"^2.2.1","istanbul":"^0.4.5","mocha":"^3.0.0","react":"^15.3.1","react-dom":"^15.3.1","remap-istanbul":"^0.8.0","source-map-support":"^0.4.0","tslint":"^5.0.0","typescript":"^2.2.1"},"dependencies":{"graphql-ast-tools":"^0.1.3"},"gitHead":"c6b2b09d9e75d541abe531951e19907305531134","bugs":{"url":"https://github.com/cvle/graphql-anywhere/issues"},"homepage":"https://github.com/cvle/graphql-anywhere#readme","_id":"@coralproject/graphql-anywhere-optimized@0.1.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"wikiwi","email":"vinh@wikiwi.io"},"dist":{"integrity":"sha512-vZCQGRLj2y6h9niHN/ZyZw5V4NBTzDGAXpQ8dnF2fo0AducjAMVAFz1H7lPQPRqtas8eTjBaXjcbi941R710ng==","shasum":"53e6ec988d6869b82818a55999f853bf5af44949","tarball":"https://registry.npmjs.org/@coralproject/graphql-anywhere-optimized/-/graphql-anywhere-optimized-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEnBr/XN39ewe8BnBdNZ6KaTA/Wg5nbetQELRizYoOSaAiBKcdHzqx/9JaA8+mwrNHCdXoo56AOXfK9eGY0eJ+QZvw=="}]},"maintainers":[{"name":"wikiwi","email":"vinh@wikiwi.io"},{"name":"wyattjoh","email":"wyattjoh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-anywhere-optimized-0.1.1.tgz_1512497905370_0.8694941778667271"},"directories":{}},"0.1.2":{"name":"@coralproject/graphql-anywhere-optimized","version":"0.1.2","description":"Fork of graphql-anywhere with custom optimizations","main":"./lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"pretest":"npm run compile","test":"npm run testonly --","posttest":"npm run lint","compile":"tsc","watch":"tsc -w","prepublish":"npm run compile","lint":"grunt tslint","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace lib/test/tests.js","postcoverage":"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info","testonly":"mocha --reporter spec --full-trace lib/test/tests.js"},"repository":{"type":"git","url":"git+https://github.com/cvle/graphql-anywhere.git"},"keywords":["ecmascript","es2015","jsnext","javascript","relay","npm","react"],"author":{"name":"The Coral Project Team","email":"coral@mozillafoundation.org"},"license":"MIT","devDependencies":{"@types/chai":"3.5.2","@types/isomorphic-fetch":"0.0.34","@types/graphql":"^0.10.0","@types/lodash":"^4.14.37","@types/mocha":"^2.2.32","@types/node":"^8.0.0","@types/react":"^15.0.14","@types/react-dom":"^15.5.0","async":"^2.0.0","chai":"^4.1.0","chai-as-promised":"^7.0.0","es6-promise":"^4.0.5","graphql":"^0.10.0","graphql-tag":"^2.0.0","grunt":"1.0.1","grunt-tslint":"5.0.0","isomorphic-fetch":"^2.2.1","istanbul":"^0.4.5","mocha":"^3.0.0","react":"^15.3.1","react-dom":"^15.3.1","remap-istanbul":"^0.8.0","source-map-support":"^0.4.0","tslint":"^5.0.0","typescript":"^2.2.1"},"dependencies":{"graphql-ast-tools":"^0.1.5"},"gitHead":"c6b2b09d9e75d541abe531951e19907305531134","bugs":{"url":"https://github.com/cvle/graphql-anywhere/issues"},"homepage":"https://github.com/cvle/graphql-anywhere#readme","_id":"@coralproject/graphql-anywhere-optimized@0.1.2","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"wikiwi","email":"vinh@wikiwi.io"},"dist":{"integrity":"sha512-XpPajr+8lPedfDaqEjAt4xQxtrr7CpTEbFt2sOEGEpiJow+ghEsa/F80ZkcF8h7/6x7zJgY9QfNq8LWkHYBfKQ==","shasum":"453f9eeb076987f6af928e959094494d62f9cf29","tarball":"https://registry.npmjs.org/@coralproject/graphql-anywhere-optimized/-/graphql-anywhere-optimized-0.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGX03BrORZPusEsf2NgPF0arlVBjLpuN5sy3beoKEfLSAiEAnlns0/1VT3krG0pVbMLNdxV+avBooQqJP8FEaHQxQvM="}]},"maintainers":[{"name":"wikiwi","email":"vinh@wikiwi.io"},{"name":"wyattjoh","email":"wyattjoh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-anywhere-optimized-0.1.2.tgz_1512498153947_0.7064187224023044"},"directories":{}},"0.1.3":{"name":"@coralproject/graphql-anywhere-optimized","version":"0.1.3","description":"Fork of graphql-anywhere with custom optimizations","main":"./lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"pretest":"npm run compile","test":"npm run testonly --","posttest":"npm run lint","compile":"tsc","watch":"tsc -w","prepublish":"npm run compile","lint":"grunt tslint","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace lib/test/tests.js","postcoverage":"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info","testonly":"mocha --reporter spec --full-trace lib/test/tests.js"},"repository":{"type":"git","url":"git+https://github.com/cvle/graphql-anywhere.git"},"keywords":["ecmascript","es2015","jsnext","javascript","relay","npm","react"],"author":{"name":"The Coral Project Team","email":"coral@mozillafoundation.org"},"license":"MIT","devDependencies":{"@types/chai":"3.5.2","@types/isomorphic-fetch":"0.0.34","@types/graphql":"^0.10.0","@types/lodash":"^4.14.37","@types/mocha":"^2.2.32","@types/node":"^8.0.0","@types/react":"^15.0.14","@types/react-dom":"^15.5.0","async":"^2.0.0","chai":"^4.1.0","chai-as-promised":"^7.0.0","es6-promise":"^4.0.5","graphql":"^0.10.0","graphql-tag":"^2.0.0","grunt":"1.0.1","grunt-tslint":"5.0.0","isomorphic-fetch":"^2.2.1","istanbul":"^0.4.5","mocha":"^3.0.0","react":"^15.3.1","react-dom":"^15.3.1","remap-istanbul":"^0.8.0","source-map-support":"^0.4.0","tslint":"^5.0.0","typescript":"^2.2.1"},"dependencies":{"graphql-ast-tools":"^0.1.6"},"gitHead":"d619ec4f490057c2bee591051330875fbf97a977","bugs":{"url":"https://github.com/cvle/graphql-anywhere/issues"},"homepage":"https://github.com/cvle/graphql-anywhere#readme","_id":"@coralproject/graphql-anywhere-optimized@0.1.3","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"wikiwi","email":"vinh@wikiwi.io"},"dist":{"integrity":"sha512-0Kj0uYfxWsHg8lTa5hRwk06RtHce2PJsGMPSK8KSNdMWQHYrIpLNz6mmxf1GicOfLu903JGGw0TpSSRWxc5Naw==","shasum":"f92f3906bb04f001aef725697237786752c49bd6","tarball":"https://registry.npmjs.org/@coralproject/graphql-anywhere-optimized/-/graphql-anywhere-optimized-0.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXqxHWQkduBNRytRU17e+FpxndEP9AsuI8CtuQilN3SAiEA+Zz6GKS8FBco8thkmJugoHexLuUg5rWfpSmbWkXU6bg="}]},"maintainers":[{"name":"wikiwi","email":"vinh@wikiwi.io"},{"name":"wyattjoh","email":"wyattjoh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-anywhere-optimized-0.1.3.tgz_1512498882753_0.7456862390972674"},"directories":{}},"0.1.4":{"name":"@coralproject/graphql-anywhere-optimized","version":"0.1.4","description":"Fork of graphql-anywhere with custom optimizations","main":"./lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"pretest":"npm run compile","test":"npm run testonly --","posttest":"npm run lint","compile":"tsc","watch":"tsc -w","prepublish":"npm run compile","lint":"grunt tslint","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace lib/test/tests.js","postcoverage":"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info","testonly":"mocha --reporter spec --full-trace lib/test/tests.js"},"repository":{"type":"git","url":"git+https://github.com/cvle/graphql-anywhere.git"},"keywords":["ecmascript","es2015","jsnext","javascript","relay","npm","react"],"author":{"name":"The Coral Project Team","email":"coral@mozillafoundation.org"},"license":"MIT","devDependencies":{"@types/chai":"3.5.2","@types/isomorphic-fetch":"0.0.34","@types/graphql":"^0.10.0","@types/lodash":"^4.14.37","@types/mocha":"^2.2.32","@types/node":"^8.0.0","@types/react":"^15.0.14","@types/react-dom":"^15.5.0","async":"^2.0.0","chai":"^4.1.0","chai-as-promised":"^7.0.0","es6-promise":"^4.0.5","graphql":"^0.10.0","graphql-tag":"^2.0.0","grunt":"1.0.1","grunt-tslint":"5.0.0","isomorphic-fetch":"^2.2.1","istanbul":"^0.4.5","mocha":"^3.0.0","react":"^15.3.1","react-dom":"^15.3.1","remap-istanbul":"^0.8.0","source-map-support":"^0.4.0","tslint":"^5.0.0","typescript":"^2.2.1"},"dependencies":{"graphql-ast-tools":"^0.2.1"},"gitHead":"440ab1dbcda5c3792d88700c5cc92be49e410e20","bugs":{"url":"https://github.com/cvle/graphql-anywhere/issues"},"homepage":"https://github.com/cvle/graphql-anywhere#readme","_id":"@coralproject/graphql-anywhere-optimized@0.1.4","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"wikiwi","email":"vinh@wikiwi.io"},"dist":{"integrity":"sha512-4c7sLcX3jD67CVkHSEnUQqPDjqRFWIFbIfo3HBIwE99K99SpBXi0suRkewr/7T5AFQZZtk3ua1TP2aFw8ladAA==","shasum":"b3e35b6c8116523be9a27d34ed0930b889e59fcf","tarball":"https://registry.npmjs.org/@coralproject/graphql-anywhere-optimized/-/graphql-anywhere-optimized-0.1.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzNP7NrNWOmgflblXmU+QZP1/sY+Wqvq5EP+oclCufnAiEA/kFETavgZawQzQ1KkNQBOVfmlBNg7PmZ4rTwRf8bQnc="}]},"maintainers":[{"name":"wikiwi","email":"vinh@wikiwi.io"},{"name":"wyattjoh","email":"wyattjoh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-anywhere-optimized-0.1.4.tgz_1512665045401_0.017725719837471843"},"directories":{}},"0.1.5":{"name":"@coralproject/graphql-anywhere-optimized","version":"0.1.5","description":"Fork of graphql-anywhere with custom optimizations","main":"./lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"pretest":"npm run compile","test":"npm run testonly --","posttest":"npm run lint","compile":"tsc","watch":"tsc -w","prepublish":"npm run compile","lint":"grunt tslint","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace lib/test/tests.js","postcoverage":"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info","testonly":"mocha --reporter spec --full-trace lib/test/tests.js"},"repository":{"type":"git","url":"git+https://github.com/cvle/graphql-anywhere.git"},"keywords":["ecmascript","es2015","jsnext","javascript","relay","npm","react"],"author":{"name":"The Coral Project Team","email":"coral@mozillafoundation.org"},"license":"MIT","devDependencies":{"@types/chai":"3.5.2","@types/isomorphic-fetch":"0.0.34","@types/graphql":"^0.10.0","@types/lodash":"^4.14.37","@types/mocha":"^2.2.32","@types/node":"^8.0.0","@types/react":"^15.0.14","@types/react-dom":"^15.5.0","async":"^2.0.0","chai":"^4.1.0","chai-as-promised":"^7.0.0","es6-promise":"^4.0.5","graphql":"^0.10.0","graphql-tag":"^2.0.0","grunt":"1.0.1","grunt-tslint":"5.0.0","isomorphic-fetch":"^2.2.1","istanbul":"^0.4.5","mocha":"^3.0.0","react":"^15.3.1","react-dom":"^15.3.1","remap-istanbul":"^0.8.0","source-map-support":"^0.4.0","tslint":"^5.0.0","typescript":"^2.2.1"},"dependencies":{"graphql-ast-tools":"^0.2.2"},"gitHead":"693a2c8673e2ffd410b0ea50811233b85ec77b38","bugs":{"url":"https://github.com/cvle/graphql-anywhere/issues"},"homepage":"https://github.com/cvle/graphql-anywhere#readme","_id":"@coralproject/graphql-anywhere-optimized@0.1.5","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"wikiwi","email":"vinh@wikiwi.io"},"dist":{"integrity":"sha512-yl08uZgrSMqtOzZ85EhU1LQ0dhVeU1ZWBL9STscq1qVfVFIXW8cmSIufG+/RuJrmoYavMr6ouzlAZvlylO7qeA==","shasum":"67c862bf908ea717d9521ea76266b5bc9f109c65","tarball":"https://registry.npmjs.org/@coralproject/graphql-anywhere-optimized/-/graphql-anywhere-optimized-0.1.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhVQAaSHEj+ehxi/mWMBuXflDeWZ9fAi0s+Q2DbubedAIgYfVgDtn42or7MPgcWTLmrn348/FfX+UFuc4hQKkDFt4="}]},"maintainers":[{"name":"wikiwi","email":"vinh@wikiwi.io"},{"name":"wyattjoh","email":"wyattjoh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-anywhere-optimized-0.1.5.tgz_1512668203608_0.9851793872658163"},"directories":{}},"0.1.6":{"name":"@coralproject/graphql-anywhere-optimized","version":"0.1.6","description":"Fork of graphql-anywhere with custom optimizations","main":"./lib/src/index.js","typings":"./lib/src/index.d.ts","scripts":{"pretest":"npm run compile","test":"npm run testonly --","posttest":"npm run lint","compile":"tsc","watch":"tsc -w","prepublish":"npm run compile","lint":"grunt tslint","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace lib/test/tests.js","postcoverage":"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info","testonly":"mocha --reporter spec --full-trace lib/test/tests.js"},"repository":{"type":"git","url":"git+https://github.com/cvle/graphql-anywhere.git"},"keywords":["ecmascript","es2015","jsnext","javascript","relay","npm","react"],"author":{"name":"The Coral Project Team","email":"coral@mozillafoundation.org"},"license":"MIT","devDependencies":{"@types/chai":"3.5.2","@types/isomorphic-fetch":"0.0.34","@types/graphql":"^0.10.0","@types/lodash":"^4.14.37","@types/mocha":"^2.2.32","@types/node":"^8.0.0","@types/react":"^15.0.14","@types/react-dom":"^15.5.0","async":"^2.0.0","chai":"^4.1.0","chai-as-promised":"^7.0.0","es6-promise":"^4.0.5","graphql":"^0.10.0","graphql-tag":"^2.0.0","grunt":"1.0.1","grunt-tslint":"5.0.0","isomorphic-fetch":"^2.2.1","istanbul":"^0.4.5","mocha":"^3.0.0","react":"^15.3.1","react-dom":"^15.3.1","remap-istanbul":"^0.8.0","source-map-support":"^0.4.0","tslint":"^5.0.0","typescript":"^2.2.1"},"dependencies":{"graphql-ast-tools":"^0.2.2"},"gitHead":"96a9705e478ecdd8896ad1cf32c365034e156ec4","bugs":{"url":"https://github.com/cvle/graphql-anywhere/issues"},"homepage":"https://github.com/cvle/graphql-anywhere#readme","_id":"@coralproject/graphql-anywhere-optimized@0.1.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"wikiwi","email":"vinh@wikiwi.io"},"dist":{"integrity":"sha512-i454hjNG3764G9SsQncnwg/kydCEajmqJK7ZNrEEQF6vazXXsz+TzAwb2dMTrsZOCEhiWAZ+iEOsOT2rKQqlJQ==","shasum":"073b33764c04788b0290788da9ebf0ed21af6437","tarball":"https://registry.npmjs.org/@coralproject/graphql-anywhere-optimized/-/graphql-anywhere-optimized-0.1.6.tgz","fileCount":32,"unpackedSize":71891,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9tVn8WQSAbA3Q8bvf3/+8pZrJJs6fAql91c79hGopsQIhAPsGbEeVffJ7XwzgAzUn+eSw/Jz8oIE9UVSe/vzpuWhK"}]},"maintainers":[{"email":"curciobelen@gmail.com","name":"okbel"},{"email":"vinh@wikiwi.io","name":"wikiwi"},{"email":"wyattjoh@gmail.com","name":"wyattjoh"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-anywhere-optimized_0.1.6_1520894462509_0.6079307043940487"},"_hasShrinkwrap":false}},"homepage":"https://github.com/cvle/graphql-anywhere#readme","keywords":["ecmascript","es2015","jsnext","javascript","relay","npm","react"],"repository":{"type":"git","url":"git+https://github.com/cvle/graphql-anywhere.git"},"author":{"name":"The Coral Project Team","email":"coral@mozillafoundation.org"},"bugs":{"url":"https://github.com/cvle/graphql-anywhere/issues"},"license":"MIT","readmeFilename":"README.md"}