158 Commits (02f304672451feecdf01cefaa1b2421c6e44a4a3)
 

Author SHA1 Message Date
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
Luke Childs b6c63d1a38 Set user agent correctly 8 years ago
Luke Childs 6ae31e6845 Calculate max age more reliably 8 years ago
Luke Childs 38b6ee5c7d checkResponseMaxAge -> calculateResponseMaxAge 8 years ago
Luke Childs 230d6190d0 Test passing in custom endpoint array 8 years ago
Luke Childs 907ade214a Tweak Onionoo instance object check to follow consistent pattern 8 years ago
Luke Childs a67ed45cf7 Test Onionoo instance contains expected endpoints 8 years ago
Luke Childs 76dd478420 Test Onionoo instance is an object 8 years ago
Luke Childs c2af0539e3 Test Onionoo cannot be invoked without 'new' 8 years ago
Luke Childs bc1362a262 Integrate with Travis and Coveralls 8 years ago
Luke Childs 0ded6a3d31 Add AVA for tests 8 years ago
Luke Childs 6f3e99c9ec Add snazzy (standard) for linting 8 years ago
Luke Childs 4f6a1bc11a standard code style 8 years ago
Luke Childs be667010f0 Swap out node-cache for cache-manager 8 years ago
Luke Childs 2509f77fad Allow cache option to disable cache 8 years ago
Luke Childs f05cf3f0d4 Only set cache if it's undefined 8 years ago
Luke Childs 183f5f177b Refactor into class 8 years ago
Luke Childs aaccdbd716 checkResponseCache -> checkResponseMaxAge 8 years ago
Luke Childs 8653006d38 Add comments 8 years ago
Luke Childs 5f3b425ff9 Move main logic out of reduce callback 8 years ago
Luke Childs 765ded4c84 Add LICENSE file 8 years ago
Luke Childs af838f6f28 0.5.1 8 years ago
Luke Childs 45a99b019a Make sure all occurances of ':' are escaped in queries 8 years ago
Luke Childs dbda510b31 0.5.0 8 years ago
Luke Childs 52c562c4c1 Add custom user agent 8 years ago
Luke Childs 339f754bb3 Update homepage property in package.json 8 years ago
Luke Childs c7e32db40e 0.4.0 8 years ago
Luke Childs 4f84a1ce50 Don't encode ':' so search filters work 8 years ago
Luke Childs 8cc1ab21c6 Swap out request for got 8 years ago
Luke Childs 9e7121f15b 0.3.1 8 years ago
Luke Childs ec23474326 Accept gzip 8 years ago
Luke Childs 5a22758cee 0.3.0 8 years ago
Luke Childs 14ed37aca9 Cache responses 8 years ago