Skip to content

Commit

Permalink
chore(deps): update deno dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 22, 2022
1 parent e353895 commit b967df1
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion example/serve.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { serve } from "https://deno.land/std@0.159.0/http/mod.ts";
import { serve } from "https://deno.land/std@0.160.0/http/mod.ts";
import { serveDirWithTs } from "../mod.ts";
serve((req) => serveDirWithTs(req, { fsRoot: "example" }));
4 changes: 2 additions & 2 deletions file_server_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
assertEquals,
fail,
} from "https://deno.land/std@0.153.0/testing/asserts.ts";
import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
} from "https://deno.land/std@0.160.0/testing/asserts.ts";
import { serve } from "https://deno.land/std@0.160.0/http/mod.ts";
import {
MediaType,
serveDirWithTs,
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MediaType, transpile } from "./utils/transpile.ts";
* There is no need to call this function where performance is not important. In that case, the wasm file will be automatically loaded in about 3 seconds when you transpile for the first time.
*
* ```ts
* import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
* import { serve } from "https://deno.land/std@0.160.0/http/mod.ts";
* import { serveDirWithTs, fourceInstantiateWasm } from "https://deno.land/x/ts_serve@$VERSION/mod.ts";
*
* fourceInstantiateWasm();
Expand Down
4 changes: 2 additions & 2 deletions mod_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assert } from "https://deno.land/std@0.153.0/testing/asserts.ts";
import { assert } from "https://deno.land/std@0.160.0/testing/asserts.ts";
import {
assertSpyCalls,
stub,
} from "https://deno.land/std@0.153.0/testing/mock.ts";
} from "https://deno.land/std@0.160.0/testing/mock.ts";

import { fourceInstantiateWasm, MediaType, transpile } from "./mod.ts";

Expand Down
4 changes: 2 additions & 2 deletions oak_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
assertEquals,
fail,
} from "https://deno.land/std@0.153.0/testing/asserts.ts";
import { deferred } from "https://deno.land/std@0.153.0/async/mod.ts";
} from "https://deno.land/std@0.160.0/testing/asserts.ts";
import { deferred } from "https://deno.land/std@0.160.0/async/mod.ts";
import { Application } from "https://deno.land/x/oak@v11.1.0/mod.ts";
import { MediaType, transpile, tsMiddleware } from "./mod.ts";

Expand Down
10 changes: 5 additions & 5 deletions src/file_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import {
type ServeDirOptions,
serveFile,
type ServeFileOptions,
} from "https://deno.land/std@0.153.0/http/file_server.ts";
} from "https://deno.land/std@0.160.0/http/file_server.ts";

import { transpileResponse } from "../utils/transpile_response.ts";

/**
* This can be used in the same way as the [serveFile](https://doc.deno.land/https://deno.land/std@0.153.0/http/file_server.ts/~/serveFile) function of the standard library, but if the file is TypeScript, it will be rewritten to JavaScript.
* This can be used in the same way as the [serveFile](https://doc.deno.land/https://deno.land/std@0.160.0/http/file_server.ts/~/serveFile) function of the standard library, but if the file is TypeScript, it will be rewritten to JavaScript.
*
* ```ts
* import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
* import { serve } from "https://deno.land/std@0.160.0/http/mod.ts";
* import { serveFileWithTs, fourceInstantiateWasm } from "https://deno.land/x/ts_serve@$VERSION/mod.ts";
*
* fourceInstantiateWasm();
Expand All @@ -28,10 +28,10 @@ export async function serveFileWithTs(
}

/**
* This can be used in the same way as the [serveDir](https://doc.deno.land/https://deno.land/std@0.153.0/http/file_server.ts/~/serveDir) function of the standard library, but if the file is TypeScript, it will be rewritten to JavaScript.
* This can be used in the same way as the [serveDir](https://doc.deno.land/https://deno.land/std@0.160.0/http/file_server.ts/~/serveDir) function of the standard library, but if the file is TypeScript, it will be rewritten to JavaScript.
*
* ```ts
* import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
* import { serve } from "https://deno.land/std@0.160.0/http/mod.ts";
* import { serveDirWithTs, fourceInstantiateWasm } from "https://deno.land/x/ts_serve@$VERSION/mod.ts";
*
* fourceInstantiateWasm();
Expand Down
4 changes: 2 additions & 2 deletions src/hono.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { serve } from "https://deno.land/std@0.159.0/http/server.ts";
import { Hono } from "https://deno.land/x/hono@v2.2.5/mod.ts";
import { serve } from "https://deno.land/std@0.160.0/http/server.ts";
import { Hono } from "https://deno.land/x/hono@v2.3.1/mod.ts";

const app = new Hono();

Expand Down
2 changes: 1 addition & 1 deletion utils/transpile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { emit } from "https://deno.land/x/emit@0.7.0/mod.ts";
import { emit } from "https://deno.land/x/emit@0.9.0/mod.ts";

/** File type. You can pass it as an option to the transpile function to tell it what media type the source is. */
export enum MediaType {
Expand Down
6 changes: 3 additions & 3 deletions utils/transpile_response.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { contentType } from "https://deno.land/std@0.153.0/media_types/mod.ts";
import { contentType } from "https://deno.land/std@0.160.0/media_types/mod.ts";
import { MediaType, transpile } from "../utils/transpile.ts";

const jsContentType = contentType(".js");
Expand All @@ -7,8 +7,8 @@ const jsContentType = contentType(".js");
* Transpile the body of the response and return a new response.
*
* ```ts
* import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
* import { serveFile } from "https://deno.land/std@0.153.0/http/file_server.ts";
* import { serve } from "https://deno.land/std@0.160.0/http/mod.ts";
* import { serveFile } from "https://deno.land/std@0.160.0/http/file_server.ts";
*
* import { transpileResponse } from "https://deno.land/x/ts_serve@$VERSION/utils/transpile_response.ts"
*
Expand Down
2 changes: 1 addition & 1 deletion utils/transpile_response_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.153.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.160.0/testing/asserts.ts";
import { transpileResponse } from "./transpile_response.ts";

Deno.test({
Expand Down
4 changes: 2 additions & 2 deletions utils/transpile_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.153.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.160.0/testing/asserts.ts";
import { MediaType, transpile } from "./transpile.ts";

const codes = [
Expand Down Expand Up @@ -26,7 +26,7 @@ const codes = [
[
MediaType.Jsx,
"file:///src.jsx",
`import { render } from "https://esm.sh/react-dom@18.3.0-next-e61fd91f5-20220630/";`,
`import { render } from "https://esm.sh/react-dom@18.3.0-next-f0efa1164-20220901/";`,
"//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9",
],
] as const;
Expand Down

0 comments on commit b967df1

Please sign in to comment.