Commit Graph

26 Commits

Author SHA1 Message Date
MICHAEL JACKSON 4aba460a63 Fix extraction race condition
This is a fix for a subtle bug that caused unpkg to incorrectly send a
404 response for valid filenames on the initial request for a package.
It also prevents the same package from being downloaded from the
registry by multiple concurrent requests.

Fixes #38
Closes #39
2017-06-18 16:57:26 +10:00
MICHAEL JACKSON 9bc5d47f1e Remove Cache-Control header from HTML content 2017-06-09 13:36:31 -07:00
MICHAEL JACKSON db8f1fa5a0 Simplify middleware 2017-06-09 13:29:21 -07:00
MICHAEL JACKSON c3d9ede460 Return 404 for packages with no version info 2017-06-09 10:10:42 -07:00
MICHAEL JACKSON 40cac70cc2 Remove space from X-Forwarded-For value in logs 2017-06-06 16:00:40 -07:00
MICHAEL JACKSON 84075faeed Simplify server log format 2017-06-06 15:51:25 -07:00
MICHAEL JACKSON 24662763b1 Remove "blacklist" feature 2017-06-06 15:28:08 -07:00
MICHAEL JACKSON 2ac8dc554e Fix Content-Length header in various response helpers 2017-06-01 09:55:58 -05:00
MICHAEL JACKSON ff14e7d28d Encode URIs in redirect headers 2017-06-01 07:48:01 -05:00
MICHAEL JACKSON 08407a1a2d Fix syntax error 2017-06-01 07:22:45 -05:00
MICHAEL JACKSON 77007eacdf More generous gutters and margins on index pages 2017-05-30 10:03:02 -07:00
MICHAEL JACKSON 9dc0630bb3 Return top scores already sorted 2017-05-30 09:20:45 -07:00
MICHAEL JACKSON bca5babb7d Expire all stats keys eventually 2017-05-28 22:41:01 -07:00
MICHAEL JACKSON 1cb6233383 Move workers into server dir 2017-05-26 09:04:03 -07:00
MICHAEL JACKSON d26071ea76 Consolidate some stats server functions 2017-05-25 16:37:54 -07:00
MICHAEL JACKSON c0e8d771d0 Update local tmp dir name 2017-05-25 12:01:29 -07:00
MICHAEL JACKSON 84f297b400 Use SETEX for storing package.json configs
Also, remove option for in-memory cache.
2017-05-25 11:54:15 -07:00
MICHAEL JACKSON f297ba2217 Remove debug statement 2017-05-25 11:39:18 -07:00
MICHAEL JACKSON d2f318f53f Remove unneeded require 2017-05-25 11:31:31 -07:00
MICHAEL JACKSON f9a21522c2 Add code from express-unpkg repo 2017-05-25 11:25:42 -07:00
MICHAEL JACKSON 68b6b94e54 Add LOG_IDS env variable 2017-05-24 21:38:06 -07:00
MICHAEL JACKSON 56e39f8c11 Add comments about __SERVER_DATA__ 2017-05-19 10:59:04 -07:00
MICHAEL JACKSON 161a890623 Update Sentry config 2017-05-19 10:35:32 -07:00
MICHAEL JACKSON 3e10fabe43 Remove Trace, add Sentry 2017-04-24 14:39:53 -07:00
MICHAEL JACKSON 9381525d05 Remove logging of package requests 2017-04-19 16:35:55 -07:00
MICHAEL JACKSON 0f5c584104 Rewrite frontend using create-react-app 2017-03-25 23:57:22 -07:00