{"name":"@apollo/utils.sortast","version":"2.0.1","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":"packages/sortAst/"},"keywords":["apollo","graphql","typescript","node"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","engines":{"node":">=14"},"dependencies":{"lodash.sortby":"^4.7.0"},"peerDependencies":{"graphql":"14.x || 15.x || 16.x"},"gitHead":"353e9dab31d4ce1ef286564573e93bc042e8925a","bugs":{"url":"https://github.com/apollographql/apollo-utils/issues"},"homepage":"https://github.com/apollographql/apollo-utils#readme","_id":"@apollo/utils.sortast@2.0.1","_nodeVersion":"16.19.1","_npmVersion":"8.5.0","dist":{"integrity":"sha512-eciIavsWpJ09za1pn37wpsCGrQNXUhM0TktnZmHwO+Zy9O4fu/WdB4+5BvVhFiZYOXvfjzJUcc+hsIV8RUOtMw==","shasum":"58c90bb8bd24726346b61fa51ba7fcf06e922ef7","tarball":"http://registry-npm.ywwl.com/@apollo/utils.sortast/download/@apollo/utils.sortast-2.0.1.tgz","fileCount":8,"unpackedSize":8926,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvcgGophcRxpN2egG84lFKFW1PfE4fYGS+9OV/kRLJQQIhANP6zSH5eVWA6qPqAd2UeL+mab4g9DBi3xMpNFTULsse"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKyZ6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAMg/7BSgMRDzjJlcPSsG1mPcJc3sT7JRXbn5kUiSIs2sP5Q1DJpLw\r\nQPYe1D8ZoLOgyhSIMrlJCGB2/Hr9lD+n4vwWB32tIoAglXTgkAtValK24JVr\r\nVgqwH1mw0Foj9Di78WfknaGUEnWgV/saPOhCoi52DL3MLjjwGZVq+s4qtSyg\r\n8KSB79ZsWS7QOsjL0FwtB24ixyQWvPGhKSXzU4JSSGvXzQ1F/VL/oY1o4UYS\r\nscxO61t4y2Tj5xPP5f5hTGZqsYyB4GYLKRhecMh2c17W3RCGqEcwSElO+jfM\r\niBN/G6dJaKzRJkXFdhEpRzfJ9oemvrk2g93kDKd8b50b+FRQ8I0BEwnbhYya\r\nWBUmwryQpFE93FzvUTyyiOU4+90FK7sxRIlNhi8lbLHn6UISQNpuz4hNn1Lo\r\nTb7Vsw8Qo+SsM/hubkqoZsdIfRimQVfmU1oubf2ZW/uy8m9ktIw6wSOUWxa0\r\n0ZcqmDTQ8mh82YBzDl2l2ly9jlo8B+YF01UZYf2yTqjnA6V059xdWvayBWgS\r\nvuSweJcCl2G7VTXYeDpU9OGjGJ72VhviLcnNdOkzHwBd0ym9NzFyi7wjcUu1\r\nJS0JkMj0WoEftyg3CHPYIH29NpkzMCROYzaND8O61RIXjk5X1CysjHaV8CZn\r\nVFLxr6hjVCJY2rZhVNThGAg31XZJCtJU0bw=\r\n=LHu6\r\n-----END PGP SIGNATURE-----\r\n","size":3297,"noattachment":false,"key":"/@apollo/utils.sortast/-/@apollo/utils.sortast-2.0.1.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"dkuc","email":"dariusz_kuc@hotmail.com"},{"name":"glasser","email":"glasser@apollographql.com"},{"name":"trevor.scheer","email":"trevor.scheer@gmail.com"},{"name":"apollo-bot","email":"npm@apollographql.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils.sortast_2.0.1_1680549498453_0.6277169142694228"},"_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":1680549498769,"_cnpm_publish_time":1680549498769,"dist-tags":{"latest":"3.1.0"}}