05e8cffee7
Remove unused file and fix lint warnings
2018-06-01 09:50:39 -07:00
c0e0f899d2
Small tweaks + whitespace
2018-05-25 20:31:42 -04:00
26ba4698e3
Add fetch* utils
2018-05-21 23:16:58 -04:00
c792515d01
Move middleware utils into server/utils
2018-05-21 13:26:00 -07:00
269b756aeb
Break up parseURL middleware
2018-05-19 08:34:36 -07:00
efe325e6ff
Use 301 redirects for deprecated request paths and queries
2018-05-18 17:55:28 -07:00
e3091c6fe5
Small tweaks
2018-05-17 15:22:13 -07:00
625e36ec5b
Get registryURL from server config
2018-05-17 15:22:01 -07:00
29697ed201
Split up fetchFile middleware into 2
2018-05-17 15:21:35 -07:00
3d463a14aa
Ignore Object property names
...
Fixes #96
2018-05-14 08:06:49 -07:00
c62661e5a7
Ignore hard links as well
2018-05-08 07:48:13 -07:00
172c955823
Fix symlink detection
2018-04-28 18:05:10 -07:00
577fa7608b
Style tweaks
2018-04-04 12:08:42 -07:00
6e37129ec5
Style tweaks
2018-03-20 10:34:31 -07:00
347c993407
Move Redis client to utils/redis
2018-02-17 20:23:05 -08:00
2e1f09e913
Prettify everything
2018-02-17 20:23:05 -08:00
d6f2bc089a
Better dev server integration
2018-02-16 16:00:06 -08:00
79e50ec98c
Ignore babelrc in ?module mode
...
Fixes #84
2018-01-09 21:41:31 -08:00
a0d1479edd
Inline babel-plugin-unpkg-rewrite
2018-01-09 21:41:19 -08:00
f2daafadfb
Remove CRA stuff, revert to custom webpack config
2017-12-14 08:27:40 -08:00
9c042e6368
Style tweaks
2017-12-13 16:22:58 -08:00
3d1c4ccc13
Serve JS files as utf-8
...
See https://github.com/babel/babel/issues/6976
2017-12-05 11:57:16 -08:00
758b420297
Style tweaks
2017-11-25 21:19:48 -08:00
3a309241da
Prettify
2017-11-25 13:25:01 -08:00
e988180c8a
Add counter for ?main usage
2017-11-16 21:25:50 -05:00
a9497166fe
Add counter for "browser" fallback usage
...
Helps with #63
2017-11-15 07:30:05 -05:00
36efac099f
Add support for scoped packages in blacklist URLs
2017-11-14 16:47:57 -08:00
67a17a961b
Safer string interpolation
2017-11-14 15:19:17 -08:00
32ca39a11e
Fix method name
2017-11-11 22:35:30 -08:00
0e1f26849b
Add auth and blacklist APIs
2017-11-11 12:18:13 -08:00
b614f8646d
Use arrow functions for callbacks
2017-11-08 10:14:46 -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
293786d182
Move some files around
2017-09-13 08:24:49 -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
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
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