isaacs
aca48cfbe5
fetch: Send referer and npm-session headers
2014-05-05 16:16:51 -07:00
isaacs
1ef9748c81
fs WriteStream has destroy(), not close()
2013-04-28 21:14:11 -07:00
isaacs
66dcf0b2b6
fix 'cb() never called' errors due to v0.10.0 tls bug
2013-03-20 16:47:14 -07:00
bogushevich
586edf0127
Set https-proxy to http by default
2012-08-19 21:20:07 -07:00
Trent Mick
6b8d7d7072
only retry on 408, 5xx or no response
2012-06-28 18:32:55 -07:00
Trent Mick
e7d45ccca8
fetch.js: Remove onResponse method
2012-06-27 18:05:41 -07:00
isaacs
2568e40a39
Replace the log util with npmlog module
...
This feels so good. lib/utils/log.js is the worst kind of
glue code that keeps the npm project from being properly
abstracted into independent pieces.
In the process, also cleaned up a lot of unproductive logging,
and made the npm-debug.log generated on errors be a bit more
easy to read.
2012-06-06 14:56:35 -07:00
Jens Grunert
8883ff9b90
Add configurable User-Agent to request header
2012-04-06 14:26:31 -07:00
isaacs
37c8f97f58
Update to use mkdirp and chownr modules
2012-03-28 18:22:24 -07:00
isaacs
521dcf6b8d
Use the conf ca when talking to the registry, only
2012-03-01 16:03:00 -08:00
isaacs
b35261b9a0
Remove custom getAgent code
2012-03-01 15:50:45 -08:00
isaacs
7839d3cd74
cb undefined in fetch.js
2011-12-20 10:04:48 -08:00
isaacs
d4124a93ee
Show full fetch url
2011-12-08 18:07:31 -08:00
isaacs
4e5130bdce
Add 'http' loglevel, by default
2011-12-07 17:59:32 -08:00
isaacs
4eb8f6b7bf
Avoid accidentally opening npm.js with WSH
2011-10-14 14:06:12 -07:00
isaacs
dd7359a5d2
Close #1509 Add 'umask' config option
2011-10-12 11:02:30 -07:00
isaacs
c3395120f6
Specify CA properly for http2
2011-09-13 10:07:04 -07:00
isaacs
8ac411ddb5
Use the supplied CA from the configs
2011-09-10 15:17:58 -07:00
isaacs
cce89fb0a3
Add strict-ssl config, pass to request
2011-09-04 23:24:21 -07:00
isaacs
cbec402e63
Add auth onto the request properly
2011-09-04 21:20:20 -07:00
isaacs
d95c88b384
Pass proxy to request
2011-09-04 13:33:20 -07:00
isaacs
5c6e8b03f4
Use request for fetching stuff
2011-09-04 12:29:19 -07:00
isaacs
0c4232c83b
Fix #1335 Use https-proxy for https requests.
2011-09-01 08:39:06 -07:00
isaacs
6f7a5d3c9d
Don't set agent:false if http2 is in use
2011-08-14 12:10:43 -07:00
isaacs
645cef3e77
Put .js on filenames
2011-08-06 13:51:59 -07:00
isaacs
56341bbb72
s/sys/util/g finally
2011-07-20 02:58:40 -07:00
isaacs
98b6a1070a
Abstract out graceful-fs
2011-07-20 01:58:33 -07:00
isaacs
7a17535736
typo. s/authentication/authorization/
2011-04-13 13:36:02 -07:00
isaacs
d45ab84c66
Typos
2011-04-13 12:50:30 -07:00
isaacs
33ce37a9b7
Close #804 Pass auth for tarball fetching
2011-04-13 12:32:08 -07:00
isaacs
6f2909cd59
Close GH-792 Don't set host to 'undefined'
2011-04-10 17:02:53 -07:00
isaacs
7e4b7bc96a
Closes GH-753 Set the host header properly with port
2011-03-28 09:34:30 -07:00
isaacs
b8698c5f39
Closes GH-726 Put port on hostname.
2011-03-21 08:38:05 -07:00
isaacs
4926fa87dc
Closes GH-674 Load https lazily
2011-03-06 09:45:41 -08:00
isaacs
dbce209238
Closes GH-610 Better proxy stuff.
2011-02-22 16:59:48 -08:00
isaacs
43badf5839
Add debuggery around proxy stuff
2011-02-22 14:14:52 -08:00
isaacs
24a2519bc2
add fixme about agent:false
2011-02-16 12:42:58 -08:00
isaacs
fe3543216d
Busy fetches not working with connection pooling.
...
Not sure why, but this is causing node to abort and skip the "exit"
event. Some kind of terrific crash.
2011-02-14 15:33:33 -08:00
isaacs
6a78386442
Closes GH-526 Use the new http/https client
2011-02-14 14:37:02 -08:00
isaacs
5a4d3de3c8
Don't require('buffer'). It's a global now.
2011-02-04 09:45:34 -08:00
isaacs
e091baf278
Nevermind, they're staying.
...
Revert "Bundled url and querystring, just in case."
This reverts commit dcf3f575d9 .
2011-01-26 09:55:00 -08:00
isaacs
dcf3f575d9
Bundled url and querystring, just in case.
2011-01-25 14:22:04 -08:00
isaacs
27b9f7b4d7
Fix #499 . Only mkdir when appropriate.
...
This is a pretty significant clean-up of many relics.
Once upon a time, npm was only one or two commands, and when you needed
a directory made, by golly, you made it yourself. If you needed to
write a file, you wrote it yourself. Uphill in the snow. Yeah.
Then, modernity arrived, and things got abstracted. Now, instead of
writing your own file, the kids today with their rock and roll music and
their hair and their marijuana cigarettes, you know what they do? They
call some external utility to write it FOR them!
That means that there's no need to make any directories at config
loading time. Since many commands don't need it, this is a nuisance.
Also, it's more clutter, and interferes with the planned permissions
handling schemes.
2011-01-11 18:05:29 -08:00
isaacs
9463feba27
Rip out this manual crap in favor of sys.pump
...
This resolves an issue that I could only reproduce by running `make
test` over and over again about 10 times. Not sure what changed, but
it's been make-test-ing for the last hour, and the issue hasn't
resurfaced.
2011-01-10 16:26:48 -08:00
isaacs
ce9a1db60a
response.destroy fails.
2011-01-01 22:24:31 -08:00
isaacs
9a914d2991
s/response.end/response.destroy/
2010-12-24 08:18:32 -08:00
isaacs
28389bf8c5
Use "w" instead of O_CREAT|O_WRONLY|O_TRUNC
2010-11-22 11:00:07 -08:00
isaacs
16a018048b
Remove last *Sync stuff
...
Fetches are now done without even a momentary synchronous bit of IO. npm may be used programmatically.
2010-10-24 23:04:00 -07:00
isaacs
4885fe4b21
Avoid the sys warnings.
2010-10-15 13:48:45 -07:00
isaacs
a7438587eb
Handle hosts with ports
2010-10-05 12:28:13 -07:00