Skip to content

Commit 0fabca8

Browse files
chore: bump file-type from 19.6.0 to 20.0.1 (#97)
* chore: bump file-type from 19.6.0 to 20.0.1 Bumps [file-type](https://github.com/sindresorhus/file-type) from 19.6.0 to 20.0.1. - [Release notes](https://github.com/sindresorhus/file-type/releases) - [Commits](sindresorhus/file-type@v19.6.0...v20.0.1) --- updated-dependencies: - dependency-name: file-type dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix lints --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nikita <lisqxd@proton.me>
1 parent e2d50fc commit 0fabca8

File tree

3 files changed

+47
-52
lines changed

3 files changed

+47
-52
lines changed

package-lock.json

Lines changed: 44 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@typescript-eslint/eslint-plugin": "^8.0.0",
3535
"@typescript-eslint/parser": "^8.0.0",
3636
"eslint": "^8.57.0",
37-
"file-type": "^19.0.0",
37+
"file-type": "^20.0.1",
3838
"prettier": "^3.3.2",
3939
"typescript": "^5.5.3"
4040
},

tests/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void test("should error on invalid input stream", async () => {
119119

120120
const check = fileTypeStream(converter.createOutputStream({ f: "image2", vcodec: "mjpeg" })).then(
121121
stream => {
122-
assert(!stream.fileType?.mime)
122+
assert(stream.fileType?.mime == null)
123123
stream.pipe(createWriteStream(`${mediaDir}/output/cat.jpg`))
124124
},
125125
)
@@ -135,7 +135,7 @@ void test("should output empty stream on kill", async () => {
135135

136136
const check = fileTypeStream(converter.createOutputStream({ f: "image2", vcodec: "png" })).then(
137137
stream => {
138-
assert(!stream.fileType?.mime)
138+
assert(stream.fileType?.mime == null)
139139
stream.pipe(createWriteStream(`${mediaDir}/output/cat.png`))
140140
},
141141
)

0 commit comments

Comments
 (0)