diff --git a/.changeset/dull-dryers-smoke.md b/.changeset/dull-dryers-smoke.md new file mode 100644 index 000000000..18b74ec3f --- /dev/null +++ b/.changeset/dull-dryers-smoke.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-svelte": patch +--- + +fix(deps): update sourcemap-codec dependency diff --git a/package.json b/package.json index d82ebac25..0c3d19443 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ } }, "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.14", "debug": "^4.3.1", "eslint-utils": "^3.0.0", "esutils": "^2.0.3", @@ -72,7 +73,6 @@ "postcss": "^8.4.5", "postcss-load-config": "^3.1.4", "postcss-safe-parser": "^6.0.0", - "sourcemap-codec": "^1.4.8", "svelte-eslint-parser": "^0.22.0" }, "devDependencies": { diff --git a/src/shared/svelte-compile-warns/index.ts b/src/shared/svelte-compile-warns/index.ts index a4e2bd5ca..74d4b389a 100644 --- a/src/shared/svelte-compile-warns/index.ts +++ b/src/shared/svelte-compile-warns/index.ts @@ -1,7 +1,7 @@ import type { AST } from "svelte-eslint-parser" import * as compiler from "svelte/compiler" -import type { SourceMapMappings } from "sourcemap-codec" -import { decode } from "sourcemap-codec" +import type { SourceMapMappings } from "@jridgewell/sourcemap-codec" +import { decode } from "@jridgewell/sourcemap-codec" import type { RuleContext } from "../../types" import { LinesAndColumns } from "../../utils/lines-and-columns" import type { TransformResult } from "./transform/types"