Skip to content

Commit b2d2fd6

Browse files
author
v1rtl
committed
bump deps
1 parent 40fc7f7 commit b2d2fd6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage*

example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { compression } from './mod.ts'
2-
import { Server } from 'https://deno.land/std@0.170.0/http/server.ts'
2+
import { Server } from 'https://deno.land/std@0.175.0/http/server.ts'
33

44
const s = new Server({
55
handler: async (req) => {

mod.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { readAll } from 'https://deno.land/std@0.170.0/streams/read_all.ts'
1+
import { readAll } from 'https://deno.land/std@0.175.0/streams/read_all.ts'
22
import { compress as brotli } from 'https://deno.land/x/[email protected]/mod.ts'
3-
import { Foras, gzip, deflate } from 'https://deno.land/x/[email protected].3/src/deno/mod.ts'
3+
import { Foras } from 'https://deno.land/x/[email protected].6/src/deno/mod.ts'
44
import { Accepts } from 'https://deno.land/x/[email protected]/mod.ts'
55

6-
await Foras.initSyncBundledOnce()
6+
await Foras.initBundledOnce()
77

88
const funcs = {
99
br: brotli,
10-
gzip: (body: Uint8Array) => gzip(body, undefined),
11-
deflate: (body: Uint8Array) => deflate(body, undefined)
10+
gzip: (body: Uint8Array) => Foras.gzip(body, undefined),
11+
deflate: (body: Uint8Array) => Foras.deflate(body, undefined)
1212
}
1313

1414
/**
@@ -49,7 +49,7 @@ export type CompressionOptions = {
4949
* @example
5050
* ```ts
5151
import { compression } from 'https://deno.land/x/http_compression/mod.ts'
52-
import { Server } from 'https://deno.land/std@0.170.0/http/server.ts'
52+
import { Server } from 'https://deno.land/std@0.175.0/http/server.ts'
5353
5454
new Server({
5555
handler: async (req) => {
@@ -96,8 +96,7 @@ export const compression =
9696
return new Response(compressed, {
9797
headers: new Headers({
9898
'Content-Encoding': preferredAlgo
99-
}),
100-
status: 200
99+
})
101100
})
102101
} else {
103102
if (Array.isArray(encodings)) {

0 commit comments

Comments
 (0)