204 Commits

Author SHA1 Message Date
Michael Jackson
6bab4325e1 Remove ./ from beginning of package.json main
Fixes #241
2020-03-16 14:23:38 -07:00
Christophe Querton
98534453aa Updates GitHub link, seems like unpkg moved. 2020-01-21 07:48:37 -08:00
Øystein Kjærnet
d16ea57fde Revert "Reflect origin in CORS"
This reverts commit 5a574ec4645a29f5e77cfa59f8f2c28b7f7aacf7.
2019-11-01 08:08:15 -07:00
Eric Rodrigues Pires
5a574ec464 Reflect origin in CORS
Fixes #226
2019-10-31 17:03:53 -07:00
Michael Jackson
fe833797e8 Use eslint-config-react-app 2019-10-20 21:55:56 -07:00
Michael Jackson
4bb6cf424a Re-enable stats 2019-09-24 21:59:49 -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
370a7f7d6c Add request logging to asyncHandler 2019-08-04 23:49:34 -07:00
Michael Jackson
4774e61d50 Add request logging 2019-08-04 23:43:21 -07:00
Michael Jackson
1c850c8662 Use GAE trace agent 2019-08-04 23:43:21 -07:00
Michael Jackson
be843179d4 Consolidate gunzip logic 2019-08-02 16:06:13 -07:00
Michael Jackson
746a6fddf5 Add previews for .txt files 2019-08-02 15:37:08 -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
88a4213caa Fix ?meta listings
Fixes ?meta listings (and other requests) for packages with a root
"directory" entry.

Fixes #210
2019-08-01 10:05:05 -07:00
Michael Jackson
e757febc33 Add tests for /browse redirects 2019-08-01 09:55:05 -07:00
Michael Jackson
a51a275e84 Fix small bug 2019-07-30 18:15:53 -07:00
Michael Jackson
ca3def5372 Disable stats loading on the client 2019-07-30 18:15:53 -07:00
Michael Jackson
7f90203a66 Better async error handling 2019-07-30 17:06:27 -07:00
Michael Jackson
7582c641fb Add tests for undefined query params
Fixes #169
2019-07-30 15:51:50 -07:00
Michael Jackson
92179a14a5 Fix typo
Closes #209
2019-07-29 23:11:40 -07:00
Michael Jackson
1e83e6f52e Small improvements for small screens 2019-07-28 18:04:11 -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
ea35b3c4b0 Add Google Analytics 2019-07-24 18:27:54 -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
64e2abc361 Style tweaks 2019-07-10 16:48:30 -07:00
Michael Jackson
40bd9dbec4 Finer-grained caching of data from npm 2019-07-10 16:27:19 -07:00
Michael Jackson
ce9206f59e Add tests for stats api 2019-07-10 13:24:27 -07:00
Michael Jackson
95d32536f7 Add test for regular file request 2019-07-10 08:06:00 -07:00
Michael Jackson
681fc99a68 Add more tests 2019-07-09 23:50:00 -07:00
Michael Jackson
d84a0296b2 Consolidate markup helpers module 2019-07-09 22:47:10 -07:00
Michael Jackson
f3ecddea47 Get tests passing again 2019-07-09 17:21:25 -07:00
Michael Jackson
2e3c9ff526 Consolidate stats module 2019-07-09 16:51:39 -07:00
Michael Jackson
b67e58d985 Consolidate npm utils in the same file 2019-07-09 16:16:43 -07:00
Michael Jackson
08c66598a0 Minor tweaks to client code 2019-07-09 16:13:55 -07:00
Michael Jackson
69030142da Tighten up global ESLint config 2019-07-09 15:43:45 -07:00
Michael Jackson
a3df5eb480 Tighten up ESLint client config 2019-07-09 14:29:20 -07:00
Michael Jackson
d5022035c1 Remove secret key 2019-07-09 11:21:54 -07:00
Michael Jackson
c06657d9a7 Remove log ingestion 2019-07-09 11:10:41 -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
Jakub Jastrzębski
c906861d8f Add space before <code> tag 2019-07-02 11:33:26 -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