Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Aug 1, 2022
1 parent b0a2a68 commit cc67dae
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"contribs": "all-contributors"
},
"dependencies": {
"@grammyjs/types": "^2.8.1",
"@grammyjs/types": "^2.8.2",
"abort-controller": "^3.0.0",
"debug": "^4.3.4",
"node-fetch": "^2.6.7"
},
"devDependencies": {
"@types/debug": "^4.1.7",
"@types/node": "^12.20.50",
"@types/node": "^12.20.55",
"@types/node-fetch": "^2.6.2",
"all-contributors-cli": "^6.20.0",
"deno2node": "^1.4.0"
Expand Down
4 changes: 2 additions & 2 deletions src/platform.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export const isDeno = typeof Deno !== "undefined";

// === Export all API types
export * from "https://esm.sh/@grammyjs/[email protected].1";
export * from "https://esm.sh/@grammyjs/[email protected].2";

// === Export debug
import d from "https://cdn.skypack.dev/[email protected]";
Expand All @@ -20,7 +20,7 @@ if (isDeno) {

// === Export system-specific operations
// Turn an AsyncIterable<Uint8Array> into a stream
export { readableStreamFromIterable as itrToStream } from "https://deno.land/std@0.148.0/streams/mod.ts";
export { readableStreamFromIterable as itrToStream } from "https://deno.land/std@0.150.0/streams/mod.ts";

// === Base configuration for `fetch` calls
export const baseFetchConfig = (_apiRoot: string) => ({});
Expand Down
4 changes: 2 additions & 2 deletions src/types.deno.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// === Needed imports
import { type InputFileProxy } from "https://esm.sh/@grammyjs/[email protected].1";
import { type InputFileProxy } from "https://esm.sh/@grammyjs/[email protected].2";
import { debug as d, isDeno, toRaw } from "./platform.deno.ts";
import { basename } from "https://deno.land/[email protected]/path/mod.ts";
import { iterateReader } from "https://deno.land/[email protected]/streams/mod.ts";

const debug = d("grammy:warn");

// === Export all API types
export * from "https://esm.sh/@grammyjs/[email protected].1";
export * from "https://esm.sh/@grammyjs/[email protected].2";

/** Something that looks like a URL. */
interface URLLike {
Expand Down
2 changes: 1 addition & 1 deletion test/bot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Bot } from "../src/bot.ts";
import {
assertEquals,
assertThrows,
} from "https://deno.land/std@0.148.0/testing/asserts.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";

function createBot(token: string) {
return new Bot(token);
Expand Down
6 changes: 3 additions & 3 deletions test/composer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { type Context } from "../src/mod.ts";
import {
assertEquals,
assertRejects,
} from "https://deno.land/std@0.148.0/testing/asserts.ts";
import { type Spy, spy } from "https://deno.land/std@0.148.0/testing/mock.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";
import { type Spy, spy } from "https://deno.land/std@0.150.0/testing/mock.ts";
import {
beforeEach,
describe,
it,
} from "https://deno.land/std@0.148.0/testing/bdd.ts";
} from "https://deno.land/std@0.150.0/testing/bdd.ts";

describe("Composer", () => {
let composer: Composer<Context>;
Expand Down
4 changes: 2 additions & 2 deletions test/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
assertEquals,
assertFalse,
assertThrows,
} from "https://deno.land/std@0.147.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.147.0/testing/bdd.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts";

describe("Context", () => {
const u = { id: 42, first_name: "bot", is_bot: true } as User;
Expand Down
4 changes: 2 additions & 2 deletions test/convenience/keyboard.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { InlineKeyboard, Keyboard } from "../../src/convenience/keyboard.ts";
import { type LoginUrl } from "../../src/platform.deno.ts";
import { assertEquals } from "https://deno.land/std@0.147.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.147.0/testing/bdd.ts";
import { assertEquals } from "https://deno.land/std@0.150.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts";

describe("Keyboard", () => {
it("should take initial buttons", () => {
Expand Down
6 changes: 3 additions & 3 deletions test/convenience/session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
assertEquals,
assertRejects,
assertThrows,
} from "https://deno.land/std@0.147.0/testing/asserts.ts";
import { spy } from "https://deno.land/std@0.147.0/testing/mock.ts";
import { describe, it } from "https://deno.land/std@0.147.0/testing/bdd.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";
import { spy } from "https://deno.land/std@0.150.0/testing/mock.ts";
import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts";

const TICK_MS = 50;
const tick = (n = 1) => new Promise((r) => setTimeout(r, n * TICK_MS));
Expand Down
6 changes: 3 additions & 3 deletions test/core/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { type ApiResponse } from "../../src/types.ts";
import {
assertEquals,
assertRejects,
} from "https://deno.land/std@0.148.0/testing/asserts.ts";
import { spy, Stub, stub } from "https://deno.land/std@0.148.0/testing/mock.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";
import { spy, Stub, stub } from "https://deno.land/std@0.150.0/testing/mock.ts";
import {
afterEach,
beforeEach,
describe,
it,
} from "https://deno.land/std@0.148.0/testing/bdd.ts";
} from "https://deno.land/std@0.150.0/testing/bdd.ts";

const token = "secret-token";

Expand Down
4 changes: 2 additions & 2 deletions test/core/error.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpError, toHttpError } from "../../src/core/error.ts";
import { assertThrows } from "https://deno.land/std@0.148.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.148.0/testing/bdd.ts";
import { assertThrows } from "https://deno.land/std@0.150.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts";

describe("toHttpError", () => {
it("should throw errors", () => {
Expand Down
6 changes: 3 additions & 3 deletions test/core/payload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
assert,
assertEquals,
assertFalse,
} from "https://deno.land/std@0.148.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.148.0/testing/bdd.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts";
import {
readAll,
readerFromIterable,
} from "https://deno.land/std@0.148.0/streams/conversion.ts";
} from "https://deno.land/std@0.150.0/streams/conversion.ts";

describe("requiresFormDataUpload", () => {
it("should ignore primitives", () => {
Expand Down
4 changes: 2 additions & 2 deletions test/filter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { type Context } from "../src/mod.ts";
import {
assert,
assertThrows,
} from "https://deno.land/std@0.148.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.148.0/testing/bdd.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";
import { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts";

describe("matchFilter", () => {
it("should reject empty filters", () => {
Expand Down

0 comments on commit cc67dae

Please sign in to comment.