elseware-nodejs 1.8.0 → 1.8.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.
package/dist/index.d.cts CHANGED
@@ -1898,6 +1898,7 @@ interface UploadOptions {
1898
1898
  folder?: string;
1899
1899
  publicId?: string;
1900
1900
  resourceType?: "image" | "video" | "raw" | "auto";
1901
+ transformation?: Record<string, any>;
1901
1902
  }
1902
1903
  declare class CloudinaryService {
1903
1904
  private rootFolder?;
package/dist/index.d.ts CHANGED
@@ -1898,6 +1898,7 @@ interface UploadOptions {
1898
1898
  folder?: string;
1899
1899
  publicId?: string;
1900
1900
  resourceType?: "image" | "video" | "raw" | "auto";
1901
+ transformation?: Record<string, any>;
1901
1902
  }
1902
1903
  declare class CloudinaryService {
1903
1904
  private rootFolder?;
package/dist/index.js CHANGED
@@ -5353,7 +5353,8 @@ var CloudinaryService = class {
5353
5353
  const result = await cloudinary.uploader.upload(filePath, {
5354
5354
  folder: folderPath,
5355
5355
  public_id: options.publicId,
5356
- resource_type: options.resourceType || "auto"
5356
+ resource_type: options.resourceType || "auto",
5357
+ transformation: options.transformation
5357
5358
  });
5358
5359
  return result.public_id;
5359
5360
  }