@ryuu-reinzz/haruka-lib 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import web from 'node-webpmux';
2
1
  import { TextEncoder } from 'util';
3
2
  import RawMetadata from './RawMetadata.js';
4
- const WebP = web;
3
+ import WebPMux from 'node-webpmux';
4
+ const { Image } = WebPMux;
5
5
  export default class Exif {
6
6
  constructor(options) {
7
7
  this.exif = null;
@@ -20,10 +20,10 @@ export default class Exif {
20
20
  this.add = async (image) => {
21
21
  const exif = this.exif || this.build();
22
22
  image =
23
- image instanceof WebP
23
+ image instanceof Image
24
24
  ? image
25
25
  : await (async () => {
26
- const img = new WebP();
26
+ const img = new Image();
27
27
  await img.load(image);
28
28
  return img;
29
29
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuu-reinzz/haruka-lib",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Library extra for bot WhatsApp",
5
5
  "main": "main/index.js",
6
6
  "type": "module",