UNPKG

1.54 kBJSONView Raw
1{
2 "name": "unfetch",
3 "version": "4.1.0",
4 "description": "Bare minimum fetch polyfill in 500 bytes",
5 "unpkg": "polyfill/index.js",
6 "main": "dist/unfetch.js",
7 "module": "dist/unfetch.mjs",
8 "jsnext:main": "dist/unfetch.mjs",
9 "umd:main": "dist/unfetch.umd.js",
10 "scripts": {
11 "test": "eslint src test && jest",
12 "build": "microbundle src/index.mjs && microbundle -f cjs polyfill/polyfill.mjs -o polyfill/index.js --no-sourcemap && cp dist/unfetch.mjs dist/unfetch.es.js",
13 "prepare": "npm run -s build",
14 "release": "cross-var npm run build -s && cross-var git commit -am $npm_package_version && cross-var git tag $npm_package_version && git push && git push --tags && npm publish"
15 },
16 "repository": "developit/unfetch",
17 "keywords": [
18 "fetch",
19 "polyfill",
20 "xhr",
21 "ajax"
22 ],
23 "homepage": "https://github.com/developit/unfetch",
24 "authors": [
25 "Jason Miller <jason@developit.ca>"
26 ],
27 "license": "MIT",
28 "types": "src/index.d.ts",
29 "files": [
30 "src",
31 "dist",
32 "polyfill"
33 ],
34 "eslintConfig": {
35 "extends": "developit"
36 },
37 "jest": {
38 "testURL": "http://localhost/",
39 "testMatch": [
40 "<rootDir>/test/**/*.?(m)js?(x)"
41 ],
42 "moduleFileExtensions": [
43 "mjs",
44 "js"
45 ],
46 "transform": {
47 "^.+\\.m?jsx?$": "babel-jest"
48 }
49 },
50 "devDependencies": {
51 "babel-preset-env": "^1.7.0",
52 "cross-var": "^1.1.0",
53 "eslint": "^3.13.1",
54 "eslint-config-developit": "^1.1.1",
55 "jest": "^23.6.0",
56 "microbundle": "^0.10.1"
57 }
58}