Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 5, 2024
1 parent fe2f2f9 commit 066350f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import fs from 'node:fs';
import {readChunk} from 'read-chunk';
import {indexOf} from 'uint8array-extras';
import {includes} from 'uint8array-extras';

// https://en.wikipedia.org/wiki/JPEG
// SOF2 [0xFF, 0xC2] = Start Of Frame (Progressive DCT)
const SOF2 = new Uint8Array([0xFF, 0xC2]);

const fromBuffer = buffer => indexOf(buffer, SOF2) !== -1;
const fromBuffer = buffer => includes(buffer, SOF2);

const isProgressive = {};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
],
"dependencies": {
"read-chunk": "^5.0.0",
"uint8array-extras": "^1.2.0"
"uint8array-extras": "^1.3.0"
},
"devDependencies": {
"ava": "^6.1.3",
Expand Down

0 comments on commit 066350f

Please sign in to comment.