I got following error when callingCloudinary.downloadUrl method.
I can see problem is here in server.js file:
return Cloudinary.utils.private_download_url(publicId, format, ops.filter(op => op !== 'format'));
I don't know why it assumes there is filter method in ops object.
What is more it looks like it is bad rewrite of following code _.omit(ops,"format") from lepozepo original source code. filter is prototype method of Array - not Object
I got following error when calling
Cloudinary.downloadUrl
method. I can see problem is here in server.js file:return Cloudinary.utils.private_download_url(publicId, format, ops.filter(op => op !== 'format'));
I don't know why it assumes there is filter method in ops object. What is more it looks like it is bad rewrite of following code
_.omit(ops,"format")
from lepozepo original source code.filter
is prototype method of Array - not Object