{"_id":"graphql-ast-types-browser","_rev":"1-adad430d03dc33aad3772725beb4879b","name":"graphql-ast-types-browser","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"graphql-ast-types-browser","version":"1.0.2","main":"lib/index.js","license":"MIT","keywords":["graphql","ast","types","graphql-ast-types"],"repository":{"type":"git","url":"git+https://github.com/Kmaschta/graphql-ast-types.git"},"scripts":{"test":"jest src/**","test:watch":"yarn test -- --watch","prebuild":"yarn generate","build":"babel src --out-dir lib --source-maps inline -D","generate":"node ./generate/index.js","prepublishOnly":"yarn build","flow":"flow","lint-staged":"lint-staged"},"bugs":{"url":"https://github.com/imranolas/graphql-ast-types/issues"},"dependencies":{},"peerDependencies":{"graphql":"^0.11.7"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-generator":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-template":"^6.26.0","babel-traverse":"^6.26.0","babel-types":"^6.26.0","flow-bin":"^0.57.3","flow-parser":"^0.57.3","graphql":"^0.11.7","jest":"^21.2.1","lint-staged":"^4.3.0","pre-commit":"^1.2.2","prettier":"^1.7.4","strip-indent":"^2.0.0"},"jest":{"roots":["<rootDir>/src/"]},"lint-staged":{"*.js":["prettier --write","git add"]},"pre-commit":"lint-staged","gitHead":"bd715ea03c2b4aeefc9a72ca7b42c80e807ec0c8","description":":warning: This package is a temporary clone of [`graphql-ast-types`](https://www.npmjs.com/package/graphql-ast-types). It will be deleted as soon as the issue [#7](https://github.com/imranolas/graphql-ast-types/issues/7) is closed.","homepage":"https://github.com/Kmaschta/graphql-ast-types#readme","_id":"graphql-ast-types-browser@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"kmaschta","email":"kevin@marmelab.com"},"dist":{"integrity":"sha512-QuKZ+Et3dE7SyO5c41eNPlJc7+HwQxOzHfmIhqzj4cUgAGyhSwVkKb7K24zom8y6y0VnG7Xb3RRypjIVvfIevQ==","shasum":"474305af7e76f9692df6e50a88fb668ce258c4a4","tarball":"https://registry.npmjs.org/graphql-ast-types-browser/-/graphql-ast-types-browser-1.0.2.tgz","fileCount":18,"unpackedSize":167011,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2I1cCRA9TVsSAnZWagAA/HwP/iUpB0gQWa8uCNVYXFUt\nI7nM94Us0nYoRzadHXlgWNDBlJSkYayfJ7aIKzO6vrjJtsDWxqISi8+2jWSb\nWmq3FzM/iePWbaiXZT6D5VQsidShnqaOmMk3vRh2kjMC00Am2Ug3OSLPhBOt\nCsRqAZ3BxkTRAqLLNdG+1D0xLR/HCXhHRKEfdCwGmzyxAkJZyTmZrJBYpxIj\nVBtJZackUlHOOr3gosJhaCwAqSwnFqrvU98dR6PkeiBw2grANVxT11F820ds\ncQnpsKDEwEMCtLl/onMqYC7B3ilgZGxluD9dSxL28U8yYZPl9xIWZWAPInnV\nUGmd3GMmvqvaaDyT5rRm3d3AUdY3XVxz9W2dHl5Pfqls82+gu1rtUEQzx7dy\nRPPPNbVsTn6yGMKpCA1RGZ/W8VVrYB6UjWendDQUCaoUYe5+zHAll1zMF0JR\ncvzSysEvweUapiMBLCPBemEBPMr3+f1KQKRnWzGxSvzQ4q9FevpfYMfSCPt9\n8QeyVDxNPkjRiYEMlFL/NIdmmSC+gWVdVGUAM2gcEjJboxQsl8H28TSNpriE\nsGKjQqK6KFEZ/Rl05cg1j9mLXPpUniuE6xgs31AQxP2P4RBhSfwbXB7JeAHh\nKBpwpyu293YwuzT3uu+r4QRVZbxtrBPf1aCpwh6HBzZKCKjWJosiOhPUZA55\nVXSj\r\n=Ylo5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqolu279g6256pSzBWbhc4WtaL4IV7P/xakUk1zCdbkgIhAKCHJ/xK3J0WXOhXwM2uRBO4QM9AI+yf4gXds6ZzecxJ"}]},"maintainers":[{"name":"kmaschta","email":"kevin@marmelab.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-ast-types-browser_1.0.2_1540918620165_0.7077529129444542"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-30T16:57:00.164Z","1.0.2":"2018-10-30T16:57:00.315Z","modified":"2022-05-04T02:42:12.040Z"},"maintainers":[{"name":"kmaschta","email":"kevin@marmelab.com"}],"description":":warning: This package is a temporary clone of [`graphql-ast-types`](https://www.npmjs.com/package/graphql-ast-types). It will be deleted as soon as the issue [#7](https://github.com/imranolas/graphql-ast-types/issues/7) is closed.","homepage":"https://github.com/Kmaschta/graphql-ast-types#readme","keywords":["graphql","ast","types","graphql-ast-types"],"repository":{"type":"git","url":"git+https://github.com/Kmaschta/graphql-ast-types.git"},"bugs":{"url":"https://github.com/imranolas/graphql-ast-types/issues"},"license":"MIT","readme":":warning: This package is a temporary clone of [`graphql-ast-types`](https://www.npmjs.com/package/graphql-ast-types).\nIt will be deleted as soon as the issue [#7](https://github.com/imranolas/graphql-ast-types/issues/7) is closed.\n\nUse it at your own risk.\n\n\n<h1 align=\"center\">graphql-ast-types</h1>\n<p align=\"center\">Autogenerated helper functions for generating a GraphQL AST</p>\n\n\nThis project generates helpers functions from the graphql/language AST flow descriptions. It is intended to help with building a valid GraphQL AST.\n\n## Getting Started\n\n`yarn add graphql-ast-types`\n\n```js\nimport * as t from 'graphql-ast-types';\n```\n\n_The implementation here mimics that of `babel-types`. Thanks Babel team._\n\n## Usage\n\nThe following is an example of how to build a simple query with AST types.\n\n```js\nimport * as t from 'graphql-ast-types';\nimport { print } from 'graphql/language';\n\nconst ast = t.document([\n  t.operationDefinition(\n    'query',\n    t.selectionSet([\n      t.field(t.name('foo')),\n      t.field(t.name('bar'))\n    ])\n  )\n]);\n\nprint(ast);\n\n/*\nquery {\n  foo\n  bar\n}\n*/\n```\n\nIn addition, method calls are validated for correctness and accompanied by `is` and `assert` helpers.\n\n```js\nt.isName(t.name('Hello')); // true\n\nt.isName({ kind: 'Name' }); // true\nt.assert({ kind: 'Name' }); // no error\n\nt.isName({ kind: 'IntValue' }); // false\nt.assert({ kind: 'IntValue' }); // error\n```\n\nThe full API can be found [here](https://github.com/imranolas/graphql-ast-types/blob/master/api.md).\n","readmeFilename":"README.md"}