@xyo-network/image-thumbnail-plugin 2.97.0 → 2.98.0

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.
@@ -26,7 +26,6 @@ import { ImageThumbnailWitnessParams } from './Params'
26
26
 
27
27
  // setFfmpegPath(ffmpegPath)
28
28
 
29
- // eslint-disable-next-line import/no-named-as-default-member
30
29
  const gm = graphicsMagick.subClass({ imageMagick: '7+' })
31
30
 
32
31
  export interface ImageThumbnailWitnessError extends Error {
@@ -99,7 +98,6 @@ export class ImageThumbnailWitness<TParams extends ImageThumbnailWitnessParams =
99
98
  }
100
99
 
101
100
  protected override async observeHandler(payloads: UrlPayload[] = []): Promise<ImageThumbnail[]> {
102
- // eslint-disable-next-line import/no-named-as-default-member
103
101
  if (!hasbin.sync('magick')) {
104
102
  throw new Error('ImageMagick is required for this witness')
105
103
  }
@@ -265,7 +263,7 @@ export class ImageThumbnailWitness<TParams extends ImageThumbnailWitnessParams =
265
263
 
266
264
  const processVideo = async () => {
267
265
  // Gracefully handle the case where ffmpeg is not installed.
268
- // eslint-disable-next-line import/no-named-as-default-member
266
+
269
267
  if (hasbin.sync('ffmpeg')) {
270
268
  imageThumbnail.sourceHash = await ImageThumbnailWitness.binaryToSha256(sourceBuffer)
271
269
  imageThumbnail.url = await this.createThumbnailFromVideo(sourceBuffer)
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line import/no-default-export
1
2
  export { ImageThumbnailPlugin as default, ImageThumbnailPlugin } from './Plugin'
2
3
  export * from './Witness'
3
4
  export * from '@xyo-network/diviner-image-thumbnail'