Commit Graph

374 Commits

Author SHA1 Message Date
4e31fd02cf Clear blacklist after tests 2017-11-14 16:46:59 -08:00
4b3f606d7d Move package name validation into parsePackageURL 2017-11-14 16:44:53 -08:00
67a17a961b Safer string interpolation 2017-11-14 15:19:17 -08:00
a38eebfe7e Return JSON from /_publicKey 2017-11-13 21:33:04 -08:00
ba6fb43aa4 Add API docs 2017-11-11 23:33:24 -08:00
32ca39a11e Fix method name 2017-11-11 22:35:30 -08:00
1c28ac2ff3 Use node 8.4.x in production, 8.4.0 on Travis 2017-11-11 20:43:44 -08:00
0e1f26849b Add auth and blacklist APIs 2017-11-11 12:18:13 -08:00
cc70428986 Remove search server 2017-11-09 23:04:43 -08:00
a8ab15e49d Rename StatsServer => StatsAPI 2017-11-08 11:07:48 -08:00
b614f8646d Use arrow functions for callbacks 2017-11-08 10:14:46 -08:00
a8ab0b7dab Fix failing tests 2017-11-08 09:13:28 -08:00
2d57d96e62 Prettier everything up 2017-11-08 08:57:15 -08:00
f3e041ace6 Better error message 2017-10-27 15:43:37 -07:00
6e51275494 Update function name 2017-10-20 08:01:10 -04:00
b92f803b97 Add dev script 2017-10-16 15:20:06 -07:00
24ec2663ce Update links to React 16 2017-10-16 15:02:31 -07:00
c49efe2de1 Add some more asset paths 2017-09-13 10:57:49 -07:00
8af969378b Do not use concat name for search 2017-09-13 10:41:38 -07:00
0bdbca30d4 Provide assets on all search hits 2017-09-13 10:02:36 -07:00
8ed2296b2f More work on search 2017-09-13 09:30:49 -07:00
f4f0c59552 Skip invariants in test env 2017-09-13 08:42:00 -07:00
293786d182 Move some files around 2017-09-13 08:24:49 -07:00
de1195d8e9 Add _search endpoint 2017-09-13 08:01:46 -07:00
d72d4ee6f3 Add support for .mjs files
Right now these are served as application/octect-stream
The latest mime module with latest mime-db thought
would serve them as application/javascript.

This would enable direct .mjs access without needing
?module or runtime transpilations.
2017-09-12 07:34:48 -07:00
d3f3aa610c Remove ?main from fully-resolved URLs 2017-09-01 22:43:56 -07:00
124fead8ff Do not use ?main fields that are not strings
Fixes #62
2017-09-01 20:29:49 -07:00
39eca7b8ce Style tweak 2017-08-31 15:42:48 -07:00
98cbffa590 Use explicit status codes 2017-08-31 09:00:25 -07:00
b6f9176c71 Redirect modules 2017-08-31 09:00:17 -07:00
1da995666b Redirect ?json => ?meta
Fixes #60
2017-08-29 14:38:39 -07:00
dd8df34574 Revert to custom file sending logic 2017-08-26 20:38:31 -07:00
5331120a84 Allow serving dotfiles 2017-08-26 19:50:47 -07:00
30de36aa40 Use req.filename directly 2017-08-26 19:50:45 -07:00
e33d49a8cb Log sendFile errors 2017-08-26 19:50:09 -07:00
49cb7f0ebd Save previous stats to localStorage for faster loading 2017-08-26 17:54:17 -07:00
7d34cc9b88 Add $DEBUG_REDIS env var 2017-08-26 17:44:50 -07:00
50979bfca5 Fix ?module bug with empty filenames 2017-08-26 17:44:29 -07:00
e95dcf0028 Do not needlessly redirect 2017-08-24 01:12:26 -06:00
02b0dc91e2 More improvements for ?module 2017-08-24 00:33:58 -06:00
c5092f4b68 Update dep 2017-08-23 14:16:57 -07:00
28543a39b6 Add ?module support to server
In "module" mode, the server looks for the "module"/"esnext:main" fields
in package.json for an ES module. Also, it redirects to the real file
path so that relative imports work.
2017-08-23 14:14:21 -07:00
6329a83f67 Use / instead of "index" 2017-08-22 20:16:21 -07:00
f64bb6bfd5 Treat URLs with no trailing slashes like files
This is to be consistent with the rest of the API, but also to allow
packages to omit the trailing slash and file name when publishing
multiple builds in the same package.
2017-08-22 18:51:37 -07:00
ab3e21b8f8 Be explicit with status codes 2017-08-22 18:44:26 -07:00
eecbfb65f8 Rename server task to serve 2017-08-22 18:32:03 -07:00
7ed062342e Rename logs worker 2017-08-22 17:22:19 -07:00
0137a9df92 Move protocols to bottom of the stats page 2017-08-22 10:14:21 -07:00
c1c2d1445f Add "module" Cache-Tag to js modules served with ?module 2017-08-22 09:59:19 -07:00
37640b2c8b Cache stats for 1 minute 2017-08-22 09:45:41 -07:00