From 75c1db71d13a428d7b63af3f601b3217ecac3f2c Mon Sep 17 00:00:00 2001 From: v1rtl Date: Thu, 4 Jan 2024 13:44:19 +0200 Subject: [PATCH] bump std --- deno.lock | 27 +++++++++++++++++---------- deps.ts | 4 ++-- mod.ts | 15 +++++++++------ mod_test.ts | 2 +- 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/deno.lock b/deno.lock index d4889cb..ca08648 100644 --- a/deno.lock +++ b/deno.lock @@ -3,7 +3,8 @@ "packages": { "specifiers": { "npm:graphql-http@1.22.0": "npm:graphql-http@1.22.0_graphql@16.8.1", - "npm:graphql@16.8.1": "npm:graphql@16.8.1" + "npm:graphql@16.8.1": "npm:graphql@16.8.1", + "npm:graphql@17.0.0-alpha.3.canary.pr.3791.4a8f641106bee54f1e4a4de4bf59c49976541b00": "npm:graphql@17.0.0-alpha.3.canary.pr.3969.83688beb16ecba5a0495158c3c2b3684730579bf" }, "npm": { "graphql-http@1.22.0_graphql@16.8.1": { @@ -15,6 +16,10 @@ "graphql@16.8.1": { "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==", "dependencies": {} + }, + "graphql@17.0.0-alpha.3.canary.pr.3969.83688beb16ecba5a0495158c3c2b3684730579bf": { + "integrity": "sha512-SCRMu7al+0WWdC3yfL7WYuIEwJfi1jB+vbG1C1wRC7i7ladsPbW8iQpt1k5RIaC26ezSXBqJu9cXvuFCT99ycA==", + "dependencies": {} } } }, @@ -33,14 +38,16 @@ "https://deno.land/std@0.129.0/http/server.ts": "10c3a7814666cdbabd6f9c18acdcc4593e222275a628280a4868881445fbb5bc", "https://deno.land/std@0.129.0/testing/_diff.ts": "9d849cd6877694152e01775b2d93f9d6b7aef7e24bfe3bfafc4d7a1ac8e9f392", "https://deno.land/std@0.129.0/testing/asserts.ts": "0a95d9e8076dd3e7f0eeb605a67c148078b4b11f4abcd5eef115b0361b0736a2", - "https://deno.land/std@0.205.0/http/_negotiation/common.ts": "14d1a52427ab258a4b7161cd80e1d8a207b7cc64b46e911780f57ead5f4323c6", - "https://deno.land/std@0.205.0/http/_negotiation/encoding.ts": "ff747d107277c88cb7a6a62a08eeb8d56dad91564cbcccb30694d5dc126dcc53", - "https://deno.land/std@0.205.0/http/_negotiation/language.ts": "7bcddd8db3330bdb7ce4fc00a213c5547c1968139864201efd67ef2d0d51887d", - "https://deno.land/std@0.205.0/http/_negotiation/media_type.ts": "58847517cd549384ad677c0fe89e0a4815be36fe7a303ea63cee5f6a1d7e1692", - "https://deno.land/std@0.205.0/http/negotiation.ts": "46e74a6bad4b857333a58dc5b50fe8e5a4d5267e97292293ea65f980bd918086", - "https://deno.land/std@0.205.0/http/status.ts": "1353e82e27996ef123dc625e5fcc9d66b94d92e5175879fa5e9f0dc39330206a", "https://deno.land/std@0.205.0/testing/_test_suite.ts": "30f018feeb3835f12ab198d8a518f9089b1bcb2e8c838a8b615ab10d5005465c", "https://deno.land/std@0.205.0/testing/bdd.ts": "3f446df5ef8e856a869e8eec54c8482590415741ff0b6358a00c43486cc15769", + "https://deno.land/std@0.210.0/http/_negotiation/common.ts": "14d1a52427ab258a4b7161cd80e1d8a207b7cc64b46e911780f57ead5f4323c6", + "https://deno.land/std@0.210.0/http/_negotiation/encoding.ts": "ff747d107277c88cb7a6a62a08eeb8d56dad91564cbcccb30694d5dc126dcc53", + "https://deno.land/std@0.210.0/http/_negotiation/language.ts": "7bcddd8db3330bdb7ce4fc00a213c5547c1968139864201efd67ef2d0d51887d", + "https://deno.land/std@0.210.0/http/_negotiation/media_type.ts": "58847517cd549384ad677c0fe89e0a4815be36fe7a303ea63cee5f6a1d7e1692", + "https://deno.land/std@0.210.0/http/negotiation.ts": "46e74a6bad4b857333a58dc5b50fe8e5a4d5267e97292293ea65f980bd918086", + "https://deno.land/std@0.210.0/http/status.ts": "a1b712248767f486c7403b7c06ac2bf0dd2d42abdc4253aa858433464aa62ca9", + "https://deno.land/std@0.210.0/testing/_test_suite.ts": "30f018feeb3835f12ab198d8a518f9089b1bcb2e8c838a8b615ab10d5005465c", + "https://deno.land/std@0.210.0/testing/bdd.ts": "c41f019786c4a9112aadb7e5a7bbcc711f58429ac5904b3855fa248ba5fa0ba6", "https://deno.land/std@0.97.0/fmt/colors.ts": "db22b314a2ae9430ae7460ce005e0a7130e23ae1c999157e3bb77cf55800f7e4", "https://deno.land/std@0.97.0/testing/_diff.ts": "961eaf6d9f5b0a8556c9d835bbc6fa74f5addd7d3b02728ba7936ff93364f7a3", "https://deno.land/std@0.97.0/testing/asserts.ts": "341292d12eebc44be4c3c2ca101ba8b6b5859cef2fa69d50c217f9d0bfbcfd1f", @@ -60,9 +67,9 @@ "https://deno.land/x/superdeno@4.8.0/src/utils.ts": "458c1699f73e348745b9b4d081e005dbc12d050fd2899ebf4f919515823ba1c0", "https://deno.land/x/superdeno@4.8.0/src/xhrSham.js": "91f28215c07af47155c7abe711a097d67d89916a80d666ef6d26fab3e5179af2", "https://deno.land/x/superdeno@4.8.0/version.ts": "c84185c6cf0c198d406ae8892cc56a981002cce5d09e9b6293718bf02ad1d2c4", - "https://esm.sh/v133/cssfilter@0.0.10/denonext/cssfilter.mjs": "b2dec5f4b51c7574509f04305aa54e33f9de336d66eade79f05552312f18f40b", - "https://esm.sh/v133/xss@1.0.14/denonext/xss.mjs": "d3093ce2e72808314a367efb26a944fe0a83761efd7fec308c1636e6b9934cfb", - "https://esm.sh/xss@1.0.14": "e12dc644496b685f0af21df487889bd39825a269bc0b10c79c80f02e6accf582", + "https://esm.sh/v135/cssfilter@0.0.10/denonext/cssfilter.mjs": "b2dec5f4b51c7574509f04305aa54e33f9de336d66eade79f05552312f18f40b", + "https://esm.sh/v135/xss@1.0.14/denonext/xss.mjs": "14816f7618a48f2141c7ca320bdf60ef284f4015dfa3a8f7fd15c65c922f556d", + "https://esm.sh/xss@1.0.14": "8102ceb8c90a3acaa2e7611559aa5a3ff41554f2cc3b06122739a9589c78f8ff", "https://jspm.dev/npm:call-bind@1.0.5!cjs": "09f8399c727fc1e9d58fdafc0a729b45bf37b7ee0c11d9d0b39abe37ac42ccf5", "https://jspm.dev/npm:call-bind@1.0.5/callBound!cjs": "55fa05e2b115eeaef9ff684e3df12de253e6644a40ad09b5722f3a9a8df8f645", "https://jspm.dev/npm:call-bind@1/callBound!cjs": "9cf2ef160025d392767618c2f0cb72d32cf14caa3fbeb493c6df9bde9d7fca8d", diff --git a/deps.ts b/deps.ts index a50929d..54309c9 100644 --- a/deps.ts +++ b/deps.ts @@ -13,6 +13,6 @@ export { type RequestParams, } from 'npm:graphql-http@1.22.0' export { - Status, STATUS_TEXT, -} from 'https://deno.land/std@0.205.0/http/status.ts' + type StatusCode, +} from 'https://deno.land/std@0.210.0/http/status.ts' diff --git a/mod.ts b/mod.ts index ef512f3..eeb7af2 100644 --- a/mod.ts +++ b/mod.ts @@ -2,10 +2,10 @@ import { createHandler, OperationContext, RawRequest, - Status, STATUS_TEXT, + type StatusCode, } from './deps.ts' -import { accepts } from 'https://deno.land/std@0.205.0/http/negotiation.ts' +import { accepts } from 'https://deno.land/std@0.210.0/http/negotiation.ts' import { GQLOptions } from './types.ts' function toRequest( @@ -67,10 +67,13 @@ export function GraphQLHTTP< ), ) - return new Response(body || STATUS_TEXT[init.status as Status], { - ...init, - headers: new Headers({ ...init.headers, ...headers }), - }) + return new Response( + body || STATUS_TEXT[init.status as StatusCode], + { + ...init, + headers: new Headers({ ...init.headers, ...headers }), + }, + ) } catch (e) { console.error( 'Internal error occurred during request handling. ' + diff --git a/mod_test.ts b/mod_test.ts index bfc6f79..407fb2b 100644 --- a/mod_test.ts +++ b/mod_test.ts @@ -1,5 +1,5 @@ import { superdeno } from 'https://deno.land/x/superdeno@4.8.0/mod.ts?target=deno' -import { describe, it } from 'https://deno.land/std@0.205.0/testing/bdd.ts' +import { describe, it } from 'https://deno.land/std@0.210.0/testing/bdd.ts' import { buildSchema, GraphQLObjectType,