Skip to content

Commit

Permalink
chore: update to std 0.215.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Feb 13, 2024
1 parent 120a024 commit 5b45806
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion _build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

import { build, emptyDir } from "https://deno.land/x/[email protected]/mod.ts";
import { copy } from "https://deno.land/std@0.214.0/fs/copy.ts";
import { copy } from "https://deno.land/std@0.215.0/fs/copy.ts";

async function start() {
await emptyDir("./npm");
Expand Down
28 changes: 14 additions & 14 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@

// `std` dependencies

export { concat } from "https://deno.land/std@0.214.0/bytes/concat.ts";
export { copy as copyBytes } from "https://deno.land/std@0.214.0/bytes/copy.ts";
export { timingSafeEqual } from "https://deno.land/std@0.214.0/crypto/timing_safe_equal.ts";
export { KeyStack } from "https://deno.land/std@0.214.0/crypto/unstable_keystack.ts";
export { encodeBase64 } from "https://deno.land/std@0.214.0/encoding/base64.ts";
export { concat } from "https://deno.land/std@0.215.0/bytes/concat.ts";
export { copy as copyBytes } from "https://deno.land/std@0.215.0/bytes/copy.ts";
export { timingSafeEqual } from "https://deno.land/std@0.215.0/crypto/timing_safe_equal.ts";
export { KeyStack } from "https://deno.land/std@0.215.0/crypto/unstable_keystack.ts";
export { encodeBase64 } from "https://deno.land/std@0.215.0/encoding/base64.ts";
export {
calculate,
type ETagOptions,
type FileInfo,
ifMatch,
ifNoneMatch,
} from "https://deno.land/std@0.214.0/http/etag.ts";
} from "https://deno.land/std@0.215.0/http/etag.ts";
export {
accepts,
acceptsEncodings,
acceptsLanguages,
} from "https://deno.land/std@0.214.0/http/negotiation.ts";
export { UserAgent } from "https://deno.land/std@0.214.0/http/user_agent.ts";
export { LimitedReader } from "https://deno.land/std@0.214.0/io/limited_reader.ts";
export { readAll } from "https://deno.land/std@0.214.0/io/read_all.ts";
export { contentType } from "https://deno.land/std@0.214.0/media_types/content_type.ts";
export { typeByExtension } from "https://deno.land/std@0.214.0/media_types/type_by_extension.ts";
} from "https://deno.land/std@0.215.0/http/negotiation.ts";
export { UserAgent } from "https://deno.land/std@0.215.0/http/user_agent.ts";
export { LimitedReader } from "https://deno.land/std@0.215.0/io/limited_reader.ts";
export { readAll } from "https://deno.land/std@0.215.0/io/read_all.ts";
export { contentType } from "https://deno.land/std@0.215.0/media_types/content_type.ts";
export { typeByExtension } from "https://deno.land/std@0.215.0/media_types/type_by_extension.ts";
export {
basename,
extname,
isAbsolute,
join,
normalize,
parse,
SEP,
} from "https://deno.land/std@0.214.0/path/mod.ts";
SEPARATOR,
} from "https://deno.land/std@0.215.0/path/mod.ts";

// 3rd party dependencies

Expand Down
2 changes: 1 addition & 1 deletion examples/closeServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
cyan,
green,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import { Application, Context, Router, Status } from "../mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion examples/cookieServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
cyan,
green,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import { Application } from "../mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion examples/countingServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
cyan,
green,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import {
Application,
Expand Down
2 changes: 1 addition & 1 deletion examples/httpsServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
cyan,
green,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import { Application } from "../mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion examples/proxyServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
green,
red,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import { Application, HttpError, proxy, Status } from "../mod.ts";

Expand Down
4 changes: 2 additions & 2 deletions examples/readerServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

// Importing some console colors
import { bold, yellow } from "https://deno.land/std@0.214.0/fmt/colors.ts";
import { StringReader } from "https://deno.land/std@0.214.0/io/string_reader.ts";
import { bold, yellow } from "https://deno.land/std@0.215.0/fmt/colors.ts";
import { StringReader } from "https://deno.land/std@0.215.0/io/string_reader.ts";

import { Application } from "../mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion examples/routingServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
cyan,
green,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import {
Application,
Expand Down
2 changes: 1 addition & 1 deletion examples/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
cyan,
green,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import { Application } from "../mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion examples/sseServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
cyan,
green,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import {
Application,
Expand Down
2 changes: 1 addition & 1 deletion examples/staticServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
green,
red,
yellow,
} from "https://deno.land/std@0.214.0/fmt/colors.ts";
} from "https://deno.land/std@0.215.0/fmt/colors.ts";

import { Application, HttpError, Status } from "../mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class Request {
/** An object representing the requesting user agent. If the `User-Agent`
* header isn't defined in the request, all the properties will be undefined.
*
* See [std/http/user_agent#UserAgent](https://deno.land/std@0.214.0/http/user_agent.ts?s=UserAgent)
* See [std/http/user_agent#UserAgent](https://deno.land/std@0.215.0/http/user_agent.ts?s=UserAgent)
* for more information.
*/
get userAgent(): UserAgent {
Expand Down
14 changes: 7 additions & 7 deletions test_deps.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2018-2024 the oak authors. All rights reserved. MIT license.

export { assert } from "https://deno.land/std@0.214.0/assert/assert.ts";
export { assertEquals } from "https://deno.land/std@0.214.0/assert/assert_equals.ts";
export { assertInstanceOf } from "https://deno.land/std@0.214.0/assert/assert_instance_of.ts";
export { assertRejects } from "https://deno.land/std@0.214.0/assert/assert_rejects.ts";
export { assertStrictEquals } from "https://deno.land/std@0.214.0/assert/assert_strict_equals.ts";
export { assertThrows } from "https://deno.land/std@0.214.0/assert/assert_throws.ts";
export { unreachable } from "https://deno.land/std@0.214.0/assert/unreachable.ts";
export { assert } from "https://deno.land/std@0.215.0/assert/assert.ts";
export { assertEquals } from "https://deno.land/std@0.215.0/assert/assert_equals.ts";
export { assertInstanceOf } from "https://deno.land/std@0.215.0/assert/assert_instance_of.ts";
export { assertRejects } from "https://deno.land/std@0.215.0/assert/assert_rejects.ts";
export { assertStrictEquals } from "https://deno.land/std@0.215.0/assert/assert_strict_equals.ts";
export { assertThrows } from "https://deno.land/std@0.215.0/assert/assert_throws.ts";
export { unreachable } from "https://deno.land/std@0.215.0/assert/unreachable.ts";
4 changes: 2 additions & 2 deletions util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
isAbsolute,
join,
normalize,
SEP,
SEPARATOR,
} from "./deps.ts";
import type { RouteParams, RouterContext } from "./router.ts";
import type { Data, Key, NetAddr } from "./types.ts";
Expand Down Expand Up @@ -330,7 +330,7 @@ export function resolvePath(rootPath: string, relativePath?: string): string {
}

// path outside root
if (UP_PATH_REGEXP.test(normalize(`.${SEP}${path}`))) {
if (UP_PATH_REGEXP.test(normalize(`.${SEPARATOR}${path}`))) {
throw createHttpError(403);
}

Expand Down

0 comments on commit 5b45806

Please sign in to comment.