From 7a7a9e6c2f7039f6bc4b9a4c9156b0c60eb15716 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Mon, 10 May 2021 15:01:54 -0500 Subject: [PATCH] - [chore] update std to 0.95.0 (#152) - [fix] linter warnings --- dependencies.md | 2 +- examples/bench.js | 2 +- examples/nats-events.ts | 2 +- examples/nats-pub.ts | 2 +- examples/nats-rep.ts | 2 +- examples/nats-req.ts | 2 +- examples/nats-sub.ts | 2 +- nats-base-client/headers.ts | 5 +++-- src/deno_transport.ts | 6 +++--- tests/auth_test.ts | 2 +- tests/autounsub_test.ts | 2 +- tests/basics_test.ts | 2 +- tests/bench_test.ts | 2 +- tests/binary_test.ts | 2 +- tests/buffer_test.ts | 2 +- tests/clobber_test.ts | 2 +- tests/codec_test.ts | 2 +- tests/consumeropts_test.ts | 2 +- tests/databuffer_test.ts | 2 +- tests/doublesubs_test.ts | 4 ++-- tests/drain_test.ts | 2 +- tests/events_test.ts | 2 +- tests/headers_test.ts | 2 +- tests/heartbeats_test.ts | 2 +- tests/helpers/asserts.ts | 2 +- tests/helpers/cluster.ts | 4 ++-- tests/helpers/conf_test.ts | 2 +- tests/helpers/launcher.ts | 6 +++--- tests/iterators_test.ts | 2 +- tests/jetstream_test.ts | 5 ++--- tests/jsm_test.ts | 2 +- tests/jsmsg_test.ts | 2 +- tests/json_test.ts | 2 +- tests/jstest_util.ts | 4 ++-- tests/noresponders_test.ts | 2 +- tests/parseip_test.ts | 2 +- tests/parser_test.ts | 2 +- tests/properties_test.ts | 2 +- tests/protocol_test.ts | 2 +- tests/queues_test.ts | 2 +- tests/reconnect_test.ts | 2 +- tests/servers_test.ts | 2 +- tests/sub_extensions_test.ts | 2 +- tests/tls_test.ts | 4 ++-- tests/token_test.ts | 2 +- tests/typedsub_test.ts | 2 +- tests/types_test.ts | 2 +- 47 files changed, 58 insertions(+), 58 deletions(-) diff --git a/dependencies.md b/dependencies.md index 8cd1cd8b..ada0213b 100644 --- a/dependencies.md +++ b/dependencies.md @@ -4,5 +4,5 @@ This file lists the dependencies used in this repository. | Dependency | License | | ----------------------------------------- | ----------- | -| https://deno.land/std@0.92.0/flags/mod.ts | MIT License | +| https://deno.land/std@0.95.0/flags/mod.ts | MIT License | | http://github.com/nats-io/nkeys.js | Apache-2.0 | diff --git a/examples/bench.js b/examples/bench.js index 24d6ce0b..7e9745e6 100755 --- a/examples/bench.js +++ b/examples/bench.js @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.92.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts"; import { connect, Nuid } from "../src/mod.ts"; import { Bench, Metric } from "../nats-base-client/bench.ts"; const defaults = { diff --git a/examples/nats-events.ts b/examples/nats-events.ts index e3f30473..2ff5d101 100755 --- a/examples/nats-events.ts +++ b/examples/nats-events.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.92.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts"; import { connect, ConnectionOptions } from "../src/mod.ts"; const argv = parse( diff --git a/examples/nats-pub.ts b/examples/nats-pub.ts index e399a5af..a7405e53 100755 --- a/examples/nats-pub.ts +++ b/examples/nats-pub.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.92.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts"; import { connect, ConnectionOptions, diff --git a/examples/nats-rep.ts b/examples/nats-rep.ts index dfd8d88b..570ef66e 100755 --- a/examples/nats-rep.ts +++ b/examples/nats-rep.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.92.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts"; import { connect, ConnectionOptions, diff --git a/examples/nats-req.ts b/examples/nats-req.ts index 7d71ec23..dc04863f 100755 --- a/examples/nats-req.ts +++ b/examples/nats-req.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.92.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts"; import { connect, ConnectionOptions, diff --git a/examples/nats-sub.ts b/examples/nats-sub.ts index 0506806d..7a3b5d1b 100755 --- a/examples/nats-sub.ts +++ b/examples/nats-sub.ts @@ -1,6 +1,6 @@ #!/usr/bin/env deno run --allow-all --unstable -import { parse } from "https://deno.land/std@0.92.0/flags/mod.ts"; +import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts"; import { connect, ConnectionOptions, diff --git a/nats-base-client/headers.ts b/nats-base-client/headers.ts index e458db9e..2d0684ba 100644 --- a/nats-base-client/headers.ts +++ b/nats-base-client/headers.ts @@ -205,11 +205,12 @@ export class MsgHdrsImpl implements MsgHdrs { return keys.filter((v) => { return v === k; }); - default: + default: { const lci = k.toLowerCase(); return keys.filter((v) => { return lci === v.toLowerCase(); }); + } } } @@ -241,7 +242,7 @@ export class MsgHdrsImpl implements MsgHdrs { } // if we get non-sensical ignores/etc, we should try // to do the right thing and use the first key that matches - let keys = this.findKeys(k, match); + const keys = this.findKeys(k, match); k = keys.length > 0 ? keys[0] : k; const value = MsgHdrsImpl.validHeaderValue(v); diff --git a/src/deno_transport.ts b/src/deno_transport.ts index 8ffb3468..bf6f5186 100644 --- a/src/deno_transport.ts +++ b/src/deno_transport.ts @@ -13,8 +13,8 @@ * limitations under the License. */ -import { BufWriter } from "https://deno.land/std@0.92.0/io/mod.ts"; -import { Deferred, deferred } from "https://deno.land/std@0.92.0/async/mod.ts"; +import { BufWriter } from "https://deno.land/std@0.95.0/io/mod.ts"; +import { Deferred, deferred } from "https://deno.land/std@0.95.0/async/mod.ts"; import Conn = Deno.Conn; import { checkOptions, @@ -32,7 +32,7 @@ import { } from "../nats-base-client/internal_mod.ts"; import type { TlsOptions } from "../nats-base-client/types.ts"; -const VERSION = "1.0.0"; +const VERSION = "1.0.4"; const LANG = "nats.deno"; // if trying to simply write to the connection for some reason diff --git a/tests/auth_test.ts b/tests/auth_test.ts index 01f93634..8f48989a 100644 --- a/tests/auth_test.ts +++ b/tests/auth_test.ts @@ -16,7 +16,7 @@ import { assertEquals, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, credsAuthenticator, diff --git a/tests/autounsub_test.ts b/tests/autounsub_test.ts index 38219b0c..c4dee0d6 100644 --- a/tests/autounsub_test.ts +++ b/tests/autounsub_test.ts @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, diff --git a/tests/basics_test.ts b/tests/basics_test.ts index f6d27afe..63c75365 100644 --- a/tests/basics_test.ts +++ b/tests/basics_test.ts @@ -18,7 +18,7 @@ import { assertThrows, assertThrowsAsync, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, createInbox, diff --git a/tests/bench_test.ts b/tests/bench_test.ts index 5466884c..2c8a4d34 100644 --- a/tests/bench_test.ts +++ b/tests/bench_test.ts @@ -16,7 +16,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { Bench, connect, createInbox } from "../src/mod.ts"; import { BenchOpts, Metric } from "../nats-base-client/bench.ts"; diff --git a/tests/binary_test.ts b/tests/binary_test.ts index 17a87baa..3d7758d5 100644 --- a/tests/binary_test.ts +++ b/tests/binary_test.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, createInbox, Msg } from "../src/mod.ts"; import { deferred } from "../nats-base-client/internal_mod.ts"; diff --git a/tests/buffer_test.ts b/tests/buffer_test.ts index 2d550628..da130a9a 100644 --- a/tests/buffer_test.ts +++ b/tests/buffer_test.ts @@ -11,7 +11,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { DenoBuffer, MAX_SIZE, diff --git a/tests/clobber_test.ts b/tests/clobber_test.ts index df47f570..ec4cc98c 100644 --- a/tests/clobber_test.ts +++ b/tests/clobber_test.ts @@ -16,7 +16,7 @@ import { NatsServer } from "./helpers/launcher.ts"; import { createInbox, DataBuffer } from "../nats-base-client/internal_mod.ts"; import { connect } from "../src/mod.ts"; -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; function makeBuffer(N: number): Uint8Array { const buf = new Uint8Array(N); diff --git a/tests/codec_test.ts b/tests/codec_test.ts index 7fd6c103..5e535bd3 100644 --- a/tests/codec_test.ts +++ b/tests/codec_test.ts @@ -13,7 +13,7 @@ * limitations under the License. */ import { JSONCodec, StringCodec } from "../nats-base-client/codec.ts"; -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; Deno.test("codec - string", () => { const sc = StringCodec(); diff --git a/tests/consumeropts_test.ts b/tests/consumeropts_test.ts index aa00fe36..6ecf289d 100644 --- a/tests/consumeropts_test.ts +++ b/tests/consumeropts_test.ts @@ -16,7 +16,7 @@ import { assertEquals, assertThrows, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { consumerOpts, diff --git a/tests/databuffer_test.ts b/tests/databuffer_test.ts index b5388970..7f6e0b19 100644 --- a/tests/databuffer_test.ts +++ b/tests/databuffer_test.ts @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { DataBuffer } from "../nats-base-client/internal_mod.ts"; Deno.test("databuffer - empty", () => { diff --git a/tests/doublesubs_test.ts b/tests/doublesubs_test.ts index d63348b0..0f8d1c3e 100644 --- a/tests/doublesubs_test.ts +++ b/tests/doublesubs_test.ts @@ -25,9 +25,9 @@ import { import { assertArrayIncludes, assertEquals, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { extend } from "../nats-base-client/util.ts"; -import { join, resolve } from "https://deno.land/std@0.92.0/path/mod.ts"; +import { join, resolve } from "https://deno.land/std@0.95.0/path/mod.ts"; async function runDoubleSubsTest(tls: boolean) { const cwd = Deno.cwd(); diff --git a/tests/drain_test.ts b/tests/drain_test.ts index 35bdfae4..6d27a86d 100644 --- a/tests/drain_test.ts +++ b/tests/drain_test.ts @@ -19,7 +19,7 @@ import { assertThrows, assertThrowsAsync, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, createInbox, diff --git a/tests/events_test.ts b/tests/events_test.ts index 23b54d84..5c8b7ce9 100644 --- a/tests/events_test.ts +++ b/tests/events_test.ts @@ -14,7 +14,7 @@ */ import { Lock, NatsServer, ServerSignals } from "../tests/helpers/mod.ts"; import { connect, Events, ServersChanged } from "../src/mod.ts"; -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { delay, NatsConnectionImpl } from "../nats-base-client/internal_mod.ts"; Deno.test("events - close on close", async () => { diff --git a/tests/headers_test.ts b/tests/headers_test.ts index be5815ae..109344e0 100644 --- a/tests/headers_test.ts +++ b/tests/headers_test.ts @@ -27,7 +27,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { MsgHdrsImpl } from "../nats-base-client/internal_mod.ts"; import { Match } from "../nats-base-client/headers.ts"; diff --git a/tests/heartbeats_test.ts b/tests/heartbeats_test.ts index 0d886161..0d1e2362 100644 --- a/tests/heartbeats_test.ts +++ b/tests/heartbeats_test.ts @@ -16,7 +16,7 @@ import { assert, assertEquals, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { DebugEvents, diff --git a/tests/helpers/asserts.ts b/tests/helpers/asserts.ts index f079e366..9e9edde3 100644 --- a/tests/helpers/asserts.ts +++ b/tests/helpers/asserts.ts @@ -18,7 +18,7 @@ import { assertThrows, assertThrowsAsync, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { isNatsError, NatsError } from "../../nats-base-client/error.ts"; export function assertErrorCode(err: Error, ...codes: string[]) { diff --git a/tests/helpers/cluster.ts b/tests/helpers/cluster.ts index 5799b8bf..91081c7d 100644 --- a/tests/helpers/cluster.ts +++ b/tests/helpers/cluster.ts @@ -14,8 +14,8 @@ */ import { NatsServer } from "./mod.ts"; -import { parse } from "https://deno.land/std@0.92.0/flags/mod.ts"; -import { rgb24 } from "https://deno.land/std@0.92.0/fmt/colors.ts"; +import { parse } from "https://deno.land/std@0.95.0/flags/mod.ts"; +import { rgb24 } from "https://deno.land/std@0.95.0/fmt/colors.ts"; const defaults = { c: 2, diff --git a/tests/helpers/conf_test.ts b/tests/helpers/conf_test.ts index 28a1ab17..b3a87bd4 100644 --- a/tests/helpers/conf_test.ts +++ b/tests/helpers/conf_test.ts @@ -14,7 +14,7 @@ */ import { toConf } from "./launcher.ts"; -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; Deno.test("conf - serializing simple", () => { const x = { diff --git a/tests/helpers/launcher.ts b/tests/helpers/launcher.ts index 1563b91d..759e1d42 100644 --- a/tests/helpers/launcher.ts +++ b/tests/helpers/launcher.ts @@ -13,8 +13,8 @@ * limitations under the License. */ // deno-lint-ignore-file no-explicit-any -import * as path from "https://deno.land/std@0.92.0/path/mod.ts"; -import { rgb24 } from "https://deno.land/std@0.92.0/fmt/colors.ts"; +import * as path from "https://deno.land/std@0.95.0/path/mod.ts"; +import { rgb24 } from "https://deno.land/std@0.95.0/fmt/colors.ts"; import { check } from "./mod.ts"; import { Deferred, @@ -24,7 +24,7 @@ import { nuid, timeout, } from "../../nats-base-client/internal_mod.ts"; -import { assert } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { jsopts } from "../jstest_util.ts"; export const ServerSignals = Object.freeze({ diff --git a/tests/iterators_test.ts b/tests/iterators_test.ts index ae6d39d7..6af6181f 100644 --- a/tests/iterators_test.ts +++ b/tests/iterators_test.ts @@ -13,7 +13,7 @@ * limitations under the License. */ import { connect, createInbox, ErrorCode, NatsError } from "../src/mod.ts"; -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { assertErrorCode, Lock, NatsServer } from "./helpers/mod.ts"; import { assert } from "../nats-base-client/denobuffer.ts"; import { QueuedIteratorImpl } from "../nats-base-client/queued_iterator.ts"; diff --git a/tests/jetstream_test.ts b/tests/jetstream_test.ts index c34a6b24..4e5af034 100644 --- a/tests/jetstream_test.ts +++ b/tests/jetstream_test.ts @@ -44,8 +44,8 @@ import { assertThrows, assertThrowsAsync, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; -import { yellow } from "https://deno.land/std@0.92.0/fmt/colors.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; +import { yellow } from "https://deno.land/std@0.95.0/fmt/colors.ts"; import { assert } from "../nats-base-client/denobuffer.ts"; import { PubAck } from "../nats-base-client/types.ts"; import { @@ -55,7 +55,6 @@ import { import { defaultJsOptions } from "../nats-base-client/jsbaseclient_api.ts"; import { connect } from "../src/connect.ts"; import { ConsumerOptsBuilderImpl } from "../nats-base-client/jsconsumeropts.ts"; -import { Match } from "../nats-base-client/headers.ts"; import { assertBetween } from "./helpers/mod.ts"; function callbackConsume(debug = false): JsMsgCallback { diff --git a/tests/jsm_test.ts b/tests/jsm_test.ts index c694619b..2d8f3c37 100644 --- a/tests/jsm_test.ts +++ b/tests/jsm_test.ts @@ -18,7 +18,7 @@ import { assertThrows, assertThrowsAsync, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { AckPolicy, AdvisoryKind, diff --git a/tests/jsmsg_test.ts b/tests/jsmsg_test.ts index ed9e5c0d..023fc4e4 100644 --- a/tests/jsmsg_test.ts +++ b/tests/jsmsg_test.ts @@ -15,7 +15,7 @@ import { assertEquals, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, createInbox, diff --git a/tests/json_test.ts b/tests/json_test.ts index d674c87f..e083d8e5 100644 --- a/tests/json_test.ts +++ b/tests/json_test.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, createInbox, diff --git a/tests/jstest_util.ts b/tests/jstest_util.ts index 680261f6..dfc430e7 100644 --- a/tests/jstest_util.ts +++ b/tests/jstest_util.ts @@ -1,7 +1,7 @@ -import * as path from "https://deno.land/std@0.92.0/path/mod.ts"; +import * as path from "https://deno.land/std@0.95.0/path/mod.ts"; import { NatsServer } from "../tests/helpers/mod.ts"; import { connect } from "../src/mod.ts"; -import { assert } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assert } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { ConnectionOptions, extend, diff --git a/tests/noresponders_test.ts b/tests/noresponders_test.ts index 24842d5d..5c767476 100644 --- a/tests/noresponders_test.ts +++ b/tests/noresponders_test.ts @@ -19,7 +19,7 @@ import { assert, assertEquals, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; Deno.test("noresponders - option", async () => { const srv = await NatsServer.start(); diff --git a/tests/parseip_test.ts b/tests/parseip_test.ts index ec523bba..4a9c1e3c 100644 --- a/tests/parseip_test.ts +++ b/tests/parseip_test.ts @@ -19,7 +19,7 @@ // license that can be found in the LICENSE file. import { parseIP } from "../nats-base-client/internal_mod.ts"; -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { ipV4 } from "../nats-base-client/ipparser.ts"; Deno.test("ipparser", () => { diff --git a/tests/parser_test.ts b/tests/parser_test.ts index fb3c76fe..093adaf9 100644 --- a/tests/parser_test.ts +++ b/tests/parser_test.ts @@ -30,7 +30,7 @@ import { assert, assertEquals, assertThrows, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import type { Publisher } from "../nats-base-client/protocol.ts"; const te = new TextEncoder(); diff --git a/tests/properties_test.ts b/tests/properties_test.ts index e2569805..1c820469 100644 --- a/tests/properties_test.ts +++ b/tests/properties_test.ts @@ -16,7 +16,7 @@ import { assert, assertEquals, assertMatch, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect } from "../src/mod.ts"; import { DenoTransport } from "../src/deno_transport.ts"; diff --git a/tests/protocol_test.ts b/tests/protocol_test.ts index 8fe95199..9dbc6f27 100644 --- a/tests/protocol_test.ts +++ b/tests/protocol_test.ts @@ -27,7 +27,7 @@ import { assertErrorCode } from "./helpers/mod.ts"; import { assertEquals, equal, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { protoLen } from "../nats-base-client/util.ts"; Deno.test("protocol - mux subscription unknown return null", async () => { diff --git a/tests/queues_test.ts b/tests/queues_test.ts index 61f047b8..b6e47d03 100644 --- a/tests/queues_test.ts +++ b/tests/queues_test.ts @@ -14,7 +14,7 @@ */ import { connect, createInbox, Subscription } from "../src/mod.ts"; -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; const u = "demo.nats.io:4222"; diff --git a/tests/reconnect_test.ts b/tests/reconnect_test.ts index 25e74af3..6a710867 100644 --- a/tests/reconnect_test.ts +++ b/tests/reconnect_test.ts @@ -17,7 +17,7 @@ import { assert, assertEquals, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, createInbox, diff --git a/tests/servers_test.ts b/tests/servers_test.ts index 7c69e16b..0af33808 100644 --- a/tests/servers_test.ts +++ b/tests/servers_test.ts @@ -14,7 +14,7 @@ * */ import { Servers } from "../nats-base-client/servers.ts"; -import { assertEquals } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import type { ServerInfo } from "../nats-base-client/internal_mod.ts"; import { setTransportFactory } from "../nats-base-client/internal_mod.ts"; diff --git a/tests/sub_extensions_test.ts b/tests/sub_extensions_test.ts index dbf9cea0..dc884b0e 100644 --- a/tests/sub_extensions_test.ts +++ b/tests/sub_extensions_test.ts @@ -15,7 +15,7 @@ import { assert, assertEquals, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, createInbox, Msg } from "../src/mod.ts"; import { deferred, diff --git a/tests/tls_test.ts b/tests/tls_test.ts index 09d7c10f..aa34d81e 100644 --- a/tests/tls_test.ts +++ b/tests/tls_test.ts @@ -15,11 +15,11 @@ import { assertEquals, fail, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, ErrorCode } from "../src/mod.ts"; import { assertErrorCode, Lock, NatsServer } from "./helpers/mod.ts"; -import { join, resolve } from "https://deno.land/std@0.92.0/path/mod.ts"; +import { join, resolve } from "https://deno.land/std@0.95.0/path/mod.ts"; Deno.test("tls - fail if server doesn't support TLS", async () => { const lock = Lock(); diff --git a/tests/token_test.ts b/tests/token_test.ts index ee8044ca..9b8c24be 100644 --- a/tests/token_test.ts +++ b/tests/token_test.ts @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { fail } from "https://deno.land/std@0.92.0/testing/asserts.ts"; +import { fail } from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect, ErrorCode } from "../src/mod.ts"; import { assertErrorCode, NatsServer } from "./helpers/mod.ts"; diff --git a/tests/typedsub_test.ts b/tests/typedsub_test.ts index f3f9e9b4..1a634ef7 100644 --- a/tests/typedsub_test.ts +++ b/tests/typedsub_test.ts @@ -16,7 +16,7 @@ import { assert, assertEquals, assertThrowsAsync, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; import { connect } from "../src/mod.ts"; import { createInbox, diff --git a/tests/types_test.ts b/tests/types_test.ts index 989c4a8c..86fcaf5f 100644 --- a/tests/types_test.ts +++ b/tests/types_test.ts @@ -25,7 +25,7 @@ import { DataBuffer, deferred } from "../nats-base-client/internal_mod.ts"; import { assert, assertEquals, -} from "https://deno.land/std@0.92.0/testing/asserts.ts"; +} from "https://deno.land/std@0.95.0/testing/asserts.ts"; const u = "demo.nats.io:4222";