mirror of
https://github.com/zhigang1992/yarn.git
synced 2026-06-10 07:55:57 +08:00
**Summary** Fixes #746. Unfortunately, neither Node, nor many systems come with built-in DNS caching so the many parallel requests that Yarn makes sometimes overwhelm the DNS servers, and most of the time, for the very same domain(s). Even worse, we pay the DNS look up cost for each request, which is quite sad at best. This patch introduces the `dnscache` module which intercepts all DNS look ups and answers them from an in-memory cache when possible. This applies to the built-in `http` and `https` modules, used by `request`. **Test plan** Existing tests should pass, and hopefully be faster. Total number of DNS look ups should decrease dramatically.
128 lines
3.8 KiB
JSON
128 lines
3.8 KiB
JSON
{
|
|
"name": "yarn",
|
|
"installationMethod": "unknown",
|
|
"version": "1.0.2",
|
|
"license": "BSD-2-Clause",
|
|
"preferGlobal": true,
|
|
"description": "📦🐈 Fast, reliable, and secure dependency management.",
|
|
"dependencies": {
|
|
"babel-eslint": "^7.2.3",
|
|
"babel-runtime": "^6.0.0",
|
|
"bytes": "^2.4.0",
|
|
"camelcase": "^4.0.0",
|
|
"chalk": "^1.1.1",
|
|
"cmd-shim": "^2.0.1",
|
|
"commander": "^2.9.0",
|
|
"death": "^1.0.0",
|
|
"debug": "^2.2.0",
|
|
"detect-indent": "^5.0.0",
|
|
"dnscache": "^1.0.1",
|
|
"eslint-plugin-jest": "^20.0.3",
|
|
"eslint-plugin-jsx-a11y": "^6.0.2",
|
|
"eslint-plugin-relay": "0.0.8",
|
|
"glob": "^7.1.1",
|
|
"gunzip-maybe": "^1.4.0",
|
|
"ini": "^1.3.4",
|
|
"inquirer": "^3.0.1",
|
|
"invariant": "^2.2.0",
|
|
"is-builtin-module": "^1.0.0",
|
|
"is-ci": "^1.0.10",
|
|
"is-webpack-bundle": "^1.0.0",
|
|
"leven": "^2.0.0",
|
|
"loud-rejection": "^1.2.0",
|
|
"micromatch": "^2.3.11",
|
|
"mkdirp": "^0.5.1",
|
|
"node-emoji": "^1.6.1",
|
|
"normalize-url": "^1.9.1",
|
|
"object-path": "^0.11.2",
|
|
"proper-lockfile": "^2.0.0",
|
|
"read": "^1.0.7",
|
|
"request": "^2.81.0",
|
|
"request-capture-har": "^1.2.2",
|
|
"rimraf": "^2.5.0",
|
|
"semver": "^5.1.0",
|
|
"strip-bom": "^3.0.0",
|
|
"tar-fs": "^1.15.1",
|
|
"tar-stream": "^1.5.2",
|
|
"uuid": "^3.0.1",
|
|
"v8-compile-cache": "^1.1.0",
|
|
"validate-npm-package-license": "^3.0.1",
|
|
"yn": "^2.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"babel-core": "^6.24.1",
|
|
"babel-loader": "^6.2.5",
|
|
"babel-plugin-array-includes": "^2.0.3",
|
|
"babel-plugin-transform-inline-imports-commonjs": "^1.0.0",
|
|
"babel-plugin-transform-runtime": "^6.4.3",
|
|
"babel-preset-es2015-node4": "^2.1.0",
|
|
"babel-preset-node5": "^10.2.0",
|
|
"babel-preset-stage-0": "^6.0.0",
|
|
"babylon": "^6.5.0",
|
|
"eslint": "^4.3.0",
|
|
"eslint-config-fb-strict": "^20.1.0-delta.3",
|
|
"eslint-plugin-babel": "^4.0.0",
|
|
"eslint-plugin-flowtype": "^2.35.0",
|
|
"eslint-plugin-jasmine": "^2.6.2",
|
|
"eslint-plugin-prefer-object-spread": "^1.2.1",
|
|
"eslint-plugin-prettier": "^2.1.2",
|
|
"eslint-plugin-react": "^7.1.0",
|
|
"eslint-plugin-yarn-internal": "file:scripts/eslint-rules",
|
|
"execa": "^0.7.0",
|
|
"flow-bin": "^0.52.0",
|
|
"gulp": "^3.9.0",
|
|
"gulp-babel": "^6.0.0",
|
|
"gulp-if": "^2.0.1",
|
|
"gulp-newer": "^1.0.0",
|
|
"gulp-plumber": "^1.0.1",
|
|
"gulp-sourcemaps": "^2.2.0",
|
|
"gulp-util": "^3.0.7",
|
|
"gulp-watch": "^4.3.5",
|
|
"jest": "20.0.4",
|
|
"minimatch": "^3.0.4",
|
|
"mock-stdin": "^0.3.0",
|
|
"prettier": "^1.5.2",
|
|
"temp": "^0.8.3",
|
|
"webpack": "^2.1.0-beta.25",
|
|
"yargs": "^6.3.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=4.0.0"
|
|
},
|
|
"repository": "yarnpkg/yarn",
|
|
"bin": {
|
|
"yarn": "./bin/yarn.js",
|
|
"yarnpkg": "./bin/yarn.js"
|
|
},
|
|
"scripts": {
|
|
"build": "gulp build",
|
|
"build-bundle": "node ./scripts/build-webpack.js",
|
|
"build-chocolatey": "powershell ./scripts/build-chocolatey.ps1",
|
|
"build-deb": "./scripts/build-deb.sh",
|
|
"build-dist": "bash ./scripts/build-dist.sh",
|
|
"build-win-installer": "scripts\\build-windows-installer.bat",
|
|
"check-lockfile": "./scripts/check-lockfile.sh",
|
|
"lint": "eslint . && flow check",
|
|
"prettier": "eslint src __tests__ --fix",
|
|
"release-branch": "./scripts/release-branch.sh",
|
|
"test": "yarn lint && yarn test-only",
|
|
"test-ci": "yarn build && yarn test-only",
|
|
"test-only": "node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",
|
|
"watch": "gulp watch"
|
|
},
|
|
"jest": {
|
|
"collectCoverageFrom": [
|
|
"src/**/*.js"
|
|
],
|
|
"testEnvironment": "node",
|
|
"modulePathIgnorePatterns": [
|
|
"__tests__/fixtures/"
|
|
],
|
|
"testPathIgnorePatterns": [
|
|
"__tests__/(fixtures|__mocks__)/",
|
|
"updates/",
|
|
"/_(temp|mock|install|init|helpers).js$"
|
|
]
|
|
}
|
|
}
|