UNPKG
make-fetch-happen
Version:
latest (15.0.2)
legacy (5.0.2)
15.0.2
15.0.1
15.0.0
14.0.3
14.0.2
14.0.1
14.0.0
13.0.1
13.0.0
12.0.0
11.1.1
11.1.0
11.0.3
11.0.2
11.0.1
11.0.0
10.2.1
10.2.0
10.1.8
10.1.7
10.1.6
10.1.5
10.1.4
10.1.3
10.1.2
10.1.1
10.1.0
10.0.6
10.0.5
10.0.4
10.0.3
10.0.2
10.0.1
10.0.0
9.1.0
9.0.5
9.0.4
9.0.3
9.0.2
9.0.1
9.0.0
8.0.14
8.0.13
8.0.12
8.0.11
8.0.10
8.0.9
8.0.8
8.0.7
8.0.6
8.0.5
8.0.4
8.0.3
8.0.2
8.0.1
8.0.0
7.1.1
7.1.0
7.0.0
6.1.0
6.0.1
6.0.0
5.0.2
5.0.1
5.0.0
4.0.2
4.0.1
4.0.0
3.0.0
2.6.0
2.5.0
2.4.13
2.4.12
2.4.11
2.4.10
2.4.9
2.4.8
2.4.7
2.4.6
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.0
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
0.0.0
Opinionated, caching, retrying fetch client
github.com/npm/make-fetch-happen
npm/make-fetch-happen
make-fetch-happen
/
lib
/
cache
/
errors.js
12 lines
(10 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
class
NotCachedError
extends
Error
{
constructor
(url) {
/* eslint-disable-next-line max-len */
super
(`request to ${url} failed: cache mode
is
'only-if-cached'
but no cached response
is
available.`)
this
.code =
'ENOTCACHED'
} } module.exports = { NotCachedError, }