@adminforth/upload 1.4.2 → 1.4.3

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.
package/dist/index.js CHANGED
@@ -469,6 +469,7 @@ getBucketLifecycleConfiguration on bucket ${this.options.s3Bucket} in region ${t
469
469
  prompt,
470
470
  inputFiles: attachmentFiles,
471
471
  n: 1,
472
+ size: this.options.generation.outputSize,
472
473
  });
473
474
  if (resp.error) {
474
475
  console.error('Error generating image', resp.error);
package/index.ts CHANGED
@@ -531,6 +531,7 @@ getBucketLifecycleConfiguration on bucket ${this.options.s3Bucket} in region ${t
531
531
  prompt,
532
532
  inputFiles: attachmentFiles,
533
533
  n: 1,
534
+ size: this.options.generation.outputSize,
534
535
  }
535
536
  )
536
537
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -118,6 +118,10 @@ export type PluginOptions = {
118
118
  generation?: {
119
119
  adapter: ImageGenerationAdapter,
120
120
 
121
+ /**
122
+ * The size of the generated image.
123
+ */
124
+ outputSize?: string,
121
125
 
122
126
  /**
123
127
  * Fields for conetext which will be used to generate the image.