Commit Graph
100 Commits
Author SHA1 Message Date
MICHAEL JACKSONandMICHAEL JACKSON a22e0fa801 Move design file into repo root 2018-02-16 09:52:53 -08:00
MICHAEL JACKSONandMICHAEL JACKSON 39ad76e5a2 Style tweaks 2018-02-16 09:52:53 -08:00
MICHAEL JACKSON 06c9296809 Add back static assets 2017-12-14 08:52:04 -08:00
MICHAEL JACKSON f2daafadfb Remove CRA stuff, revert to custom webpack config 2017-12-14 08:27:40 -08:00
MICHAEL JACKSON 9c042e6368 Style tweaks 2017-12-13 16:22:58 -08:00
MICHAEL JACKSON a4254eadcb Remove unneeded dep 2017-12-13 15:49:26 -08:00
MICHAEL JACKSON 8eb89bc815 Bump babel-plugin-unpkg-rewrite version 2017-12-05 12:12:40 -08:00
MICHAEL JACKSON 7554556005 Remove packages 2017-12-05 12:11:39 -08:00
MICHAEL JACKSON 3d1c4ccc13 Serve JS files as utf-8
See https://github.com/babel/babel/issues/6976
2017-12-05 11:57:16 -08:00
MICHAEL JACKSON 51f3bca3fb Prettify 2017-11-25 21:24:49 -08:00
MICHAEL JACKSON 758b420297 Style tweaks 2017-11-25 21:19:48 -08:00
MICHAEL JACKSON b06de06d89 Style tweaks 2017-11-25 20:28:55 -08:00
MICHAEL JACKSON 847e55cd0b Version 3.4.0 2017-11-25 14:03:18 -08:00
MICHAEL JACKSON 552a3ff5c0 Add babel-plugin-unpkg-rewrite package 2017-11-25 14:02:35 -08:00
MICHAEL JACKSON 72446cff9b Version 0.2.0 2017-11-25 13:56:33 -08:00
MICHAEL JACKSON 69a68890c5 A few more methods 2017-11-25 13:54:39 -08:00
MICHAEL JACKSON 3a309241da Prettify 2017-11-25 13:25:01 -08:00
MICHAEL JACKSON f3974b5e2d Add "unpkg" package 2017-11-25 13:10:52 -08:00
MICHAEL JACKSON af788777c6 Remove docs for ?main and browser fallback
See #63
2017-11-16 21:25:57 -05:00
MICHAEL JACKSON e988180c8a Add counter for ?main usage 2017-11-16 21:25:50 -05:00
MICHAEL JACKSON a9497166fe Add counter for "browser" fallback usage
Helps with #63
2017-11-15 07:30:05 -05:00
MICHAEL JACKSON 3f2192f7d4 Style tweak 2017-11-14 17:00:00 -08:00
MICHAEL JACKSON 36efac099f Add support for scoped packages in blacklist URLs 2017-11-14 16:47:57 -08:00
MICHAEL JACKSON 4e31fd02cf Clear blacklist after tests 2017-11-14 16:46:59 -08:00
MICHAEL JACKSON 4b3f606d7d Move package name validation into parsePackageURL 2017-11-14 16:44:53 -08:00
MICHAEL JACKSON 67a17a961b Safer string interpolation 2017-11-14 15:19:17 -08:00
MICHAEL JACKSON a38eebfe7e Return JSON from /_publicKey 2017-11-13 21:33:04 -08:00
MICHAEL JACKSON ba6fb43aa4 Add API docs 2017-11-11 23:33:24 -08:00
MICHAEL JACKSON 32ca39a11e Fix method name 2017-11-11 22:35:30 -08:00
MICHAEL JACKSON 1c28ac2ff3 Use node 8.4.x in production, 8.4.0 on Travis 2017-11-11 20:43:44 -08:00
MICHAEL JACKSON 0e1f26849b Add auth and blacklist APIs 2017-11-11 12:18:13 -08:00
MICHAEL JACKSON cc70428986 Remove search server 2017-11-09 23:04:43 -08:00
MICHAEL JACKSON a8ab15e49d Rename StatsServer => StatsAPI 2017-11-08 11:07:48 -08:00
MICHAEL JACKSON b614f8646d Use arrow functions for callbacks 2017-11-08 10:14:46 -08:00
MICHAEL JACKSON a8ab0b7dab Fix failing tests 2017-11-08 09:13:28 -08:00
MICHAEL JACKSON 2d57d96e62 Prettier everything up 2017-11-08 08:57:15 -08:00
MICHAEL JACKSON f3e041ace6 Better error message 2017-10-27 15:43:37 -07:00
MICHAEL JACKSON 6e51275494 Update function name 2017-10-20 08:01:10 -04:00
MICHAEL JACKSON b92f803b97 Add dev script 2017-10-16 15:20:06 -07:00
MICHAEL JACKSON 24ec2663ce Update links to React 16 2017-10-16 15:02:31 -07:00
MICHAEL JACKSON c49efe2de1 Add some more asset paths 2017-09-13 10:57:49 -07:00
MICHAEL JACKSON 8af969378b Do not use concat name for search 2017-09-13 10:41:38 -07:00
MICHAEL JACKSON 0bdbca30d4 Provide assets on all search hits 2017-09-13 10:02:36 -07:00
MICHAEL JACKSON 8ed2296b2f More work on search 2017-09-13 09:30:49 -07:00
MICHAEL JACKSON f4f0c59552 Skip invariants in test env 2017-09-13 08:42:00 -07:00
MICHAEL JACKSON 293786d182 Move some files around 2017-09-13 08:24:49 -07:00
MICHAEL JACKSON de1195d8e9 Add _search endpoint 2017-09-13 08:01:46 -07:00
MICHAEL JACKSON d3f3aa610c Remove ?main from fully-resolved URLs 2017-09-01 22:43:56 -07:00
MICHAEL JACKSON 124fead8ff Do not use ?main fields that are not strings
Fixes #62
2017-09-01 20:29:49 -07:00
MICHAEL JACKSON 39eca7b8ce Style tweak 2017-08-31 15:42:48 -07:00
MICHAEL JACKSON 98cbffa590 Use explicit status codes 2017-08-31 09:00:25 -07:00
MICHAEL JACKSON b6f9176c71 Redirect modules 2017-08-31 09:00:17 -07:00
MICHAEL JACKSON 1da995666b Redirect ?json => ?meta
Fixes #60
2017-08-29 14:38:39 -07:00
MICHAEL JACKSON dd8df34574 Revert to custom file sending logic 2017-08-26 20:38:31 -07:00
MICHAEL JACKSON 5331120a84 Allow serving dotfiles 2017-08-26 19:50:47 -07:00
MICHAEL JACKSON 30de36aa40 Use req.filename directly 2017-08-26 19:50:45 -07:00
MICHAEL JACKSON e33d49a8cb Log sendFile errors 2017-08-26 19:50:09 -07:00
MICHAEL JACKSON 49cb7f0ebd Save previous stats to localStorage for faster loading 2017-08-26 17:54:17 -07:00
MICHAEL JACKSON 7d34cc9b88 Add $DEBUG_REDIS env var 2017-08-26 17:44:50 -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 c5092f4b68 Update dep 2017-08-23 14:16:57 -07: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 eecbfb65f8 Rename server task to serve 2017-08-22 18:32:03 -07:00
MICHAEL JACKSON 7ed062342e Rename logs worker 2017-08-22 17:22:19 -07:00
MICHAEL JACKSON 0137a9df92 Move protocols to bottom of the stats page 2017-08-22 10:14:21 -07:00
MICHAEL JACKSON c1c2d1445f Add "module" Cache-Tag to js modules served with ?module 2017-08-22 09:59:19 -07:00
MICHAEL JACKSON 37640b2c8b Cache stats for 1 minute 2017-08-22 09:45:41 -07:00
MICHAEL JACKSON c74fc8b577 Fix option value 2017-08-22 09:30:57 -07:00
MICHAEL JACKSON 52367d97a3 Add more spam to the blacklist 2017-08-22 09:22:31 -07:00
MICHAEL JACKSON 47d42addd2 Filter blacklisted packages from stats
Also added better descriptions to stats page.
2017-08-22 09:12:57 -07:00
MICHAEL JACKSON 2a0d32f214 Add /_stats endpoint
Also, remove ingest_stats worker and use the cache instead.
2017-08-22 08:52:30 -07:00
MICHAEL JACKSON c4f3d5bbbc Store error/unique counts per hour/minute 2017-08-21 10:18:10 -07:00
MICHAEL JACKSON be14167718 Use dependencies for unpkg URLs in module mode 2017-08-21 10:17:40 -07:00
MICHAEL JACKSON 066729f17c Re-organize package URL parsing 2017-08-19 11:44:01 -07:00
MICHAEL JACKSON 17f6a6bbe9 Use startServer function 2017-08-18 23:10:04 -07:00
MICHAEL JACKSON 22c5c550be Move some utils into middleware/utils 2017-08-18 23:09:29 -07:00
MICHAEL JACKSON bc9731abf1 Add experimental ?expand flag
See #24
2017-08-18 17:55:13 -07:00
MICHAEL JACKSON 19d060f753 Add some server tests 2017-08-18 17:33:27 -07:00
MICHAEL JACKSON f87f0962f4 Use text/plain for PATENTS file 2017-08-18 16:47:52 -07:00
MICHAEL JACKSON 6b482f1099 Redirect ?json and /_meta to ?meta 2017-08-18 15:49:12 -07:00
MICHAEL JACKSON e86421240d Redirect requests with invalid query params to cache 2017-08-18 14:50:42 -07:00
MICHAEL JACKSON ff75d8b7d6 Fix lint warning 2017-08-18 13:45:23 -07:00
MICHAEL JACKSON ce39e551c6 Deploy using Travis 2017-08-18 13:43:18 -07:00
MICHAEL JACKSON 7408b24adf Move utilities into middleware/utils 2017-08-18 12:58:48 -07:00
MICHAEL JACKSON 2d03ed9be6 Remove min-download checking 2017-08-18 12:35:45 -07:00
MICHAEL JACKSON 180e942aa9 Update Abuse policy 2017-08-17 13:28:15 -07:00
MICHAEL JACKSON 6c6f8814a3 Temporarily disable daily downloads check 2017-08-17 12:23:56 -07:00
MICHAEL JACKSON d63288fb27 Increase grace period for server shutdown 2017-08-17 11:56:57 -07:00
MICHAEL JACKSON 504c55a636 Lower minimum daily downloads to 50 2017-08-17 11:55:09 -07:00
MICHAEL JACKSON 8fb2c7810e Improve stats workers
- More accurate expiration times for stats
- Reduce duplication between stats and logs worker
- Expire hostname stats after one week
2017-08-17 11:24:40 -07:00
MICHAEL JACKSON b9c6c0fc61 Add back checkBlacklist middleware 2017-08-16 23:04:59 -07:00
MICHAEL JACKSON 1173f91091 Require packages to be downloaded >= 100x/day
This should make it more difficult for people who are publishing
malicious packages to npm to get them on the CDN.
2017-08-16 23:04:59 -07:00
MICHAEL JACKSON 666d8afc95 Add /_meta endpoint for metadata
Also, add integrity values to metadata.
2017-08-16 17:30:12 -07:00
MICHAEL JACKSON bc609ca825 Combine fetchPackage and findFile into same middleware 2017-08-16 15:58:14 -07:00
MICHAEL JACKSON b6b477e096 Combine parse + blacklist middleware 2017-08-16 15:58:14 -07:00