Minor Changes
-
#4905
148feff6
Thanks @dario-piotrowicz! - feature: add agetCf
method to Miniflare instancesadd a new
getCf
method attached to instances ofMiniflare
, thisgetCf
returns
thecf
object that the Miniflare instance provides to the actual workers and it
depends of the core option of the same nameExample:
import { Miniflare } from "miniflare"; const mf = new Miniflare({ ... }); const cf = await mf.getCf(); console.log(`country = ${cf.country} ; colo = ${cf.colo}`); // logs 'country = GB ; colo = LHR'