90 Commits (e32e96c99668771c34069f1943a392d07058ed58)
 

Author SHA1 Message Date
Luke Childs e32e96c996 1.0.0 8 years ago
Luke Childs f3e6b3f2cf Don't say "we" 8 years ago
Luke Childs 7a8fcab0e5 Update readme to show default ttl option 8 years ago
Luke Childs bcfaf5175f Add API section to readme 8 years ago
Luke Childs 471feae181 Document cache stores 8 years ago
Luke Childs f952f3559c Add info about instance options to readme 8 years ago
Luke Childs f3d1e3b842 Fix error in usage example 8 years ago
Luke Childs 9ecc4f85fa Mention library is promise based 8 years ago
Luke Childs 08f15d8807 Add usage section to readme 8 years ago
Luke Childs a5738f007e Add install section to readme 8 years ago
Luke Childs a802b5ef93 Add license section to readme 8 years ago
Luke Childs f6d6742b8a Add readme 8 years ago
Luke Childs ddd717f7dc Update description 8 years ago
Luke Childs ad21023695 Set default cache ttl to 5 hours 8 years ago
Luke Childs dfb944e371 Remove unnecessary empty objects 8 years ago
Luke Childs ae6b96a4d2 Version lock dependencies 8 years ago
Luke Childs d4b4f42c25 Swap factory function for wrapper function in reduce callback 8 years ago
Luke Childs bf0f3a3958 Inverse if logic for less indentation 8 years ago
Luke Childs c44e8b013f Drop standard in favour of xo 8 years ago
Luke Childs 0fefa2eee6 Test useful errors for HTTP response codes 8 years ago
Luke Childs 88fb9715e7 Test HTML responses for errors 8 years ago
Luke Childs f7622de1db Extract expire functionality into external module 8 years ago
Luke Childs c00d6a823e Only set If-Modified-Since header if we definitely have Last-Modified 8 years ago
Luke Childs 247a0d5cf9 Test last-modified date are sent in headers and handle 304 8 years ago
Luke Childs 72b2d16c6a Test responses older than max-age are not cached 8 years ago
Luke Childs 8ad93961e2 Test cache can be disabled 8 years ago
Luke Childs b7e1e47c44 Test responses with future max-age are cached 8 years ago
Luke Childs 3f44ce19aa Test ":" char isn't url encoded so filters work 8 years ago
Luke Childs cb5f8e7d25 Test query string is built correctly 8 years ago
Luke Childs 868a67d771 Test passing in custom endpoint 8 years ago
Luke Childs 44f9f292d1 Test endpoint methods return promise 8 years ago
Luke Childs 7fbc9ef673 Test onionoo instance contains endpoint methods 8 years ago
Luke Childs 57b691b665 unit.js -> types.js 8 years ago
Luke Childs 21eef32886 Add test for custom endpoint request 8 years ago
Luke Childs b16378e39b Add test for default endpoint request 8 years ago
Luke Childs 4a64b9df50 Only add ? to url if we have a query string 8 years ago
Luke Childs 8d88ff4ef0 Add data fixture 8 years ago
Luke Childs 4689b0882a Split endpoint tests out into seperate file 8 years ago
Luke Childs 290e877f90 Account for current age in cache calculations 8 years ago
Luke Childs 14f5d7534c [].indexOf() > -1 -> [].includes() 8 years ago
Luke Childs b052076359 Refactor caching to be all in the same place 8 years ago
Luke Childs 703b2e7bb3 Make sure got doesn't throw 304s 8 years ago
Luke Childs f8d73163eb Send If-Modified-Since header for stale cache entries 8 years ago
Luke Childs 155f078905 Refactor expire function to return expirey date rather than time in ms 8 years ago
Luke Childs 88191ef716 Don't set a ttl on cache entries 8 years ago
Luke Childs 98cbfa3bec args -> options 8 years ago
Luke Childs a17b03cf46 Refactor createEndpointMethod to not be wrapped in a promise 8 years ago
Luke Childs a29cde357c Only parse JSON on successfull requests 8 years ago
Luke Childs edef446641 calculateResponseMaxAge only needs headers as arg 8 years ago
Luke Childs 883e269848 Reformat response to have more useful data 8 years ago