Skip to content
Myr

refactor(helper): Use getRuntimeKey() in env function (#1454)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* refactor * lint&denoify * marker * type assersion * revert fastly message

authored by watany · committed by GitHub · parent 9cb6b37 · Browse files · 3 files+51 added−92 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+51 added−92 removed

  • tests:+1 added−0 removed
  • other:+50 added−92 removed

3 files+51 added−92 removed

modified:deno_dist/helper/adapter/index.ts+25 added-46 removed
modified:src/helper/adapter/index.ts+25 added-46 removed
modified:src/context.test.ts+1 added
172 unmodified lines
173 expect(res.headers.get('foo')).not.toBeNull()174 expect(res.headers.get('foo')).toBe('bar')175 })176177 // The `c.runtime()` will be removed in v4.178 it('returns current runtime (workerd)', async () => {179 c = new Context(req)180 expect(c.runtime).toBe('workerd')181 })
114 unmodified lines