diff --git a/.changeset/brown-swans-invite.md b/.changeset/brown-swans-invite.md new file mode 100644 index 00000000..7ab2970d --- /dev/null +++ b/.changeset/brown-swans-invite.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-astro": patch +--- + +chore(deps): replace sourcemap-codec with @jridgewell/sourcemap-codec diff --git a/package.json b/package.json index 1651e4c8..6dd9d193 100644 --- a/package.json +++ b/package.json @@ -52,12 +52,12 @@ }, "homepage": "https://ota-meshi.github.io/eslint-plugin-astro/", "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.14", "@typescript-eslint/types": "^5.25.0", "astro-eslint-parser": "^0.9.0", "eslint-utils": "^3.0.0", "postcss": "^8.4.14", - "postcss-selector-parser": "^6.0.10", - "sourcemap-codec": "^1.4.8" + "postcss-selector-parser": "^6.0.10" }, "peerDependencies": { "eslint": ">=7.0.0" diff --git a/src/utils/transform/index.ts b/src/utils/transform/index.ts index 8a150ce1..23fdadd3 100644 --- a/src/utils/transform/index.ts +++ b/src/utils/transform/index.ts @@ -1,6 +1,5 @@ import type { AST } from "astro-eslint-parser" -import type { SourceMapMappings } from "sourcemap-codec" -import { decode } from "sourcemap-codec" +import { decode, type SourceMapMappings } from "@jridgewell/sourcemap-codec" import type { RuleContext } from "../../types" import { findAttribute, getStaticAttributeStringValue } from "../ast-utils" import { getContentRange } from "./utils"