UNPKG

kit-request

Version:

定制处理数据请求,fetch使用 isomorphic-fetch,xhr 使用 axios

68 lines (67 loc) 1.99 kB
{ "name": "kit-request", "version": "1.0.2", "description": "定制处理数据请求,fetch使用 isomorphic-fetch,xhr 使用 axios", "main": "lib/index.js", "options": { "mini": "--harmony --require babel-core/register test/*.spec.js", "mocha": "--harmony --require babel-core/register test/**/*.spec.js" }, "scripts": { "clean": "rm -rf lib", "benchmark": "npm test && node benchmark", "build": "rimraf lib && ./node_modules/.bin/babel src -d lib --ignore test", "prepublishOnly": "npm run build", "test": "./node_modules/.bin/_mocha $npm_package_options_mocha", "mini": "./node_modules/.bin/_mocha $npm_package_options_mini", "lint": "./node_modules/.bin/eslint --ext .js src test" }, "repository": { "type": "git", "url": "git+https://github.com/jskit/kit-request.git" }, "keywords": [ "restful", "api", "ajax", "xhr", "fetch", "request", "jskit" ], "author": "cloudyan <1395093509@qq.com>", "license": "MIT", "bugs": { "url": "https://github.com/jskit/kit-request/issues" }, "homepage": "https://github.com/jskit/kit-request#readme", "dependencies": { "axios": "^0.18.0", "babel-plugin-component": "^1.1.0", "isomorphic-fetch": "^2.2.1", "lodash.merge": "^4.6.1", "mint-ui": "^2.2.13", "qs": "^6.5.1" }, "devDependencies": { "assets": "^3.0.0", "babel-cli": "^6.26.0", "babel-core": "^6.26.0", "babel-eslint": "^8.2.2", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.6.1", "babel-preset-es2015": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "babylon": "^6.18.0", "benchmark": "^2.1.4", "bluebird": "^3.5.1", "chai": "^4.1.2", "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-html": "^4.0.2", "eslint-plugin-import": "^2.9.0", "mocha": "^5.0.0", "opn": "^5.2.0", "rimraf": "^2.6.2" } }