diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61fcfca..a6669c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: test: strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest, windows-latest] node: ["18", "20", "22"] runs-on: ${{ matrix.os }} diff --git a/from.js b/from.js index ed4e5f5..325a757 100644 --- a/from.js +++ b/from.js @@ -15,6 +15,8 @@ import { Blob } from './index.js' const { stat, mkdtemp } = fs let i = 0, tempDir, registry + + /** * @param {string} path filepath on the disk * @param {string} [type] mimetype to use diff --git a/package.json b/package.json index 8e14f4f..f073185 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fetch-blob", - "version": "5.0.0", + "version": "4.1.0", "description": "Blob & File implementation in Node.js, originally from node-fetch.", "main": "index.js", "type": "module", diff --git a/test/own-misc-test.js b/test/own-misc-test.js index b1336c9..c0fb425 100644 --- a/test/own-misc-test.js +++ b/test/own-misc-test.js @@ -57,7 +57,7 @@ test(() => { const file = new File([], '', { lastModified }) assert_equals(file.lastModified, 0) } -}, 'Interpretes NaN value in lastModified option as 0') +}, 'Interprets NaN value in lastModified option as 0') test(() => { assert_equals(blobFromSync, syncBlob)