Commit Graph

56 Commits

Author SHA1 Message Date
Michael Jackson 6568d88e45 Remove GAE logging 2021-04-04 05:58:00 -07:00
Michael Jackson 6bab4325e1 Remove ./ from beginning of package.json main
Fixes #241
2020-03-16 14:23:38 -07:00
Michael Jackson f6147e0e7c Fix lint error 2019-08-09 08:50:55 -07:00
Michael Jackson 6ad61a984f Remove unneeded req params related to the URL 2019-08-08 15:19:29 -07:00
Michael Jackson 091e13b46a Use express.static directly 2019-08-08 14:24:19 -07:00
Michael Jackson dfe2f29fe0 More granular control over query handling 2019-08-08 10:00:34 -07:00
Michael Jackson a718d90549 Fix /browse query redirects 2019-08-08 09:46:12 -07:00
Michael Jackson 8aa619727e Use GOOGLE_CLOUD_PROJECT instead of GAE_APPLICATION 2019-08-05 09:47:45 -07:00
Michael Jackson 4774e61d50 Add request logging 2019-08-04 23:43:21 -07:00
Michael Jackson be843179d4 Consolidate gunzip logic 2019-08-02 16:06:13 -07:00
Michael Jackson c3dc2dd014 Speed up test suite by using local npm.js stub 2019-08-01 18:01:12 -07:00
Michael Jackson e757febc33 Add tests for /browse redirects 2019-08-01 09:55:05 -07:00
Michael Jackson 7f90203a66 Better async error handling 2019-07-30 17:06:27 -07:00
Michael Jackson 34baab07ab New "browse" UI
Also, separated out browse, ?meta, and ?module request handlers.

Fixes #82
2019-07-26 15:31:46 -07:00
Michael Jackson ab83549744 Remove addLeadingSlash util 2019-07-10 21:59:23 -07:00
Michael Jackson b2d8e28344 Remove requireAuth middleware 2019-07-10 17:13:24 -07:00
Michael Jackson 40bd9dbec4 Finer-grained caching of data from npm 2019-07-10 16:27:19 -07:00
Michael Jackson 681fc99a68 Add more tests 2019-07-09 23:50:00 -07:00
Michael Jackson f3ecddea47 Get tests passing again 2019-07-09 17:21:25 -07:00
Michael Jackson b67e58d985 Consolidate npm utils in the same file 2019-07-09 16:16:43 -07:00
Michael Jackson 390498fefd Remove auth 2019-07-09 11:06:49 -07:00
Michael Jackson aded6f9dbc Decrease CDN cache time to 10 mins
Fixes #186
2019-07-03 14:32:32 -07:00
Michael Jackson 90473733a5 Do not return non-ESM on ?module requests 2019-07-02 21:16:28 -07:00
Michael Jackson bfecd1955a Fix module resolution
Fixes a bug where a directory with the same name as a file would be used
as the matching entry instead of that file depending on the order they
appear in the tarball.
2019-06-10 21:02:29 -07:00
Michael Jackson 397a9f8915 Inline query sanitizer 2019-06-10 21:02:29 -07:00
Michael Jackson bade9a8d28 Remove _metadata and _module routes
See #185
2019-06-10 21:02:22 -07:00
Michael Jackson 5df576c6be Add /_metadata and /_module functions
Also deprecate ?meta and ?module query params.
2019-02-23 22:04:16 -08:00
Michael Jackson 20c4926e13 Lengthen cache ttl on 404s 2019-01-28 12:15:05 -08:00
Michael Jackson 5533725f64 Remove Firebase hosting, back to Express 2019-01-26 15:20:15 -08:00
Michael Jackson 3526660620 Tweak max-age for semver/tag redirects 2019-01-17 19:13:56 -08:00
Michael Jackson 276013696e Cache 302s for 4 hours 2019-01-17 18:36:46 -08:00
Michael Jackson 9cdcf90c8a Add HTTP request logging 2019-01-15 08:42:54 -08:00
Michael Jackson dc2950d60f Remove blacklist code 2019-01-15 08:06:12 -08:00
Michael Jackson 5e7323f389 Remove incrementCounter utility 2019-01-15 07:59:53 -08:00
Michael Jackson 45c48cba26 Merge branch 'master' into firebase-hosting 2019-01-08 21:11:12 -08:00
Michael Jackson 0baec61184 Experiment w cache times on redirects 2019-01-08 20:54:16 -08:00
Michael Jackson ab97ff2cc4 Merge branch 'master' into firebase-hosting 2019-01-08 19:02:08 -08:00
Michael Jackson 0622848255 Increase some cache times 2019-01-08 06:47:04 -08:00
Michael Jackson 0baa63d525 Merge branch 'master' into firebase-hosting 2019-01-07 20:29:16 -08:00
Michael Jackson e83103c6b5 Increase redirect timeout to 5 minutes 2019-01-06 21:15:24 -08:00
Michael Jackson d6fde9fb33 Remove "immutable" from long-term responses
We had a bug recently which sent out some bad "immutable" responses. We
need to have a better process around cutting releases before we can be
sure it doesn't happen again.
2019-01-06 21:10:18 -08:00
Michael Jackson 31e7d3865a Experimental port to Firebase hosting 2019-01-05 17:14:36 -08:00
Michael Jackson 99312c75b0 Use consistent Cache-Tag format 2019-01-01 18:03:54 -08:00
Michael Jackson ea7f3ab3f3 Merge branch 'master' of https://github.com/vamshi29292/unpkg.com into vamshi29292-master 2018-12-20 20:02:19 -08:00
Michael Jackson 19b2e5574b Use single quotes :P 2018-12-17 09:38:05 -08:00
Vamshi Palreddy 2592c5eca6 Ignore multiple slashes in file path. 2018-10-29 03:25:52 +05:30
Michael Jackson 9dbe412783 Do not serve index.html files at / URLs
This actually broke some old behavior in packages that publish
index.html files but aren't counting on unpkg to serve them.

Closes #130
2018-09-24 10:37:02 -07:00
Michael Jackson 5fac968215 Better variable name 2018-09-05 07:32:02 -07:00
Michael Jackson 21ed6ee42e Add ?module support for HTML files
Closes #113
2018-09-04 15:58:52 -07:00
Michael Jackson 29b7725597 Continue when blacklist is unavailable 2018-09-03 11:30:55 -07:00