apollo-fetch
Version:
Lightweight implementation of fetch for GraphQL requests
77 lines (76 loc) • 2.5 kB
JSON
{
"name": "apollo-fetch",
"version": "0.7.0",
"description": "Lightweight implementation of fetch for GraphQL requests",
"author": "Evans Hauser <evanshauser@gmail.com>",
"contributors": [
"Jonas Helfer <jonas@helfer.email>",
"Sashko Stubailo <sashko@stubailo.com>",
"Jayden Seric <me@jaydenseric.com>",
"Kamil Kisiela <kamil.kisiela@gmail.com>"
],
"license": "MIT",
"main": "./dist/bundle.umd.js",
"module": "./dist/index.js",
"jsnext:main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-fetch/tree/master/packages/apollo-fetch"
},
"bugs": {
"url": "https://github.com/apollographql/apollo-fetch/issues"
},
"homepage": "https://github.com/apollographql/apollo-fetch#readme",
"scripts": {
"pretest": "npm run build-test",
"test": "npm run test-only --",
"posttest": "npm run lint",
"test-only": "mocha --reporter spec --full-trace dist/tests/tests.js",
"test-watch": "mocha --reporter spec --full-trace dist/tests/tests.js --watch",
"coverage:test": "_mocha --reporter dot --full-trace dist/tests/tests.js",
"coverage": "nyc --reporter=lcov npm run coverage:test",
"lint": "tslint -p tsconfig.test.json src/*.ts && tslint -p tsconfig.test.json tests/*.ts",
"prebuild": "npm run clean:dist",
"prebuild-test": "npm run clean:test",
"build": "tsc",
"build-test": "npm run build && tsc -p tsconfig.test.json",
"postbuild": "npm run bundle",
"bundle": "rollup -c",
"watch": "tsc -w",
"clean": "npm run clean:dist && npm run clean:coverage",
"clean:dist": "rimraf dist/*",
"clean:test": "rimraf dist/src && rimraf dist/tests ",
"clean:coverage": "rimraf coverage/*",
"prepublish": "npm run clean && npm run build",
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"cross-fetch": "^1.0.0"
},
"devDependencies": {
"@types/chai": "4.0.8",
"@types/chai-as-promised": "7.1.0",
"@types/mocha": "2.2.44",
"chai": "4.1.2",
"chai-as-promised": "7.1.1",
"fetch-mock": "5.13.1",
"graphql": "0.11.7",
"graphql-tag": "2.5.0",
"lerna": "2.5.1",
"lodash": "4.17.4",
"mocha": "4.0.1",
"nyc": "11.3.0",
"rimraf": "2.6.2",
"rollup": "0.52.1",
"sinon": "4.1.2",
"source-map-support": "0.5.0",
"tslint": "5.8.0",
"typescript": "2.6.2"
},
"nyc": {
"exclude": [
"tests"
]
}
}