UNPKG

3.93 kBJSONView Raw
1{
2 "name": "json-fetch",
3 "version": "8.0.0",
4 "description": "A wrapper around ES6 fetch to simplify interacting with JSON APIs.",
5 "author": "Good Eggs <open-source@goodeggs.com>",
6 "contributors": [
7 "dannynelson <danny@goodeggs.com>",
8 "Arlo Armstrong <arlo@goodeggs.com>"
9 ],
10 "license": "MIT",
11 "keywords": [
12 "fetch",
13 "api",
14 "json",
15 "es6"
16 ],
17 "main": "lib/index.js",
18 "repository": {
19 "type": "git",
20 "url": "git://github.com/goodeggs/json-fetch.git"
21 },
22 "publishConfig": {
23 "registry": "https://registry.npmjs.org/",
24 "always-auth": true
25 },
26 "homepage": "https://github.com/goodeggs/json-fetch",
27 "bugs": "https://github.com/goodeggs/json-fetch/issues",
28 "engines": {
29 "node": ">=8"
30 },
31 "dependencies": {
32 "@babel/runtime": "^7.3.1",
33 "isomorphic-fetch": "2.2.1",
34 "lodash.pick": "^4.4.0",
35 "promise-retry": "1.1.1"
36 },
37 "devDependencies": {
38 "@babel/cli": "^7.2.3",
39 "@babel/core": "^7.2.2",
40 "@babel/plugin-transform-runtime": "^7.2.0",
41 "@babel/preset-env": "^7.3.1",
42 "@babel/preset-flow": "^7.0.0",
43 "@babel/register": "^7.0.0",
44 "babel-eslint": "^10.0.1",
45 "eslint": "^5.13.0",
46 "eslint-config-prettier": "^4.0.0",
47 "eslint-plugin-goodeggs": "7.3.2",
48 "eslint-plugin-prettier": "^3.0.1",
49 "flow-bin": "^0.93.0",
50 "goodeggs-test-helpers": "^6.5.3",
51 "husky": "^1.3.1",
52 "leasot": "^7.3.1",
53 "lint-staged": "^8.1.4",
54 "mocha": "5.2.0",
55 "nock": "^10.0.6",
56 "nyc": "^13.3.0",
57 "prettier": "^1.16.4"
58 },
59 "scripts": {
60 "build": "yarn run build:clean && yarn run build:transpile",
61 "build:clean": "rm -rf lib",
62 "build:transpile": "babel src --out-dir lib --copy-files",
63 "lint": "yarn run lint:src && yarn run lint:prettier",
64 "lint:src": "yarn run lint:src:glob '**/*.{js,jsx,ts,tsx}'",
65 "lint:src:glob": "eslint --ignore-path .eslintignore",
66 "lint:prettier": "yarn run lint:prettier:glob '**/*.{yml,json,md,gql,graphql,flow}'",
67 "lint:prettier:glob": "prettier --ignore-path .eslintignore --list-different",
68 "fmt": "yarn run fmt:src && yarn run fmt:prettier",
69 "fmt:src": "yarn run fmt:src:glob '**/*.{js,jsx,ts,tsx}'",
70 "fmt:src:glob": "eslint --ignore-path .eslintignore --fix",
71 "fmt:prettier": "yarn run fmt:prettier:glob '**/*.{yml,json,md,gql,graphql,flow}'",
72 "fmt:prettier:glob": "prettier --ignore-path .eslintignore --write",
73 "prepublishOnly": "yarn run build",
74 "postversion": "git push --follow-tags",
75 "tdd": "yarn run test:mocha --watch",
76 "test": "yarn run todos && yarn run lint && yarn run typecheck && yarn run test:mocha:coverage",
77 "test:mocha": "yarn run test:mocha:glob 'src/**/test.js'",
78 "test:mocha:coverage": "yarn run nyc --report-dir=.coverage --temp-directory=.coverage/.nyc_output --reporter=lcov --reporter=text-summary yarn run test:mocha",
79 "test:mocha:glob": "NODE_ENV=test yarn run mocha --opts mocha.opts",
80 "todos": "yarn run todos:glob '**/*.{js,jsx,ts,tsx}'",
81 "todos:glob": "leasot --exit-nicely --tags '\\$FlowFixMe' --ignore='node_modules/**','lib/**','flow-typed/**'",
82 "typecheck": "flow"
83 },
84 "babel": {
85 "presets": [
86 "@babel/preset-env",
87 "@babel/preset-flow"
88 ],
89 "plugins": [
90 "@babel/plugin-transform-runtime"
91 ]
92 },
93 "eslintConfig": {
94 "parser": "babel-eslint",
95 "plugins": [
96 "goodeggs"
97 ],
98 "extends": [
99 "plugin:goodeggs/goodeggs",
100 "prettier",
101 "plugin:prettier/recommended"
102 ],
103 "env": {
104 "browser": true,
105 "node": true
106 },
107 "rules": {
108 "goodeggs/lodash-import-scope": "off"
109 }
110 },
111 "husky": {
112 "hooks": {
113 "pre-commit": "lint-staged"
114 }
115 },
116 "lint-staged": {
117 "*.{js,jsx,ts,tsx}": [
118 "yarn run fmt:src:glob",
119 "git add"
120 ],
121 "*.{yml,json,md,gql,graphql,flow}": [
122 "yarn run fmt:prettier:glob",
123 "git add"
124 ]
125 }
126}