{"name":"@apollo/utils.sortast","version":"1.1.0","description":"Sort AST nodes in a document alphabetically","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-utils.git","directory":"sortAst/"},"keywords":["apollo","graphql","typescript","node"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","engines":{"node":">=12.13.0"},"publishConfig":{"access":"public"},"dependencies":{"lodash.sortby":"^4.7.0"},"peerDependencies":{"graphql":"14.x || 15.x || 16.x"},"gitHead":"854df1b996deea0ed10871640f5289e53c9d390b","bugs":{"url":"https://github.com/apollographql/apollo-utils/issues"},"homepage":"https://github.com/apollographql/apollo-utils#readme","_id":"@apollo/utils.sortast@1.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-VPlTsmUnOwzPK5yGZENN069y6uUHgeiSlpEhRnLFYwYNoJHsuJq2vXVwIaSmts015WTPa2fpz1inkLYByeuRQA==","shasum":"93218c7008daf3e2a0725196085a33f5aab5ad07","tarball":"http://registry-npm.ywwl.com/@apollo/utils.sortast/download/@apollo/utils.sortast-1.1.0.tgz","fileCount":7,"unpackedSize":8612,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr//1z59XggGkig02L5TGu7abl/5qf1RF7t2LWkV+MVwIgMTy/wPsK2cVbWEea7Z7w7hIDmITxP31pY3RGUEOAs7U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaDB7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpH8Q/5AKi89iMSTzTE0MyDs+Yn+EHSzZ4w1siTaGdCeTK+w9B12fL2\r\nstAitwoyng7jdELbtRb4fh9Ry11VEdWN6aycx+80VPlWYLnhfAfYERCa7F1d\r\nt2neFoIRGFOIPceLkdcMJv6mufZEWJ7COJO+bTk7ITFc6seoI9+pA8633K1Y\r\n/XRxROAOTH+uCvh1h8q0hkXBa8tsonFHDjBpBZ3EuMaZvSoOxQVOWsRwIsYC\r\nXxIJg44kHaWbQ63B1QoynRHhdNL01G6tC9MZPIllkwhwA2PoBTf5AVpbNZ0e\r\nQBLlSIZzxCPaq7RtnrlgQpSheDk4Wb26uc6TUV/eFiVDX14NwtCFi2B7Nx6A\r\nYEz887I2+hrW4UAjKb1zHEFJz6vA5Pz+3Re57gfVZ9dB72PbO8YaixsJr714\r\nMplhPWhza0wgoOmIzik440mwr6LhoWm/kzItvAwbZh+mFsouiAY9F1wdOwzI\r\nu3QLdrEaVb0BdrewwQiZFhI0ETahG0XCZLqbKCuB0m7tG0fsEAnVx8cEoPxF\r\nnAuh65HqhrWHEIHzgqh0z/vwhqAkePzPBLO0FVaWGTCkrTXOe7HCOYarDTj+\r\niMTH3v4s2piK01W0y0xa1kRRPRON0/n9mZNvr8i9Fd1wBeMUnwUVYWaU2mGN\r\nO9tuRexbIiM6dLo3gZdg674bIFbENbAppAw=\r\n=SVDr\r\n-----END PGP SIGNATURE-----\r\n","size":3162,"noattachment":false,"key":"/@apollo/utils.sortast/-/@apollo/utils.sortast-1.1.0.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils.sortast_1.1.0_1650995323295_0.47579292138430507"},"_hasShrinkwrap":false,"readme":"# sortAST\n\nThe `sortAST` function is used to alphabetically sort all of the nodes in a graphql `DocumentNode`.\n\n## Usage\n\n```ts\nimport { sortAST } from \"@apollo/utils.sortast\";\n\nconst sortedAST = sortAST(\n  parse(`#graphql\n  query Foo { c b a }\n`),\n);\n\nprint(sortedAST);\n// query Foo { a b c }\n```\n","publish_time":1650995323429,"_cnpm_publish_time":1650995323429,"dist-tags":{"latest":"3.1.0"}}