UNPKG

2.5 kBJSONView Raw
1{
2 "name": "apollo-fetch",
3 "version": "0.7.0",
4 "description": "Lightweight implementation of fetch for GraphQL requests",
5 "author": "Evans Hauser <evanshauser@gmail.com>",
6 "contributors": [
7 "Jonas Helfer <jonas@helfer.email>",
8 "Sashko Stubailo <sashko@stubailo.com>",
9 "Jayden Seric <me@jaydenseric.com>",
10 "Kamil Kisiela <kamil.kisiela@gmail.com>"
11 ],
12 "license": "MIT",
13 "main": "./dist/bundle.umd.js",
14 "module": "./dist/index.js",
15 "jsnext:main": "./dist/index.js",
16 "typings": "./dist/index.d.ts",
17 "repository": {
18 "type": "git",
19 "url": "https://github.com/apollographql/apollo-fetch/tree/master/packages/apollo-fetch"
20 },
21 "bugs": {
22 "url": "https://github.com/apollographql/apollo-fetch/issues"
23 },
24 "homepage": "https://github.com/apollographql/apollo-fetch#readme",
25 "scripts": {
26 "pretest": "npm run build-test",
27 "test": "npm run test-only --",
28 "posttest": "npm run lint",
29 "test-only": "mocha --reporter spec --full-trace dist/tests/tests.js",
30 "test-watch": "mocha --reporter spec --full-trace dist/tests/tests.js --watch",
31 "coverage:test": "_mocha --reporter dot --full-trace dist/tests/tests.js",
32 "coverage": "nyc --reporter=lcov npm run coverage:test",
33 "lint": "tslint -p tsconfig.test.json src/*.ts && tslint -p tsconfig.test.json tests/*.ts",
34 "prebuild": "npm run clean:dist",
35 "prebuild-test": "npm run clean:test",
36 "build": "tsc",
37 "build-test": "npm run build && tsc -p tsconfig.test.json",
38 "postbuild": "npm run bundle",
39 "bundle": "rollup -c",
40 "watch": "tsc -w",
41 "clean": "npm run clean:dist && npm run clean:coverage",
42 "clean:dist": "rimraf dist/*",
43 "clean:test": "rimraf dist/src && rimraf dist/tests ",
44 "clean:coverage": "rimraf coverage/*",
45 "prepublish": "npm run clean && npm run build",
46 "prepublishOnly": "npm run clean && npm run build"
47 },
48 "dependencies": {
49 "cross-fetch": "^1.0.0"
50 },
51 "devDependencies": {
52 "@types/chai": "4.0.8",
53 "@types/chai-as-promised": "7.1.0",
54 "@types/mocha": "2.2.44",
55 "chai": "4.1.2",
56 "chai-as-promised": "7.1.1",
57 "fetch-mock": "5.13.1",
58 "graphql": "0.11.7",
59 "graphql-tag": "2.5.0",
60 "lerna": "2.5.1",
61 "lodash": "4.17.4",
62 "mocha": "4.0.1",
63 "nyc": "11.3.0",
64 "rimraf": "2.6.2",
65 "rollup": "0.52.1",
66 "sinon": "4.1.2",
67 "source-map-support": "0.5.0",
68 "tslint": "5.8.0",
69 "typescript": "2.6.2"
70 },
71 "nyc": {
72 "exclude": [
73 "tests"
74 ]
75 }
76}