vowel 0.6.3 → 0.6.4

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.
@@ -8,12 +8,12 @@ import {createImagePath, imageSizes, imageExts } from "./../../utils.js"
8
8
 
9
9
 
10
10
  /** @type {Votive.ProcessorWrite} */
11
- async function writeImage(destination, database, config) {
12
- const { uuid, sourcePath } = destination.abstract
11
+ async function writeImage(target, settings, api, config) {
12
+ const { uuid, sourcePath } = target.abstract
13
13
 
14
14
  const defaultFormat = path.extname(sourcePath)
15
15
 
16
- const image = sharp(destination.path)
16
+ const image = sharp(target.path)
17
17
 
18
18
  const images = imageSizes.flatMap(size => {
19
19
  [...imageExts, defaultFormat].map(ext => {
@@ -21,7 +21,7 @@ async function writeImage(destination, database, config) {
21
21
  targetFilePath: sourcePath,
22
22
  size,
23
23
  ext,
24
- targetDirectory: config.destinationFolder,
24
+ targetDirectory: config.targetFolder,
25
25
  uuid
26
26
  })
27
27
 
@@ -31,7 +31,7 @@ async function writeImage(destination, database, config) {
31
31
 
32
32
  await Promise.all(images)
33
33
 
34
- const buffer = await fs.readFile(destination.path)
34
+ const buffer = await fs.readFile(target.path)
35
35
 
36
36
  return {
37
37
  data: buffer,