Skip to content

Commit

Permalink
chore(deps): bump is-svg from 4.3.2 to 5.0.0 (#8330)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Mar 1, 2023
1 parent 5e23ee4 commit 7bc71ad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function isImage(filePath) {
return false;
}
if (filePath.toLowerCase().endsWith(".svg")) {
return isSvg(fs.readFileSync(filePath));
return isSvg(fs.readFileSync(filePath, "utf-8"));
}
const buffer = readChunkSync(filePath, { length: 12 });
if (buffer.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"imagemin-pngquant": "^9.0.2",
"imagemin-svgo": "^10.0.1",
"inquirer": "^9.1.4",
"is-svg": "^4.3.2",
"is-svg": "^5.0.0",
"js-yaml": "^4.1.0",
"loglevel": "^1.8.1",
"lru-cache": "^7.18.1",
Expand Down
18 changes: 16 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5820,6 +5820,13 @@ fast-xml-parser@^3.19.0:
dependencies:
strnum "^1.0.4"

fast-xml-parser@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.1.3.tgz#0254ad0d4d27f07e6b48254b068c0c137488dd97"
integrity sha512-LsNDahCiCcJPe8NO7HijcnukHB24tKbfDDA5IILx9dmW3Frb52lhbeX6MPNUSvyGNfav2VTYpJ/OqkRoVLrh2Q==
dependencies:
strnum "^1.0.5"

fastest-levenshtein@^1.0.12, fastest-levenshtein@^1.0.16:
version "1.0.16"
resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz#210e61b6ff181de91ea9b3d1b84fdedd47e034e5"
Expand Down Expand Up @@ -7490,13 +7497,20 @@ is-string@^1.0.5, is-string@^1.0.7:
dependencies:
has-tostringtag "^1.0.0"

is-svg@^4.3.1, is-svg@^4.3.2:
is-svg@^4.3.1:
version "4.3.2"
resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-4.3.2.tgz#a119e9932e1af53f6be1969d1790d6cc5fd947d3"
integrity sha512-mM90duy00JGMyjqIVHu9gNTjywdZV+8qNasX8cm/EEYZ53PHDgajvbBwNVvty5dwSAxLUD3p3bdo+7sR/UMrpw==
dependencies:
fast-xml-parser "^3.19.0"

is-svg@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-5.0.0.tgz#b3039213d6f4805669bb5afb043e05e5632ed206"
integrity sha512-sRl7J0oX9yUNamSdc8cwgzh9KBLnQXNzGmW0RVHwg/jEYjGNYHC6UvnYD8+hAeut9WwxRvhG9biK7g/wDGxcMw==
dependencies:
fast-xml-parser "^4.1.3"

is-symbol@^1.0.2, is-symbol@^1.0.3:
version "1.0.4"
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c"
Expand Down Expand Up @@ -12238,7 +12252,7 @@ strip-outer@^1.0.0:
dependencies:
escape-string-regexp "^1.0.2"

strnum@^1.0.4:
strnum@^1.0.4, strnum@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db"
integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==
Expand Down

0 comments on commit 7bc71ad

Please sign in to comment.