Skip to content
Merged
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
4 changes: 2 additions & 2 deletions bench/convert_maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* The given version must be a released version on JSR.
*/

import { expandGlob } from "jsr:@std/fs";
import { parseArgs } from "jsr:@std/cli/parse-args";
import { expandGlob } from "@std/fs";
import { parseArgs } from "@std/cli/parse-args";
import { encode } from "../src/mod.ts";

if (import.meta.main) {
Expand Down
4 changes: 2 additions & 2 deletions bench/decode.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import { expandGlob } from "jsr:@std/fs";
import { format } from "jsr:@std/fmt/bytes";
import { expandGlob } from "@std/fs";
import { format } from "@std/fmt/bytes";

import { decode, DecodeMode } from "../src/mod.ts";

Expand Down
4 changes: 2 additions & 2 deletions bench/encode.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import { expandGlob } from "jsr:@std/fs";
import { format } from "jsr:@std/fmt/bytes";
import { expandGlob } from "@std/fs";
import { format } from "@std/fmt/bytes";

import { decode, encode } from "../src/mod.ts";

Expand Down
7 changes: 7 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,12 @@
"bench",
"src/**/*.test.ts"
]
},
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.17",
"@std/cli": "jsr:@std/cli@^1.0.26",
"@std/fmt": "jsr:@std/fmt@^1.0.9",
"@std/fs": "jsr:@std/fs@^1.0.22",
"@std/testing": "jsr:@std/testing@^1.0.17"
}
}
79 changes: 51 additions & 28 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/builder/builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import { beforeEach, describe, it } from "jsr:@std/testing/bdd";
import { beforeEach, describe, it } from "@std/testing/bdd";
import { ScopeInfoBuilder } from "./builder.ts";
import {
assertEquals,
assertNotStrictEquals,
assertStrictEquals,
} from "jsr:@std/assert";
} from "@std/assert";

describe("ScopeInfoBuilder", () => {
let builder: ScopeInfoBuilder;
Expand Down
4 changes: 2 additions & 2 deletions src/builder/safe_builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import { beforeEach, describe, it } from "jsr:@std/testing/bdd";
import { beforeEach, describe, it } from "@std/testing/bdd";
import { SafeScopeInfoBuilder } from "./safe_builder.ts";
import { assertThrows } from "jsr:@std/assert";
import { assertThrows } from "@std/assert";

describe("SafeScopeInfoBuilder", () => {
let builder: SafeScopeInfoBuilder;
Expand Down
4 changes: 2 additions & 2 deletions src/decode/decode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import { describe, it } from "jsr:@std/testing/bdd";
import { describe, it } from "@std/testing/bdd";
import { ScopeInfoBuilder } from "../builder/builder.ts";
import { encode } from "../encode/encode.ts";
import {
assertEquals,
assertExists,
assertStrictEquals,
assertThrows,
} from "jsr:@std/assert";
} from "@std/assert";
import { encodeSigned, encodeUnsigned } from "../vlq.ts";
import { decode, DecodeMode } from "./decode.ts";
import type { IndexSourceMapJson, SourceMapJson } from "../scopes.ts";
Expand Down
4 changes: 2 additions & 2 deletions src/encode/encode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import { beforeEach, describe, it } from "jsr:@std/testing/bdd";
import { beforeEach, describe, it } from "@std/testing/bdd";
import type { ScopeInfo, SourceMapJson } from "../scopes.ts";
import { assertStrictEquals, assertThrows } from "jsr:@std/assert";
import { assertStrictEquals, assertThrows } from "@std/assert";
import { encode } from "./encode.ts";
import { ScopeInfoBuilder } from "../builder/builder.ts";

Expand Down
4 changes: 2 additions & 2 deletions src/roundtrip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
* check that the same `ScopesInfo` falls out.
*/

import { beforeEach, describe, it } from "jsr:@std/testing/bdd";
import { beforeEach, describe, it } from "@std/testing/bdd";
import type { ScopeInfo } from "./scopes.ts";
import { encode } from "./encode/encode.ts";
import { decode } from "./decode/decode.ts";
import { assertEquals } from "jsr:@std/assert";
import { assertEquals } from "@std/assert";
import { ScopeInfoBuilder } from "./builder/builder.ts";

function assertCodec(scopesInfo: ScopeInfo): void {
Expand Down
4 changes: 2 additions & 2 deletions src/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import { assertGreater, assertLess, assertStrictEquals } from "jsr:@std/assert";
import { describe, it } from "jsr:@std/testing/bdd";
import { assertGreater, assertLess, assertStrictEquals } from "@std/assert";
import { describe, it } from "@std/testing/bdd";
import { comparePositions } from "./util.ts";

describe("comparePositions", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/vlq.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import { describe, it } from "jsr:@std/testing/bdd";
import { describe, it } from "@std/testing/bdd";
import { TokenIterator } from "./vlq.ts";
import { assertFalse, assertStrictEquals } from "jsr:@std/assert";
import { assertFalse, assertStrictEquals } from "@std/assert";

describe("TokenIterator", () => {
describe("nextUnsignedVLQ", () => {
Expand Down