Skip to content

Commit

Permalink
feat(deps): update deps version
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed Apr 2, 2023
1 parent 3b3955a commit 84ed619
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 55 deletions.
10 changes: 5 additions & 5 deletions _dev_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ export {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.180.0/testing/asserts.ts";
export { describe, it } from "https://deno.land/std@0.180.0/testing/bdd.ts";
} from "https://deno.land/std@0.181.0/testing/asserts.ts";
export { describe, it } from "https://deno.land/std@0.181.0/testing/bdd.ts";
export {
assertSpyCalls,
spy,
} from "https://deno.land/std@0.180.0/testing/mock.ts";
export { equalsResponse } from "https://deno.land/x/http_utils@1.0.0-beta.13/response.ts";
export { RepresentationHeader } from "https://deno.land/x/http_utils@1.0.0-beta.13/header.ts";
} from "https://deno.land/std@0.181.0/testing/mock.ts";
export { equalsResponse } from "https://deno.land/x/http_utils@1.0.0/response.ts";
export { RepresentationHeader } from "https://deno.land/x/http_utils@1.0.0/header.ts";
18 changes: 10 additions & 8 deletions _tools/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const makeOptions = (version: string): BuildOptions => ({
compilerOptions: {
lib: ["dom", "dom.iterable", "esnext"],
},
typeCheck: false,
typeCheck: true,
entryPoints: ["./mod.ts"],
outDir: "./npm",
package: {
Expand Down Expand Up @@ -43,17 +43,19 @@ export const makeOptions = (version: string): BuildOptions => ({
name: "@httpland/http-middleware",
version: "1.0.0",
},
"https://deno.land/x/isx@1.0.0-beta.24/mod.ts": {
name: "isxx",
version: "1.0.0-beta.24",
"https://deno.land/x/isx@1.1.1/is_string.ts": {
name: "@miyauci/isx",
version: "1.1.1",
subPath: "is_string",
},
"https://deno.land/x/http_utils@1.0.0-beta.13/header.ts": {
"https://deno.land/x/http_utils@1.0.0/header.ts": {
name: "@httpland/http-utils",
version: "1.0.0-beta.13",
version: "1.0.0",
subPath: "header.js",
},
"https://deno.land/x/etag_parser@1.0.0/mod.ts": {
"https://deno.land/x/etag_parser@1.1.0/mod.ts": {
name: "@httpland/etag-parser",
version: "1.0.0",
version: "1.1.0",
},
},
});
60 changes: 26 additions & 34 deletions deno.lock
Original file line number Diff line number Diff line change
@@ -1,45 +1,37 @@
{
"version": "2",
"remote": {
"https://deno.land/std@0.178.0/http/http_status.ts": "8a7bcfe3ac025199ad804075385e57f63d055b2aed539d943ccc277616d6f932",
"https://deno.land/std@0.180.0/bytes/concat.ts": "d26d6f3d7922e6d663dacfcd357563b7bf4a380ce5b9c2bbe0c8586662f25ce2",
"https://deno.land/std@0.180.0/collections/_comparators.ts": "fa7f9a44cea1d270098a2a5a6f8bb30c61b595c1b1f983bd67c6297d766adffa",
"https://deno.land/std@0.180.0/collections/_utils.ts": "5114abc026ddef71207a79609b984614e66a63a4bda17d819d56b0e72c51527e",
"https://deno.land/std@0.180.0/collections/distinct.ts": "5f9671702ace8bc0ca59237554e6d7509b08899338ce6f990d146d26538339ea",
"https://deno.land/std@0.180.0/collections/intersect.ts": "cfe4a305b69a2ee1fedb29a08c412a36145326788c702526ab69f01c1b4b6c65",
"https://deno.land/std@0.180.0/collections/union.ts": "760ab22dd36316d9217ffc000c50b7da88915a95ed7a901b2e977906087e7882",
"https://deno.land/std@0.180.0/crypto/to_hash_string.ts": "fe4e95239d7afb617f469bc2f76ff20f888ddb8d1385e0d92276f6e4d5a809d1",
"https://deno.land/std@0.180.0/encoding/base64.ts": "7de04c2f8aeeb41453b09b186480be90f2ff357613b988e99fabb91d2eeceba1",
"https://deno.land/std@0.180.0/encoding/hex.ts": "50f8c95b52eae24395d3dfcb5ec1ced37c5fe7610ef6fffdcc8b0fdc38e3b32f",
"https://deno.land/std@0.180.0/fmt/colors.ts": "938c5d44d889fb82eff6c358bea8baa7e85950a16c9f6dae3ec3a7a729164471",
"https://deno.land/std@0.180.0/testing/_diff.ts": "1a3c044aedf77647d6cac86b798c6417603361b66b54c53331b312caeb447aea",
"https://deno.land/std@0.180.0/testing/_format.ts": "a69126e8a469009adf4cf2a50af889aca364c349797e63174884a52ff75cf4c7",
"https://deno.land/std@0.180.0/testing/_test_suite.ts": "30f018feeb3835f12ab198d8a518f9089b1bcb2e8c838a8b615ab10d5005465c",
"https://deno.land/std@0.180.0/testing/asserts.ts": "984ab0bfb3faeed92ffaa3a6b06536c66811185328c5dd146257c702c41b01ab",
"https://deno.land/std@0.180.0/testing/bdd.ts": "c5ca6d85940dbcc19b4d2bc3608d49ab65d81470aa91306d5efa4b0d5c945731",
"https://deno.land/std@0.180.0/testing/mock.ts": "220ed9b8151cb2cac141043d4cfea7c47673fab5d18d1c1f0943297c8afb5d13",
"https://deno.land/x/etag_parser@1.0.0/deps.ts": "f03f21a916bb366cda5526a33ba1ebd92bf9958a703a7ad51875ca3a443be603",
"https://deno.land/x/etag_parser@1.0.0/mod.ts": "7c685c6ace13f152194cf790dceebfd58f4d5c9eab523c99ab2913a814c3e52d",
"https://deno.land/x/etag_parser@1.0.0/parse.ts": "a7d90995ba40c18b056a4737b75dee7d4d679ad68b0b060a8ef9c526e4595bc6",
"https://deno.land/x/etag_parser@1.0.0/stringify.ts": "71b407daa623c53e83b5120025c1d30e16cbd1c47838b3eeb9b87a7d9a88cf8a",
"https://deno.land/x/etag_parser@1.0.0/types.ts": "46b690042ef708db597d362084ce11751b46a727129b525c5b2150dd3a6f1a02",
"https://deno.land/x/etag_parser@1.0.0/utils.ts": "6b32d205520efa1d3249cb04e4d6aeaeab246d95697681c467bf9c442a551aa6",
"https://deno.land/x/etag_parser@1.0.0/validate.ts": "2fabcbc8bbee732ce09bad98796e9a8b2e5342051d3a2879baeeca69a67c6408",
"https://deno.land/x/http_header_db@1.0.0-beta.1/db.json": "1e80734d199d7cc6749af4ac0de2f5fb815e4707666a83d2272022e201ab9510",
"https://deno.land/std@0.181.0/bytes/concat.ts": "d26d6f3d7922e6d663dacfcd357563b7bf4a380ce5b9c2bbe0c8586662f25ce2",
"https://deno.land/std@0.181.0/crypto/to_hash_string.ts": "6927c768f3e373a1be4a31555a45ccecf7bd413105455cc334ad3f908cfa986f",
"https://deno.land/std@0.181.0/encoding/base64.ts": "144ae6234c1fbe5b68666c711dc15b1e9ee2aef6d42b3b4345bf9a6c91d70d0d",
"https://deno.land/std@0.181.0/encoding/hex.ts": "b4b1a7cb678745b0bf181ed8cf2498c7be00d121a7de244b752fbf9c7d9c48cd",
"https://deno.land/std@0.181.0/fmt/colors.ts": "d67e3cd9f472535241a8e410d33423980bec45047e343577554d3356e1f0ef4e",
"https://deno.land/std@0.181.0/testing/_diff.ts": "1a3c044aedf77647d6cac86b798c6417603361b66b54c53331b312caeb447aea",
"https://deno.land/std@0.181.0/testing/_format.ts": "a69126e8a469009adf4cf2a50af889aca364c349797e63174884a52ff75cf4c7",
"https://deno.land/std@0.181.0/testing/_test_suite.ts": "30f018feeb3835f12ab198d8a518f9089b1bcb2e8c838a8b615ab10d5005465c",
"https://deno.land/std@0.181.0/testing/asserts.ts": "e16d98b4d73ffc4ed498d717307a12500ae4f2cbe668f1a215632d19fcffc22f",
"https://deno.land/std@0.181.0/testing/bdd.ts": "c5ca6d85940dbcc19b4d2bc3608d49ab65d81470aa91306d5efa4b0d5c945731",
"https://deno.land/std@0.181.0/testing/mock.ts": "220ed9b8151cb2cac141043d4cfea7c47673fab5d18d1c1f0943297c8afb5d13",
"https://deno.land/x/etag_parser@1.1.0/constants.ts": "73ba792efa5ae17a249e90def3745fd08220af14de033d5e264b744bb8c68e38",
"https://deno.land/x/etag_parser@1.1.0/deps.ts": "05b354a88ce8d15817c2c31e71f8a11c23240c1d2cefa0f9495eb3ba3b714f94",
"https://deno.land/x/etag_parser@1.1.0/mod.ts": "2a226b49b3ce6bcefbf61cb09067434fdf31035bec56eeb11f11fb58d904a54f",
"https://deno.land/x/etag_parser@1.1.0/parse.ts": "1c56c9a1447c6b0dba0c0f213d069f3d08f7094e250710a873e8970c53bbe7b5",
"https://deno.land/x/etag_parser@1.1.0/stringify.ts": "92f7342831c2b46c33bb23405b70443f87dbc8127a153562dbccd6a3a713b221",
"https://deno.land/x/etag_parser@1.1.0/types.ts": "8003ca86132799cf9c11abd4a115d41b5e51b808438cc9da3047e261963def48",
"https://deno.land/x/etag_parser@1.1.0/utils.ts": "7a18a04493ca836ab26dc6bb84bd97131599cfb6853b14dc85e93388053acf53",
"https://deno.land/x/etag_parser@1.1.0/validate.ts": "307366f25d8486b532c20d207b29e8d8c1f554c4d385cff5dc2a62519d079a39",
"https://deno.land/x/http_middleware@1.0.0/mod.ts": "a3b0809ce37f80568c362003a5b281564882b64dba53e12bf5a8f1e2b6bfc19e",
"https://deno.land/x/http_middleware@1.0.0/types.ts": "9a40ebea7f906d7518f5765c7a633f5610ac4ebedb583b0c69395643c350f4d3",
"https://deno.land/x/http_utils@1.0.0-beta.13/deps.ts": "b9618bd45a7d93f6c397b7e15b8a1dfd45457c3d185217bc24fb6c48b07ebf19",
"https://deno.land/x/http_utils@1.0.0-beta.13/header.ts": "0bb161dc8fd31322da7b84e90ca9213fcf98b0a43767bee933bd7f208b719dff",
"https://deno.land/x/http_utils@1.0.0-beta.13/response.ts": "f8b74d04e4f227d7e31ac96b1f3b916238f7b5c7615a7e475430fe9c45c8728e",
"https://deno.land/x/isx@1.0.0-beta.24/dates.ts": "7db2683da8d3c86ada3d8cbccbedd8ed0c81f7cc8be63001c18a4677f3ef325f",
"https://deno.land/x/isx@1.0.0-beta.24/mod.ts": "edc3ecd7a38c2ab983362113ea9feb1603e382c4cbdfaad9ffe619bba570c9eb",
"https://deno.land/x/isx@1.0.0-beta.24/numbers.ts": "f268acd1abfd87ac03251ed990b64d2ed48ec3f30e7ae0b4d42a8c45dd13db3d",
"https://deno.land/x/isx@1.0.0-beta.24/object.ts": "5db91aee7a43c52ab83e9fdc65378f40de7e4fb2616fec9a8022bb742720f64b",
"https://deno.land/x/isx@1.0.0-beta.24/strings.ts": "9893f0cd45965d33590ddbf9ec3dd10ac8055dfdd0d725bca04faa89c200d982",
"https://deno.land/x/isx@1.0.0-beta.24/top_types.ts": "06f5a2b201019b48c6066631428d5d2a5a267b4aa663bb43301e29a6b8b9e7be",
"https://deno.land/x/prelude_js@1.0.0-beta.2/deps.ts": "8a8002b53623cfbf38b95ec23802f0580634546f3cc65875251ba80e28fe64aa",
"https://deno.land/x/prelude_js@1.0.0-beta.2/mod.ts": "b9795ef8d664f0d061e80c0788f7b13370f6cb6be7aaa4386f3ae10bc3cc7e96",
"https://deno.land/x/prelude_js@1.0.0-beta.2/multiary.ts": "afd3991456cea084bc2f995bd56b780c358ceff9c1f292ab7dfa5496af5172a8",
"https://deno.land/x/prelude_js@1.0.0-beta.2/unary.ts": "b79963a09af544cdbf81caf341fb25887a453670455a0808ce8c595bec4cc7e1"
"https://deno.land/x/http_utils@1.0.0/_utils.ts": "f253eab4365b399affc617a5230d6f8a10c69da0bee793c08d7d66902cad0a22",
"https://deno.land/x/http_utils@1.0.0/deps.ts": "77dc91cb7318000b799e5eadd2dbece27d05f1ec410bd285d3c50956795106ad",
"https://deno.land/x/http_utils@1.0.0/header.ts": "28b18228607d9cbd4d639c5e4b9a989287b24a5dd0c928be73e89e7522b6cc0f",
"https://deno.land/x/http_utils@1.0.0/response.ts": "2c1d1492170ba8ad165149c53127ea5b907b68d3ab2ee1358bf21c1dccff5d06",
"https://deno.land/x/isx@1.0.0/is_string.ts": "268254eab5f8dbc09ee879eb53675813cdc5350207dde436d457cb34462cc857",
"https://deno.land/x/isx@1.1.1/is_null.ts": "02b30255073843d001e715a04382f1d6aebd77ed5506ffbb44bf77b9e20ebf7d",
"https://deno.land/x/isx@1.1.1/is_string.ts": "268254eab5f8dbc09ee879eb53675813cdc5350207dde436d457cb34462cc857"
}
}
12 changes: 6 additions & 6 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2023-latest the httpland authors. All rights reserved. MIT license.
// This module is browser compatible.

export { toHashString } from "https://deno.land/std@0.180.0/crypto/to_hash_string.ts";
export { isString } from "https://deno.land/x/isx@1.0.0-beta.24/mod.ts";
export { toHashString } from "https://deno.land/std@0.181.0/crypto/to_hash_string.ts";
export { isString } from "https://deno.land/x/isx@1.1.1/is_string.ts";
export {
type Handler,
type Middleware,
} from "https://deno.land/x/http_middleware@1.0.0/mod.ts";
export {
RepresentationHeader,
} from "https://deno.land/x/http_utils@1.0.0-beta.13/header.ts";
} from "https://deno.land/x/http_utils@1.0.0/header.ts";
export {
type ETag,
type ETagFormat,
stringify,
} from "https://deno.land/x/etag_parser@1.0.0/mod.ts";
export { concat } from "https://deno.land/std@0.180.0/bytes/concat.ts";
stringifyETag,
} from "https://deno.land/x/etag_parser@1.1.0/mod.ts";
export { concat } from "https://deno.land/std@0.181.0/bytes/concat.ts";
4 changes: 2 additions & 2 deletions transform.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023-latest the httpland authors. All rights reserved. MIT license.
// This module is browser compatible.

import { isString, RepresentationHeader, stringify } from "./deps.ts";
import { isString, RepresentationHeader, stringifyETag } from "./deps.ts";
import type { ComputeETag } from "./types.ts";

/** Response with `ETag` header field.
Expand All @@ -20,7 +20,7 @@ export async function withEtag(
) return response;

const etagLike = await calculate(response.clone());
const etag = isString(etagLike) ? etagLike : stringify(etagLike);
const etag = isString(etagLike) ? etagLike : stringifyETag(etagLike);
const res = response.clone();

res.headers.set(RepresentationHeader.ETag, etag);
Expand Down

0 comments on commit 84ed619

Please sign in to comment.