Skip to content

Commit

Permalink
41 upgrade to v502 error unrecognized file extension mime type or mis…
Browse files Browse the repository at this point in the history
…match ext png mime (#44)

* add index file and change some imports

* updated the file type and pngjs versions

* fixes for logs

* version bump
  • Loading branch information
danm authored May 3, 2022
1 parent f0767c2 commit cbcb2a8
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"presets": [
["@babel/preset-env", {"targets": {"node": "current"}}],
"@babel/preset-typescript",
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-transform-modules-commonjs"
Expand Down
5 changes: 2 additions & 3 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Buffer from 'buffer';
import request from 'request';
import { assert, expect } from 'chai';
import { expect } from 'chai';
import fs from 'fs';
import { imageHash } from '../src/imageHash';
import { imageHash } from '../src/';

describe('hash images', () => {
it('should hash a local jpg', (done) => {
Expand Down
Loading

0 comments on commit cbcb2a8

Please sign in to comment.