149 lines
3.6 KiB
JSON
149 lines
3.6 KiB
JSON
{
|
|
"name": "superagent-throttle",
|
|
"version": "1.0.1",
|
|
"description": "A plugin for superagent that throttles requests.",
|
|
"main": "dist",
|
|
"scripts": {
|
|
"jsdoc": "rm -fr ./docs/* && jsdoc lib -d docs",
|
|
"docs": "npm run jsdoc && npm run gh-pages",
|
|
"readme": "node-readme",
|
|
"gh-pages": "gh-pages -d docs",
|
|
"build": "npm run babel:node4 && npm run babel:browser && npm run babel:node6 && npm run readme && npm run docs",
|
|
"babel:node4": "cross-env NODE_ENV=node4 babel lib -d dist/node4",
|
|
"babel:browser": "cross-env NODE_ENV=browser babel lib -d dist/browser",
|
|
"babel:node6": "cross-env NODE_ENV=node6 babel lib -d dist",
|
|
"test:coverage": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text --check-coverage --lines 100 npm run test",
|
|
"test": "cross-env NODE_ENV=test mocha --compilers js:babel-register test",
|
|
"test:watch": "cross-env NODE_ENV=test mocha --compilers js:babel-register --watch test",
|
|
"version": "npm run build",
|
|
"postversion": "git push && git push --tags"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/leviwheatcroft/superagent-throttle.git"
|
|
},
|
|
"keywords": [
|
|
"throttle",
|
|
"superagent",
|
|
"queue"
|
|
],
|
|
"author": "Levi Wheatcroft <levi@wheatcrofts.com.au> (http://leviwheatcroft.com/)",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/leviwheatcroft/superagent-throttle/issues"
|
|
},
|
|
"homepage": "http://leviwheatcroft.github.io/superagent-throttle",
|
|
"devDependencies": {
|
|
"babel-cli": "^6.16.0",
|
|
"babel-core": "^6.17.0",
|
|
"babel-eslint": "^7.0.0",
|
|
"babel-plugin-add-module-exports": "^0.2.1",
|
|
"babel-plugin-istanbul": "^2.0.1",
|
|
"babel-preset-env": "^1.3.2",
|
|
"babel-preset-stage-0": "^6.16.0",
|
|
"babel-register": "^6.16.3",
|
|
"chai": "^3.5.0",
|
|
"cross-env": "^3.1.3",
|
|
"debug": "^4.1.1",
|
|
"eslint": "^3.7.1",
|
|
"eslint-config-standard": "^6.2.0",
|
|
"eslint-plugin-babel": "^3.3.0",
|
|
"eslint-plugin-promise": "^3.0.0",
|
|
"eslint-plugin-standard": "^2.0.1",
|
|
"gh-pages": "^0.12.0",
|
|
"hjson": "^2.4.1",
|
|
"jsdoc": "^3.5.5",
|
|
"lodash": "^4.11.1",
|
|
"mocha": "^5.2.0",
|
|
"nock": "^9.0.11",
|
|
"node-readme": "^0.1.9",
|
|
"node-resemble-js": "^0.1.1",
|
|
"superagent": "^4.1.0",
|
|
"vow": "^0.4.17"
|
|
},
|
|
"eslintConfig": {
|
|
"parser": "babel-eslint",
|
|
"extends": "standard",
|
|
"installedESLint": true,
|
|
"plugins": [
|
|
"standard",
|
|
"babel"
|
|
],
|
|
"env": {
|
|
"node": true,
|
|
"mocha": true
|
|
}
|
|
},
|
|
"babel": {
|
|
"plugins": [
|
|
"add-module-exports"
|
|
],
|
|
"env": {
|
|
"test": {
|
|
"presets": [
|
|
"env"
|
|
],
|
|
"plugins": [
|
|
"istanbul"
|
|
]
|
|
},
|
|
"node4": {
|
|
"presets": [
|
|
[
|
|
"env",
|
|
{
|
|
"targets": {
|
|
"node": 4
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"node6": {
|
|
"presets": [
|
|
[
|
|
"env",
|
|
{
|
|
"targets": {
|
|
"node": 6
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"browser": {
|
|
"presets": [
|
|
[
|
|
"env",
|
|
{
|
|
"targets": {
|
|
"firefox": 52,
|
|
"chrome": 57,
|
|
"ie": 9,
|
|
"ios": 10,
|
|
"safari": 10
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"nyc": {
|
|
"include": [
|
|
"lib/**/*.js"
|
|
],
|
|
"require": [
|
|
"babel-register"
|
|
],
|
|
"sourceMap": false,
|
|
"instrument": false
|
|
},
|
|
"directories": {
|
|
"test": "test"
|
|
}
|
|
}
|