UNPKG

graphql-fields-list

Version:

Extracts and returns list of fields requested from graphql resolver info object

95 lines (94 loc) 3 kB
{ "name": "graphql-fields-list", "version": "2.3.0", "description": "Extracts and returns list of fields requested from graphql resolver info object", "scripts": { "prepublish": "npm run build", "build": "tsc", "mocha": "nyc mocha", "show:test": "/usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/coverage/index.html',{wait:false}));\"", "show:doc": "/usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/docs/index.html',{wait:false}));\"", "test": "npm run build && npm run mocha; if [ -n \"$TRAVIS\" ]; then npm run test-coverage; fi; npm run show:test ", "test-coverage": "nyc report --reporter=text-lcov | coveralls", "clean:dts": "find . -name '*.d.ts' -not -wholename '*node_modules*' -type f -delete", "clean:map": "find . -name '*.js.map' -not -wholename '*node_modules*' -type f -delete", "clean:js": "find . -name '*.js' -not -wholename '*node_modules*' -type f -delete", "clean:test": "rm -rf .nyc_output coverage", "clean:doc": "rm -rf docs", "clean": "npm run clean:test && npm run clean:dts && npm run clean:map && npm run clean:js && npm run clean:doc", "doc": "npm run clean:doc && typedoc --excludePrivate --excludeExternals --hideGenerator --exclude \"**/+(debug|test|node_modules|docs|coverage|.nyc_output)/**/*\" --mode file --out ./docs . && npm run show:doc", "help": "npm-scripts-help", "update-schema": "ts-node ./bin/update-schema.ts" }, "keywords": [ "graphql", "graphql-js", "graphqlresolveinfo", "fields", "schema", "ast" ], "repository": { "type": "git", "url": "git@github.com:Mikhus/graphql-fields-list.git" }, "bugs": { "url": "https://github.com/Mikhus/graphql-fields-list/issues" }, "homepage": "https://github.com/Mikhus/graphql-fields-list", "author": "Mykhailo Stadnyk <mikhus@gmail.com>", "license": "ISC", "devDependencies": { "@types/chai": "^4.3.20", "@types/mocha": "^10.0.9", "@types/node": "^22.9.0", "@types/sinon": "^17.0.3", "@types/uuid": "^10.0.0", "chai": "^4.5.0", "coveralls": "^3.1.1", "graphql": "^16.9.0", "graphql-relay": "0.10.2", "marked": "^15.0.0", "mocha": "^10.8.2", "npm-scripts-help": "^0.8.0", "nyc": "^17.1.0", "open": "^10.1.0", "sinon": "^19.0.2", "ts-node": "^10.9.2", "typedoc": "^0.26.11", "typescript": "^5.6.3", "uuid": "^11.0.2" }, "main": "index.js", "typescript": { "definitions": "index.d.ts" }, "mocha": { "require": [ "ts-node/register", "source-map-support/register" ], "recursive": true, "bail": true, "full-trace": true }, "nyc": { "check-coverage": true, "extension": [ ".ts" ], "exclude": [ "**/*.d.ts", "**/test/**" ], "require": [ "ts-node/register" ], "reporter": [ "html", "text", "text-summary", "lcovonly" ] } }