Commit Graph

38 Commits

Author SHA1 Message Date
Randall Schmidt
c3071e3059 give tests longer timeout 2021-06-11 14:12:28 -04:00
Randall Schmidt
bf4c295e48 add a CACHE_VERSION to invalid caches when versions become incompatible 2021-06-11 14:12:28 -04:00
Randall Schmidt
9241b74dde add support for FormData 2021-06-11 14:12:27 -04:00
Randall Schmidt
3b5adecd7f handle fs read streams 2021-06-11 14:12:27 -04:00
Randall Schmidt
8a338f5f5d refactor cache key calculation to have more space for dealing with different types of bodies 2021-06-11 14:12:27 -04:00
Randall Schmidt
a7fc94c3e9 add raw headers function 2021-06-11 14:12:26 -04:00
Randall Schmidt
facda80789 add tests for string body and URLSearchParams bodies 2021-06-11 14:12:26 -04:00
Randall Schmidt
8e1b57382a dont error if ejectFromCache is called when the response is already not cached 2021-06-11 14:12:26 -04:00
Randall Schmidt
558d63fd40 add husky to enforce lint rules and tests 2021-06-11 14:12:26 -04:00
Randall Schmidt
02653e04c4 fix lint warnings 2021-06-11 14:12:25 -04:00
Randall Schmidt
371d20e933 add test for cache ejection 2021-06-11 14:12:25 -04:00
Randall Schmidt
c452c8d860 add tests, fix flawed logic 2021-06-11 14:12:25 -04:00
Randall Schmidt
bc92aa6865 implement new expanded response caching logic 2021-06-11 14:12:24 -04:00
Randall Schmidt
01bc48594e add test boilerplate 2021-06-11 14:12:24 -04:00
Randall Schmidt
f854cccd23 add mocha for tests 2021-06-11 14:12:24 -04:00
Randall
dea019c42c
Merge pull request #6 from mistval/dependabot/npm_and_yarn/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.8 to 2.8.9
2021-05-11 17:05:53 -06:00
Randall
eda9f98e3b
Merge pull request #5 from mistval/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.19 to 4.17.21
2021-05-11 17:05:45 -06:00
dependabot[bot]
6d1369b50f
Bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 16:28:25 +00:00
dependabot[bot]
d97cb85f97
Bump lodash from 4.17.19 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 10:55:29 +00:00
Randall Schmidt
e7bf4ef96c npmignore .vscode 2020-11-27 21:45:20 -05:00
Randall Schmidt
8507c1be1c fix error if no second argument passed 2020-11-27 21:44:36 -05:00
Randall Schmidt
fb1bfd6bf9 bump version 2020-11-27 20:49:58 -05:00
Randall Schmidt
e6efe02905 auto-fix eslint warnings 2020-11-27 20:49:36 -05:00
Randall
5b692cef4b
Merge pull request #3 from vegar/master
Include request body as string in hash
2020-11-27 18:47:17 -07:00
Vegar Vikan
b2efd4a00c include request body in hash 2020-11-28 00:01:16 +01:00
Randall
01b32347a7
Merge pull request #2 from mistval/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-12 14:00:37 -06:00
dependabot[bot]
4f75868371
Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-12 19:26:43 +00:00
Randall
59316223a8
Merge pull request #1 from mistval/dependabot/npm_and_yarn/lodash-4.17.19
Bump lodash from 4.17.15 to 4.17.19
2020-07-20 06:22:43 -06:00
dependabot[bot]
0a7a54a251
Bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-20 09:08:21 +00:00
Randall Schmidt
4bba89691e add npmignore 2020-04-17 17:11:19 -04:00
Randall Schmidt
bff8a5c175 update readme 2020-04-17 17:09:24 -04:00
Randall Schmidt
3914d35b82 bump version 2020-04-17 17:02:32 -04:00
Randall Schmidt
6459ef1d33 bump version 2020-04-17 17:00:33 -04:00
Randall Schmidt
15a87fac5a write readme 2020-04-17 16:56:05 -04:00
Randall Schmidt
5d0147f6fd text(), json(), buffer() work 2020-04-17 16:31:22 -04:00
Randall Schmidt
891444fe5e add boilerplate 2020-04-17 15:40:42 -04:00
Randall
a326f13ab9
Create LICENSE 2020-04-17 15:35:46 -04:00
Randall
28851a5051
Initial commit 2020-04-17 15:35:18 -04:00