Commit Graph

11 Commits

Author SHA1 Message Date
MICHAEL JACKSON 30de36aa40 Use req.filename directly 2017-08-26 19:50:45 -07:00
MICHAEL JACKSON 50979bfca5 Fix ?module bug with empty filenames 2017-08-26 17:44:29 -07:00
MICHAEL JACKSON e95dcf0028 Do not needlessly redirect 2017-08-24 01:12:26 -06:00
MICHAEL JACKSON 02b0dc91e2 More improvements for ?module 2017-08-24 00:33:58 -06:00
MICHAEL JACKSON 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
MICHAEL JACKSON 6329a83f67 Use / instead of "index" 2017-08-22 20:16:21 -07:00
MICHAEL JACKSON 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
MICHAEL JACKSON ab3e21b8f8 Be explicit with status codes 2017-08-22 18:44:26 -07:00
MICHAEL JACKSON 066729f17c Re-organize package URL parsing 2017-08-19 11:44:01 -07:00
MICHAEL JACKSON 22c5c550be Move some utils into middleware/utils 2017-08-18 23:09:29 -07:00
MICHAEL JACKSON bc609ca825 Combine fetchPackage and findFile into same middleware 2017-08-16 15:58:14 -07:00