Commit Graph

202 Commits

Author SHA1 Message Date
Michael Jackson c7231b4c5e Use SETNX for caching package info 2018-07-16 10:17:00 -07:00
Michael Jackson 7543295e4e Better code clarity 2018-07-16 08:44:59 -07:00
Michael Jackson 6c3c71755a Fix relative name computation 2018-07-15 21:34:36 -07:00
Michael Jackson 6075deb73f Return null for 404s 2018-07-15 16:29:54 -07:00
Michael Jackson c464dc3c3e More detailed error output on registry fetch errors 2018-07-15 12:41:36 -07:00
Michael Jackson d05ff65089 More readable errors for failed registry requests 2018-07-15 09:56:51 -07:00
Michael Jackson 5f0fa21063 Re-use registry HTTP agent for package info requests 2018-07-14 17:45:37 -07:00
Michael Jackson 4360fbf7d6 Fix missing require 2018-07-14 15:12:37 -07:00
Michael Jackson eb75d866b7 Use persistent HTTP connection to the registry 2018-07-14 14:46:33 -07:00
Michael Jackson 5969ecc6ef Don't cache packages on the filesystem
Should help with transient errors reported in #86, #104, and #110
2018-07-14 14:46:33 -07:00
Michael Jackson 43379bb73d Use global React, ReactDOM, and ReactRouterDOM from unpkg 2018-07-10 07:49:35 +10:00
Michael Jackson aa118eecef Remove unnecessary require 2018-07-10 07:04:10 +10:00
Michael Jackson 5b747dc48b Add serveMainPage action 2018-07-10 07:03:53 +10:00
Michael Jackson 8ef362ba09 Separate out cache + data servers 2018-07-06 10:53:16 -07:00
Michael Jackson cb47fbf775 Add secretKey module 2018-06-14 11:25:28 -07:00
Michael Jackson b0d205d9eb Filter out empty directories
Fixes #99
2018-06-03 09:50:21 -07:00
Michael Jackson b54749c83a Fetch logs in 30s windows 2018-06-01 22:34:56 -07:00
Michael Jackson 089f1eedb3 Use Cloudflare /received API instead of /requests 2018-06-01 22:15:41 -07:00
Michael Jackson aca63ea606 Add some helpers for generating HTML pages 2018-06-01 15:53:41 -07:00
Michael Jackson 05e8cffee7 Remove unused file and fix lint warnings 2018-06-01 09:50:39 -07:00
Michael Jackson a889385261 Fix failing tests 2018-05-31 09:34:38 -07:00
Michael Jackson bca5722eae Don't check package name when parsing 2018-05-25 20:31:42 -04:00
Michael Jackson c0e0f899d2 Small tweaks + whitespace 2018-05-25 20:31:42 -04:00
Michael Jackson a8471ed950 Sort keys in createSearch + add tests 2018-05-25 20:22:59 -04:00
Michael Jackson 0f895bf04e Use lockfile to prevent inter-process races
See #86
2018-05-22 22:06:55 -04:00
Michael Jackson 5b1750c182 Check Redis cache inside of process mutex 2018-05-22 21:16:10 -04:00
Michael Jackson 2f7f805cd6 Style tweaks 2018-05-22 21:13:51 -04:00
Michael Jackson 26ba4698e3 Add fetch* utils 2018-05-21 23:16:58 -04:00
Michael Jackson ba14f9197f Small tweaks 2018-05-21 13:35:14 -07:00
Michael Jackson c792515d01 Move middleware utils into server/utils 2018-05-21 13:26:00 -07:00
Michael Jackson 269b756aeb Break up parseURL middleware 2018-05-19 08:34:36 -07:00
Michael Jackson c6a6b1ffc9 Upgrade Jest and fix failing tests 2018-05-19 07:49:21 -07:00
Michael Jackson efe325e6ff Use 301 redirects for deprecated request paths and queries 2018-05-18 17:55:28 -07:00
Michael Jackson e3091c6fe5 Small tweaks 2018-05-17 15:22:13 -07:00
Michael Jackson 625e36ec5b Get registryURL from server config 2018-05-17 15:22:01 -07:00
Michael Jackson 29697ed201 Split up fetchFile middleware into 2 2018-05-17 15:21:35 -07:00
Michael Jackson da06a5b97f Add server config, move plugin file 2018-05-17 10:10:33 -07:00
Michael Jackson 041d0c407f Add error for non-JS files in ?module mode 2018-05-16 08:49:19 -07:00
Michael Jackson f8beb1c2a8 Use arrow functions for callbacks 2018-05-16 07:15:04 -07:00
Michael Jackson 34922f6c1b Refactor serveFile into separate functions for different use cases 2018-05-16 07:14:51 -07:00
Michael Jackson 8c6912e1a1 Style tweak 2018-05-15 18:21:46 -07:00
Michael Jackson 9a3aabda9f Re-enable serving HTML
Fixes #94
2018-05-15 18:21:09 -07:00
Michael Jackson 3d463a14aa Ignore Object property names
Fixes #96
2018-05-14 08:06:49 -07:00
Michael Jackson c62661e5a7 Ignore hard links as well 2018-05-08 07:48:13 -07:00
Michael Jackson 6b6875f8f8 Fix failing tests 2018-04-28 18:21:23 -07:00
Michael Jackson 172c955823 Fix symlink detection 2018-04-28 18:05:10 -07:00
Michael Jackson 577fa7608b Style tweaks 2018-04-04 12:08:42 -07:00
Michael Jackson 2568de0467 Disable Host header check in development 2018-04-04 12:03:42 -07:00
Michael Jackson fac3f4c5be Small tweaks 2018-04-03 22:32:32 -07:00
Michael Jackson 7a9dfd2260 Style tweaks 2018-04-03 22:24:22 -07:00