Skip to content

Commit

Permalink
chore(deps): Move HTTPS import to JSR (#57)
Browse files Browse the repository at this point in the history
Since all Deno libraries will move to JSR.
  • Loading branch information
5ouma committed May 8, 2024
1 parent 0a51d2f commit 12ca577
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 164 deletions.
12 changes: 6 additions & 6 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"update": "deno run --allow-env --allow-read --allow-write --allow-run=git,deno --allow-net=deno.land https://deno.land/x/molt/cli.ts deno.json"
},
"imports": {
"assert": "https://deno.land/[email protected]/assert/mod.ts",
"path": "https://deno.land/std@0.224.0/path/mod.ts",
"toml": "https://deno.land/std@0.224.0/toml/mod.ts",
"parse_args": "https://deno.land/std@0.224.0/cli/parse_args.ts",
"case": "https://deno.land/x/[email protected]/mod.ts",
"xml": "https://deno.land/x/xml@4.0.0/mod.ts"
"@lowlighter/xml": "jsr:@lowlighter/xml@^4.0.1",
"@std/assert": "jsr:@std/assert@^0.225.1",
"@std/cli": "jsr:@std/cli@^0.224.1",
"@std/path": "jsr:@std/path@^0.224.0",
"@std/toml": "jsr:@std/toml@^0.224.0",
"@wok/case": "jsr:@wok/case@^1.0.1"
}
}
218 changes: 69 additions & 149 deletions deno.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/libs/convert.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { stringify } from "xml";
import { parse } from "toml";
import { stringify } from "@lowlighter/xml";
import { parse } from "@std/toml";
import { Feed, List, Lists, OPMLOutline } from "../types/mod.ts";

export function convertToTOML(data: string): Lists {
Expand Down
4 changes: 2 additions & 2 deletions src/libs/io.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { paramCase } from "case";
import { format } from "path";
import { paramCase } from "@wok/case";
import { format } from "@std/path";
import { List, Lists } from "../types/mod.ts";
import { convertToOPML, convertToTOML } from "./mod.ts";

Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseArgs } from "parse_args";
import { basename, resolve } from "path";
import { parseArgs } from "@std/cli";
import { basename, resolve } from "@std/path";
import { readTOML, writeXML } from "./libs/mod.ts";
import { Lists } from "./types/mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion test/libs/convert_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "assert";
import { assertEquals } from "@std/assert";
import { convertToOPML, convertToTOML } from "../../src/libs/mod.ts";
import { List, Lists } from "../../src/types/mod.ts";

Expand Down
4 changes: 2 additions & 2 deletions test/libs/io_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals } from "assert";
import { join } from "path";
import { assertEquals } from "@std/assert";
import { join } from "@std/path";
import {
convertToOPML,
convertToTOML,
Expand Down

0 comments on commit 12ca577

Please sign in to comment.