-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.ts
51 lines (49 loc) · 1.74 KB
/
deps.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2023-latest the httpland authors. All rights reserved. MIT license.
// This module is browser compatible.
export { Status } from "https://deno.land/[email protected]/http/http_status.ts";
export { isString } from "https://deno.land/x/[email protected]/is_string.ts";
export { isNull } from "https://deno.land/x/[email protected]/is_null.ts";
export { isNumber } from "https://deno.land/x/[email protected]/is_number.ts";
export { isNotEmpty } from "https://deno.land/x/[email protected]/iterable/is_not_empty.ts";
export {
type Handler,
type Middleware,
} from "https://deno.land/x/[email protected]/mod.ts";
export {
ConditionalHeader,
filterKeys,
isRepresentationHeader,
RangeHeader,
RepresentationHeader,
} from "https://deno.land/x/[email protected]/header.ts";
export { Method } from "https://deno.land/x/[email protected]/method.ts";
export { isErr, unsafe } from "https://deno.land/x/[email protected]/mod.ts";
export {
type IntRange,
isIntRange,
isOtherRange,
type OtherRange,
parseRange,
type Range,
type RangeSet,
type RangeSpec,
type RangesSpecifier,
type SuffixRange,
} from "https://deno.land/x/[email protected]/mod.ts";
export {
parseAcceptRanges,
type Token,
} from "https://deno.land/x/[email protected]/mod.ts";
export { concat } from "https://deno.land/[email protected]/bytes/concat.ts";
export { distinct } from "https://deno.land/[email protected]/collections/distinct.ts";
export { toHashString } from "https://deno.land/[email protected]/crypto/to_hash_string.ts";
export {
type ContentRange,
type InclRange,
stringifyContentRange,
} from "https://deno.land/x/[email protected]/mod.ts";
export function not<T extends readonly unknown[]>(
fn: (...args: T) => boolean,
): (...args: T) => boolean {
return (...args) => !fn(...args);
}