Juan Picado @jotadeveloper
1307181005
Refactor streams, removed not needed dependency
2017-06-10 18:48:20 +02:00
Juan Picado
92df8bd178
Fix uppercase lint warning, streams use lowercase function name
2017-05-09 10:11:09 +02:00
Meeeeow
c80dd8958a
fix upstream search not work with gzip, close #156
2017-05-08 15:21:54 +08:00
Juan Picado
1e4ac1f842
Fix eslint warnings on up-storage.js
2017-04-29 23:08:50 +02:00
Juan Picado
3457e0925d
rebase from master branch
2017-04-23 22:28:35 +02:00
Juan Picado
f282941075
Apply partially new eslint rules, upgrade es6 and replace octal literals by chalk colors
2017-04-23 22:19:31 +02:00
Juan Picado
7970e52068
Migrate storages to classes
2017-04-23 21:28:08 +02:00
Juan Picado
b5acc054bf
clean up phase, moving es6 local storage
2017-04-23 21:24:30 +02:00
Meeeeow
caabe0ebda
WIP: fix upstream search
2017-04-22 02:34:30 +08:00
Madison Grubb
a7c4285a68
renaming 'sinopia' to verdaccio.
2016-11-07 12:15:38 -05:00
Jannis Achstetter
9f9c0fae71
Allow adding/overriding HTTP headers of uplinks via config
...
https://github.com/verdaccio/verdaccio/pull/67
2016-10-11 18:36:37 -05:00
Alex Kocharin
602f17c8b2
fix "unimplemented" error when uplink is offline
2015-10-03 19:22:45 +03:00
James Newell
ee6cf0eb9f
use encodeURIComponent and replace encoded '@' value with un-encoded value
2015-07-13 12:15:18 +10:00
James Newell
a9c749995a
only encode the / character to fix issue installing scoped packages from an upstream registry. @see #278 .
2015-07-08 09:59:35 +10:00
Alex Kocharin
0d266be965
up-storage: don't send X-Forwarded-For for proxies
...
It's not that important a feature to have, and it could break
some proxies.
ref https://github.com/rlidwka/sinopia/issues/254
2015-05-30 18:39:47 +03:00
Alex Kocharin
45edca2218
search: stream results from npmjs instead of buffering them
2015-05-17 01:29:16 +03:00
Alex Kocharin
f1bb9f83e6
up-storage: make streaming requests without buffering
2015-05-16 19:33:06 +03:00
Alex Kocharin
554d31d119
should add via header for all requests
2015-03-28 22:26:36 +03:00
Alex Kocharin
ed3eb37c4f
download packages using https
...
Or, in general, the same protocol as the registry;
this is what npm seem to be doing.
See issue #166 for details.
2014-12-23 00:29:26 +03:00
Alex Kocharin
6a778e8c17
change code style to jshttp
...
close #155 , see reasons there
This is a huge commit, so let me know if it will cause
any trouble, I might consider reverting it if it's the case.
2014-11-12 17:37:43 +03:00
Alex Kocharin
a5cd498f92
use http-errors package instead of custom stuff
2014-09-10 21:55:26 +04:00
Alex Kocharin
9275b2cc85
"msg" -> "message"
...
former one created too much confusion
2014-07-22 23:31:01 +04:00
Alex Kocharin
3f746eb7c8
fix logging: in search "error" can be legitimate output (package named "error"), not an actual error
...
ref #65
2014-06-24 06:46:35 +04:00
Alex Kocharin
a79fa68deb
lint
2014-04-14 00:44:17 +00:00
Alex Kocharin
9404e811a5
accept gzip from uplinks, fix #54
2014-03-30 21:05:42 +00:00
Alex Kocharin
a8cdfcd7cd
add err.status instead of checking for exact error message
...
it's done for consistency reasons
2014-03-29 04:32:05 +00:00
Alex Kocharin
8af77df0e0
fix zero timeouts in config
2014-03-13 19:45:47 +00:00
Alex Kocharin
48825a2e46
change intervals formatting to match nginx
...
see http://wiki.nginx.org/ConfigNotation
2014-03-08 04:37:16 +00:00
Alex Kocharin
6a2a463b76
count each failed request only once
2014-03-08 04:00:07 +00:00
Alex Kocharin
f1ec18dc4b
implement nginx-like logic to avoid hitting upstream when it's down
2014-03-08 03:54:28 +00:00
Alex Kocharin
6b9001ef6c
change interval formatting in config
...
All intervals are now in milliseconds. But you can add
multiples ("ms", "s", "m", "h", "d", "M", "y") to set
value using different units.
For example, value "1.5h" would mean 1.5 hours.
2014-03-08 03:49:59 +00:00
Alex Kocharin
9ff1203688
throw away incomplete downloads
2014-03-07 19:48:24 +00:00
Alex Kocharin
a891354a32
always return content-length for tarballs
2014-03-07 19:39:20 +00:00
Sam Day
58e98c7263
Support maxage for uplinks
2014-03-02 20:47:09 +11:00
Alex Kocharin
a5d0094669
remove npmsslkeys
...
See commit in npmconf:
e0b4a4e5cc
2014-02-23 20:55:41 +04:00
Alex Kocharin
6c838c7947
remove all replication-like functionality
...
apparently it was a bad idea, it's simpler to just run a single
sinopia instance as a master
TODO: write some help in readme about it
2013-12-27 17:23:14 +04:00
Alex Kocharin
985d705ad2
working on tags / incomplete
2013-12-27 17:06:30 +04:00
Alex Kocharin
b42687d230
Merge tag 'v0.5.9' of github.com:rlidwka/sinopia
...
0.5.9
2013-12-26 23:46:08 +04:00
Alex Kocharin
b44255de3c
set right Accept header for tarballs, closes #32
2013-12-26 23:25:19 +04:00
Alex Kocharin
b0fa7ee2d1
using eslint to check the code
2013-12-23 04:14:57 +04:00
Alex Kocharin
f43ec71ccb
0.5.7
2013-12-15 04:05:58 +04:00
Alex Kocharin
96b336acc3
if uplink doesn't answer, stop sending requests to it for a while (2 min default)
2013-12-12 02:00:26 +04:00
Alex Kocharin
7f7c056ecd
various bugfixes, camelcase for http headers
2013-12-09 08:00:16 +04:00
Alex Kocharin
bbb402f762
detecting http loops
2013-12-09 07:59:31 +04:00
Alex Kocharin
4d70d8065e
add via tag to prevent loops
2013-12-09 07:58:25 +04:00
Alex Kocharin
6e71913c46
setting default timeout to 30 seconds, #18
2013-12-08 02:37:27 +04:00
Brandon Nicholls
1d109f8071
Adding a configurable timeout for each uplink
2013-12-04 12:39:29 -07:00
Alex Kocharin
13242c8237
add proxy support, fix #13
2013-11-24 21:07:18 +04:00
Alex Kocharin
b2f6128e9c
style fix
2013-10-26 16:18:36 +04:00
Alex Kocharin
782abbb86d
honor etags when making requests
2013-10-22 13:31:48 +04:00