Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/delayed-stream.json

raw
1 {
2 "_id": "delayed-stream",
3 "_rev": "21-69d82fbea9ea8bce8bf49ebfb36055d1",
4 "name": "delayed-stream",
5 "description": "Buffers events from a stream until you are ready to handle them.",
6 "dist-tags": {
7 "latest": "1.0.0"
8 },
9 "versions": {
10 "0.0.0": {
11 "author": {
12 "name": "Felix Geisendörfer",
13 "email": "[email protected]",
14 "url": "http://debuggable.com/"
15 },
16 "name": "delayed-stream",
17 "description": "TBD",
18 "version": "0.0.0",
19 "homepage": "https://github.com/felixge/node-delayed-stream",
20 "repository": {
21 "type": "git",
22 "url": "git://github.com/felixge/node-delayed-stream.git"
23 },
24 "main": "./lib/delayed_stream",
25 "engines": {
26 "node": "*"
27 },
28 "dependencies": {},
29 "devDependencies": {},
30 "_id": "[email protected]",
31 "_engineSupported": true,
32 "_npmVersion": "1.0.3",
33 "_nodeVersion": "v0.4.8-pre",
34 "_defaultsLoaded": true,
35 "dist": {
36 "shasum": "4bfe02a4a905b80aff019c3edcc53cadef03db8f",
37 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.0.tgz"
38 },
39 "scripts": {},
40 "directories": {}
41 },
42 "0.0.1": {
43 "author": {
44 "name": "Felix Geisendörfer",
45 "email": "[email protected]",
46 "url": "http://debuggable.com/"
47 },
48 "name": "delayed-stream",
49 "description": "Buffers events from a stream until you are ready to handle them.",
50 "version": "0.0.1",
51 "homepage": "https://github.com/felixge/node-delayed-stream",
52 "repository": {
53 "type": "git",
54 "url": "git://github.com/felixge/node-delayed-stream.git"
55 },
56 "main": "./lib/delayed_stream",
57 "engines": {
58 "node": ">=0.4.8"
59 },
60 "dependencies": {},
61 "devDependencies": {
62 "fake": "0.2.0",
63 "far": "0.0.1"
64 },
65 "_id": "[email protected]",
66 "_engineSupported": false,
67 "_npmVersion": "1.0.3",
68 "_nodeVersion": "v0.4.8-pre",
69 "_defaultsLoaded": true,
70 "dist": {
71 "shasum": "5a708417b75b3ba0aa9ac02c5f0006e252c53c24",
72 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.1.tgz"
73 },
74 "scripts": {},
75 "directories": {}
76 },
77 "0.0.2": {
78 "author": {
79 "name": "Felix Geisendörfer",
80 "email": "[email protected]",
81 "url": "http://debuggable.com/"
82 },
83 "name": "delayed-stream",
84 "description": "Buffers events from a stream until you are ready to handle them.",
85 "version": "0.0.2",
86 "homepage": "https://github.com/felixge/node-delayed-stream",
87 "repository": {
88 "type": "git",
89 "url": "git://github.com/felixge/node-delayed-stream.git"
90 },
91 "main": "./lib/delayed_stream",
92 "engines": {
93 "node": ">=0.4.0"
94 },
95 "dependencies": {},
96 "devDependencies": {
97 "fake": "0.2.0",
98 "far": "0.0.1"
99 },
100 "_id": "[email protected]",
101 "_engineSupported": true,
102 "_npmVersion": "1.0.3",
103 "_nodeVersion": "v0.4.8-pre",
104 "_defaultsLoaded": true,
105 "dist": {
106 "shasum": "f122955bbbe3f930237111905801dee6b882b5f1",
107 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.2.tgz"
108 },
109 "scripts": {},
110 "directories": {}
111 },
112 "0.0.3": {
113 "author": {
114 "name": "Felix Geisendörfer",
115 "email": "[email protected]",
116 "url": "http://debuggable.com/"
117 },
118 "name": "delayed-stream",
119 "description": "Buffers events from a stream until you are ready to handle them.",
120 "version": "0.0.3",
121 "homepage": "https://github.com/felixge/node-delayed-stream",
122 "repository": {
123 "type": "git",
124 "url": "git://github.com/felixge/node-delayed-stream.git"
125 },
126 "main": "./lib/delayed_stream",
127 "engines": {
128 "node": ">=0.4.0"
129 },
130 "dependencies": {},
131 "devDependencies": {
132 "fake": "0.2.0",
133 "far": "0.0.1"
134 },
135 "_id": "[email protected]",
136 "_engineSupported": true,
137 "_npmVersion": "1.0.3",
138 "_nodeVersion": "v0.4.8-pre",
139 "_defaultsLoaded": true,
140 "dist": {
141 "shasum": "c504cc899c309fca4a2ac907c6b71957c5f1d272",
142 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.3.tgz"
143 },
144 "scripts": {},
145 "directories": {}
146 },
147 "0.0.4": {
148 "author": {
149 "name": "Felix Geisendörfer",
150 "email": "[email protected]",
151 "url": "http://debuggable.com/"
152 },
153 "name": "delayed-stream",
154 "description": "Buffers events from a stream until you are ready to handle them.",
155 "version": "0.0.4",
156 "homepage": "https://github.com/felixge/node-delayed-stream",
157 "repository": {
158 "type": "git",
159 "url": "git://github.com/felixge/node-delayed-stream.git"
160 },
161 "main": "./lib/delayed_stream",
162 "engines": {
163 "node": ">=0.4.0"
164 },
165 "dependencies": {},
166 "devDependencies": {
167 "fake": "0.2.0",
168 "far": "0.0.1"
169 },
170 "_id": "[email protected]",
171 "_engineSupported": true,
172 "_npmVersion": "1.0.3",
173 "_nodeVersion": "v0.4.9-pre",
174 "_defaultsLoaded": true,
175 "dist": {
176 "shasum": "318e307e9c061635942f414ca460cc8143ed8c08",
177 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.4.tgz"
178 },
179 "scripts": {},
180 "directories": {}
181 },
182 "0.0.5": {
183 "author": {
184 "name": "Felix Geisendörfer",
185 "email": "[email protected]",
186 "url": "http://debuggable.com/"
187 },
188 "name": "delayed-stream",
189 "description": "Buffers events from a stream until you are ready to handle them.",
190 "version": "0.0.5",
191 "homepage": "https://github.com/felixge/node-delayed-stream",
192 "repository": {
193 "type": "git",
194 "url": "git://github.com/felixge/node-delayed-stream.git"
195 },
196 "main": "./lib/delayed_stream",
197 "engines": {
198 "node": ">=0.4.0"
199 },
200 "dependencies": {},
201 "devDependencies": {
202 "fake": "0.2.0",
203 "far": "0.0.1"
204 },
205 "_id": "[email protected]",
206 "_engineSupported": true,
207 "_npmVersion": "1.0.3",
208 "_nodeVersion": "v0.4.9-pre",
209 "_defaultsLoaded": true,
210 "dist": {
211 "shasum": "d4b1f43a93e8296dfe02694f4680bc37a313c73f",
212 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz"
213 },
214 "scripts": {},
215 "directories": {}
216 },
217 "0.0.6": {
218 "author": {
219 "name": "Felix Geisendörfer",
220 "email": "[email protected]",
221 "url": "http://debuggable.com/"
222 },
223 "name": "delayed-stream",
224 "description": "Buffers events from a stream until you are ready to handle them.",
225 "version": "0.0.6",
226 "homepage": "https://github.com/felixge/node-delayed-stream",
227 "repository": {
228 "type": "git",
229 "url": "git://github.com/felixge/node-delayed-stream.git"
230 },
231 "main": "./lib/delayed_stream",
232 "engines": {
233 "node": ">=0.4.0"
234 },
235 "dependencies": {},
236 "devDependencies": {
237 "fake": "0.2.0",
238 "far": "0.0.1"
239 },
240 "bugs": {
241 "url": "https://github.com/felixge/node-delayed-stream/issues"
242 },
243 "_id": "[email protected]",
244 "dist": {
245 "shasum": "a2646cb7ec3d5d7774614670a7a65de0c173edbc",
246 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.6.tgz"
247 },
248 "_from": ".",
249 "_npmVersion": "1.4.3",
250 "_npmUser": {
251 "name": "felixge",
252 "email": "[email protected]"
253 },
254 "maintainers": [
255 {
256 "name": "felixge",
257 "email": "[email protected]"
258 }
259 ],
260 "directories": {}
261 },
262 "0.0.7": {
263 "author": {
264 "name": "Felix Geisendörfer",
265 "email": "[email protected]",
266 "url": "http://debuggable.com/"
267 },
268 "contributors": [
269 {
270 "name": "Mike Atkins",
271 "email": "[email protected]"
272 }
273 ],
274 "name": "delayed-stream",
275 "description": "Buffers events from a stream until you are ready to handle them.",
276 "license": "MIT",
277 "version": "0.0.7",
278 "homepage": "https://github.com/felixge/node-delayed-stream",
279 "repository": {
280 "type": "git",
281 "url": "git://github.com/felixge/node-delayed-stream.git"
282 },
283 "main": "./lib/delayed_stream",
284 "engines": {
285 "node": ">=0.4.0"
286 },
287 "scripts": {
288 "test": "make test"
289 },
290 "dependencies": {},
291 "devDependencies": {
292 "fake": "0.2.0",
293 "far": "0.0.1"
294 },
295 "gitHead": "b419f294ad485b0328c4ceb94173b93ae3ab209d",
296 "bugs": {
297 "url": "https://github.com/felixge/node-delayed-stream/issues"
298 },
299 "_id": "[email protected]",
300 "_shasum": "dfe96aad0341e033178139c9eca5a8bd41c778fc",
301 "_from": ".",
302 "_npmVersion": "2.8.3",
303 "_nodeVersion": "1.6.4",
304 "_npmUser": {
305 "name": "apechimp",
306 "email": "[email protected]"
307 },
308 "dist": {
309 "shasum": "dfe96aad0341e033178139c9eca5a8bd41c778fc",
310 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.7.tgz"
311 },
312 "maintainers": [
313 {
314 "name": "felixge",
315 "email": "[email protected]"
316 },
317 {
318 "name": "apechimp",
319 "email": "[email protected]"
320 }
321 ],
322 "directories": {}
323 },
324 "1.0.0": {
325 "author": {
326 "name": "Felix Geisendörfer",
327 "email": "[email protected]",
328 "url": "http://debuggable.com/"
329 },
330 "contributors": [
331 {
332 "name": "Mike Atkins",
333 "email": "[email protected]"
334 }
335 ],
336 "name": "delayed-stream",
337 "description": "Buffers events from a stream until you are ready to handle them.",
338 "license": "MIT",
339 "version": "1.0.0",
340 "homepage": "https://github.com/felixge/node-delayed-stream",
341 "repository": {
342 "type": "git",
343 "url": "git://github.com/felixge/node-delayed-stream.git"
344 },
345 "main": "./lib/delayed_stream",
346 "engines": {
347 "node": ">=0.4.0"
348 },
349 "scripts": {
350 "test": "make test"
351 },
352 "dependencies": {},
353 "devDependencies": {
354 "fake": "0.2.0",
355 "far": "0.0.1"
356 },
357 "gitHead": "07a9dc99fb8f1a488160026b9ad77493f766fb84",
358 "bugs": {
359 "url": "https://github.com/felixge/node-delayed-stream/issues"
360 },
361 "_id": "[email protected]",
362 "_shasum": "df3ae199acadfb7d440aaae0b29e2272b24ec619",
363 "_from": ".",
364 "_npmVersion": "2.8.3",
365 "_nodeVersion": "1.6.4",
366 "_npmUser": {
367 "name": "apechimp",
368 "email": "[email protected]"
369 },
370 "dist": {
371 "shasum": "df3ae199acadfb7d440aaae0b29e2272b24ec619",
372 "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz"
373 },
374 "maintainers": [
375 {
376 "name": "felixge",
377 "email": "[email protected]"
378 },
379 {
380 "name": "apechimp",
381 "email": "[email protected]"
382 }
383 ],
384 "directories": {}
385 }
386 },
387 "maintainers": [
388 {
389 "email": "[email protected]",
390 "name": "apechimp"
391 },
392 {
393 "email": "[email protected]",
394 "name": "felixge"
395 }
396 ],
397 "time": {
398 "modified": "2017-12-28T04:09:04.959Z",
399 "created": "2011-05-22T13:50:32.615Z",
400 "0.0.0": "2011-05-22T13:50:34.131Z",
401 "0.0.1": "2011-05-22T20:51:10.182Z",
402 "0.0.2": "2011-05-22T20:54:55.117Z",
403 "0.0.3": "2011-05-22T21:39:43.149Z",
404 "0.0.4": "2011-05-24T08:02:37.327Z",
405 "0.0.5": "2011-05-24T08:09:45.283Z",
406 "0.0.6": "2014-11-23T13:53:23.249Z",
407 "0.0.7": "2015-04-30T21:58:57.409Z",
408 "1.0.0": "2015-04-30T22:10:29.726Z"
409 },
410 "author": {
411 "name": "Felix Geisendörfer",
412 "email": "[email protected]",
413 "url": "http://debuggable.com/"
414 },
415 "repository": {
416 "type": "git",
417 "url": "git://github.com/felixge/node-delayed-stream.git"
418 },
419 "readme": "# delayed-stream\n\nBuffers events from a stream until you are ready to handle them.\n\n## Installation\n\n``` bash\nnpm install delayed-stream\n```\n\n## Usage\n\nThe following example shows how to write a http echo server that delays its\nresponse by 1000 ms.\n\n``` javascript\nvar DelayedStream = require('delayed-stream');\nvar http = require('http');\n\nhttp.createServer(function(req, res) {\n var delayed = DelayedStream.create(req);\n\n setTimeout(function() {\n res.writeHead(200);\n delayed.pipe(res);\n }, 1000);\n});\n```\n\nIf you are not using `Stream#pipe`, you can also manually release the buffered\nevents by calling `delayedStream.resume()`:\n\n``` javascript\nvar delayed = DelayedStream.create(req);\n\nsetTimeout(function() {\n // Emit all buffered events and resume underlaying source\n delayed.resume();\n}, 1000);\n```\n\n## Implementation\n\nIn order to use this meta stream properly, here are a few things you should\nknow about the implementation.\n\n### Event Buffering / Proxying\n\nAll events of the `source` stream are hijacked by overwriting the `source.emit`\nmethod. Until node implements a catch-all event listener, this is the only way.\n\nHowever, delayed-stream still continues to emit all events it captures on the\n`source`, regardless of whether you have released the delayed stream yet or\nnot.\n\nUpon creation, delayed-stream captures all `source` events and stores them in\nan internal event buffer. Once `delayedStream.release()` is called, all\nbuffered events are emitted on the `delayedStream`, and the event buffer is\ncleared. After that, delayed-stream merely acts as a proxy for the underlaying\nsource.\n\n### Error handling\n\nError events on `source` are buffered / proxied just like any other events.\nHowever, `delayedStream.create` attaches a no-op `'error'` listener to the\n`source`. This way you only have to handle errors on the `delayedStream`\nobject, rather than in two places.\n\n### Buffer limits\n\ndelayed-stream provides a `maxDataSize` property that can be used to limit\nthe amount of data being buffered. In order to protect you from bad `source`\nstreams that don't react to `source.pause()`, this feature is enabled by\ndefault.\n\n## API\n\n### DelayedStream.create(source, [options])\n\nReturns a new `delayedStream`. Available options are:\n\n* `pauseStream`\n* `maxDataSize`\n\nThe description for those properties can be found below.\n\n### delayedStream.source\n\nThe `source` stream managed by this object. This is useful if you are\npassing your `delayedStream` around, and you still want to access properties\non the `source` object.\n\n### delayedStream.pauseStream = true\n\nWhether to pause the underlaying `source` when calling\n`DelayedStream.create()`. Modifying this property afterwards has no effect.\n\n### delayedStream.maxDataSize = 1024 * 1024\n\nThe amount of data to buffer before emitting an `error`.\n\nIf the underlaying source is emitting `Buffer` objects, the `maxDataSize`\nrefers to bytes.\n\nIf the underlaying source is emitting JavaScript strings, the size refers to\ncharacters.\n\nIf you know what you are doing, you can set this property to `Infinity` to\ndisable this feature. You can also modify this property during runtime.\n\n### delayedStream.dataSize = 0\n\nThe amount of data buffered so far.\n\n### delayedStream.readable\n\nAn ECMA5 getter that returns the value of `source.readable`.\n\n### delayedStream.resume()\n\nIf the `delayedStream` has not been released so far, `delayedStream.release()`\nis called.\n\nIn either case, `source.resume()` is called.\n\n### delayedStream.pause()\n\nCalls `source.pause()`.\n\n### delayedStream.pipe(dest)\n\nCalls `delayedStream.resume()` and then proxies the arguments to `source.pipe`.\n\n### delayedStream.release()\n\nEmits and clears all events that have been buffered up so far. This does not\nresume the underlaying source, use `delayedStream.resume()` instead.\n\n## License\n\ndelayed-stream is licensed under the MIT license.\n",
420 "homepage": "https://github.com/felixge/node-delayed-stream",
421 "bugs": {
422 "url": "https://github.com/felixge/node-delayed-stream/issues"
423 },
424 "readmeFilename": "Readme.md",
425 "contributors": [
426 {
427 "name": "Mike Atkins",
428 "email": "[email protected]"
429 }
430 ],
431 "license": "MIT",
432 "users": {
433 "mojaray2k": true,
434 "ganeshkbhat": true
435 },
436 "_attachments": {}
437 }