107 lines
3.4 KiB
JSON
107 lines
3.4 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "timed-out@^4.0.0",
|
|
"scope": null,
|
|
"escapedName": "timed-out",
|
|
"name": "timed-out",
|
|
"rawSpec": "^4.0.0",
|
|
"spec": ">=4.0.0 <5.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/got"
|
|
]
|
|
],
|
|
"_from": "timed-out@>=4.0.0 <5.0.0",
|
|
"_id": "timed-out@4.0.1",
|
|
"_inCache": true,
|
|
"_location": "/timed-out",
|
|
"_nodeVersion": "6.9.3",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-18-east.internal.npmjs.com",
|
|
"tmp": "tmp/timed-out-4.0.1.tgz_1484575090971_0.24377561057917774"
|
|
},
|
|
"_npmUser": {
|
|
"name": "floatdrop",
|
|
"email": "floatdrop@gmail.com"
|
|
},
|
|
"_npmVersion": "3.10.10",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "timed-out@^4.0.0",
|
|
"scope": null,
|
|
"escapedName": "timed-out",
|
|
"name": "timed-out",
|
|
"rawSpec": "^4.0.0",
|
|
"spec": ">=4.0.0 <5.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/got",
|
|
"/raven"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz",
|
|
"_shasum": "f32eacac5a175bea25d7fab565ab3ed8741ef56f",
|
|
"_shrinkwrap": null,
|
|
"_spec": "timed-out@^4.0.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/got",
|
|
"author": {
|
|
"name": "Vsevolod Strukchinsky",
|
|
"email": "floatdrop@gmail.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/floatdrop/timed-out/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged",
|
|
"devDependencies": {
|
|
"mocha": "*",
|
|
"xo": "^0.16.0"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "f32eacac5a175bea25d7fab565ab3ed8741ef56f",
|
|
"tarball": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
},
|
|
"files": [
|
|
"index.js"
|
|
],
|
|
"gitHead": "2f00fdafb6af0a9b91fb23a04a9271766c5559a4",
|
|
"homepage": "https://github.com/floatdrop/timed-out#readme",
|
|
"keywords": [
|
|
"http",
|
|
"https",
|
|
"get",
|
|
"got",
|
|
"url",
|
|
"uri",
|
|
"request",
|
|
"util",
|
|
"utility",
|
|
"simple"
|
|
],
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "floatdrop",
|
|
"email": "floatdrop@gmail.com"
|
|
}
|
|
],
|
|
"name": "timed-out",
|
|
"optionalDependencies": {},
|
|
"readme": "# timed-out [![Build Status](https://travis-ci.org/floatdrop/timed-out.svg?branch=master)](https://travis-ci.org/floatdrop/timed-out)\n\n> Timeout HTTP/HTTPS requests\n\nEmit Error object with `code` property equal `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged.\n\n## Usage\n\n```js\nvar get = require('http').get;\nvar timeout = require('timed-out');\n\nvar req = get('http://www.google.ru');\ntimeout(req, 2000); // Set 2 seconds limit\n```\n\n### API\n\n#### timedout(request, time)\n\n##### request\n\n*Required* \nType: [`ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest)\n\nThe request to watch on.\n\n##### time\n\n*Required* \nType: `number` or `object`\n\nTime in milliseconds to wait for `connect` event on socket and also time to wait on inactive socket.\n\nOr you can pass Object with following fields:\n\n- `connect` - time to wait for connection\n- `socket` - time to wait for activity on socket\n\n## License\n\nMIT © [Vsevolod Strukchinsky](floatdrop@gmail.com)\n",
|
|
"readmeFilename": "readme.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/floatdrop/timed-out.git"
|
|
},
|
|
"scripts": {
|
|
"test": "xo && mocha"
|
|
},
|
|
"version": "4.0.1"
|
|
}
|