Skip to content

Commit

Permalink
chore: cleanup dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jan 2, 2025
1 parent 3dfcbaf commit d982240
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
10 changes: 2 additions & 8 deletions body.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { Body } from "./body.ts";
import {
assert,
concat,
isHttpError,
Status,
timingSafeEqual,
} from "./deps.ts";
import { assertEquals, assertRejects } from "./deps_test.ts";
import { assert, concat, isHttpError, Status } from "./deps.ts";
import { assertEquals, assertRejects, timingSafeEqual } from "./deps_test.ts";
import type { ServerRequest } from "./types.ts";

const MULTIPART_BODY_FIXTURE =
Expand Down
7 changes: 0 additions & 7 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@

export { assert } from "jsr:@std/assert@^1.0/assert";
export { concat } from "jsr:@std/bytes@^1.0/concat";
export { copy as copyBytes } from "jsr:@std/bytes@^1.0/copy";
export { timingSafeEqual } from "jsr:@std/crypto@^1.0/timing-safe-equal";
export {
eTag,
type ETagOptions,
type FileInfo,
ifMatch,
ifNoneMatch,
} from "jsr:@std/http@^1.0/etag";
export {
Expand All @@ -21,9 +18,7 @@ export {
acceptsLanguages,
} from "jsr:@std/http@^1.0/negotiation";
export { UserAgent } from "jsr:@std/http@^1.0/user-agent";
export { LimitedReader } from "jsr:@std/io@0.224/limited-reader";
export { contentType } from "jsr:@std/media-types@^1.0/content-type";
export { typeByExtension } from "jsr:@std/media-types@^1.0/type-by-extension";
export {
basename,
extname,
Expand All @@ -37,7 +32,6 @@ export {
// 3rd party dependencies

export {
mergeHeaders,
SecureCookieMap,
type SecureCookieMapGetOptions,
type SecureCookieMapSetDeleteOptions,
Expand Down Expand Up @@ -78,7 +72,6 @@ export {
export {
compile,
type Key,
match as pathMatch,
parse as pathParse,
type ParseOptions,
pathToRegexp,
Expand Down
1 change: 1 addition & 0 deletions deps_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export { assertRejects } from "jsr:@std/assert@^1.0/rejects";
export { assertStrictEquals } from "jsr:@std/assert@^1.0/strict-equals";
export { assertThrows } from "jsr:@std/assert@^1.0/throws";
export { unreachable } from "jsr:@std/assert@^1.0/unreachable";
export { timingSafeEqual } from "jsr:@std/crypto@^1.0/timing-safe-equal";

0 comments on commit d982240

Please sign in to comment.