Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@std/assert": "jsr:@std/assert@^1",
"@std/cli": "jsr:@std/cli@^1",
"@std/fs": "jsr:@std/fs@^1",
"@std/http": "jsr:@std/http@^0.206.0",
"@std/path": "jsr:@std/path@^1.0.9",
"@std/testing": "jsr:@std/testing@^1",
"@std/text": "jsr:@std/text@^1"
Expand Down
7 changes: 4 additions & 3 deletions scripts/src/imports/update.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseArgs } from "@std/cli/parse-args";
import { createHttpError } from "@std/http/http-errors";
import { createHttpError } from "jsr:@std/http@^0.206.0/http-errors";
import { dirname, join, relative } from "@std/path";

// Regex for https://deno.land/x/deno_slack_api@x.x.x/
Expand Down Expand Up @@ -27,10 +27,11 @@ async function main() {

const apiDepsInSdk = await apiDepsIn(denoSlackSdkValue);

// Use "src" not "/src/" - leading slash makes join() treat it as absolute, dropping the relative path
const apiPackageSpecifier = join(
relative(importFileDir, apiDir),
"/src/",
);
"src",
) + "/";

importFile["imports"]["deno-slack-api/"] = apiPackageSpecifier;
importFile["scopes"] = {
Expand Down
2 changes: 1 addition & 1 deletion scripts/src/imports/update_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isHttpError } from "@std/http/http-errors";
import { isHttpError } from "jsr:@std/http@^0.206.0/http-errors";
import { assertEquals, assertRejects } from "@std/assert";
import { apiDepsIn } from "./update.ts";
import { stubFetch } from "../../../testing/http.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/api_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
assertRejects,
} from "@std/assert";
import { SlackAPI } from "./mod.ts";
import { HttpError } from "@std/http/http-errors";
import { HttpError } from "jsr:@std/http@^0.206.0/http-errors";
import { stubFetch } from "../testing/http.ts";

Deno.test("SlackAPI class", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion src/base-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
SlackAPIMethodArgs,
SlackAPIOptions,
} from "./types.ts";
import { createHttpError, type HttpError } from "@std/http/http-errors";
import { createHttpError, type HttpError } from "jsr:@std/http@^0.206.0/http-errors";
import { getUserAgent, serializeData } from "./base-client-helpers.ts";

export class BaseSlackAPIClient implements BaseSlackClient {
Expand Down
Loading