Skip to content

Commit 2feb80e

Browse files
fix: inject undici interceptors (#17)
1 parent 888746d commit 2feb80e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/watt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class Watt {
258258
this.#instanceConfig.iccServices.trafficante.url
259259
)
260260
return {
261-
module: this.#require.resolve(
261+
module: require.resolve(
262262
'undici-traffic-interceptor'
263263
),
264264
options: {
@@ -340,7 +340,7 @@ class Watt {
340340
}
341341

342342
return {
343-
module: this.#require.resolve('undici-slicer-interceptor'),
343+
module: require.resolve('undici-slicer-interceptor'),
344344
options: cacheConfig,
345345
}
346346
}
@@ -406,7 +406,7 @@ class Watt {
406406
config.httpCache = {
407407
...config.httpCache,
408408
cacheTagsHeader,
409-
store: this.#require.resolve('undici-cache-redis'),
409+
store: require.resolve('undici-cache-redis'),
410410
clientOpts: httpCache,
411411
}
412412
}

0 commit comments

Comments
 (0)