@vargai/gateway 0.1.3 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14200,6 +14200,9 @@ class VargImageModel {
14200
14200
  };
14201
14201
  if (options.aspectRatio)
14202
14202
  params.aspect_ratio = options.aspectRatio;
14203
+ if (options.files && options.files.length > 0) {
14204
+ params.files = options.files.filter((f) => f.type === "url").map((f) => ({ url: f.url }));
14205
+ }
14203
14206
  if (options.providerOptions?.varg) {
14204
14207
  params.provider_options = options.providerOptions.varg;
14205
14208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vargai/gateway",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "typescript client for varg gateway api",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",