Update cloudinary==1.40.0

This commit is contained in:
JonnyWong16 2024-05-09 22:31:06 -07:00
parent 5e90f3bb31
commit 96c20ad893
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 7 additions and 5 deletions

View file

@ -38,7 +38,7 @@ CL_BLANK = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAA
URI_SCHEME = "cloudinary"
API_VERSION = "v1_1"
VERSION = "1.39.1"
VERSION = "1.40.0"
_USER_PLATFORM_DETAILS = "; ".join((platform(), "Python {}".format(python_version())))

View file

@ -565,7 +565,9 @@ def delete_folder(path, **options):
:rtype: Response
"""
return call_api("delete", ["folders", path], {}, **options)
params = only(options, "skip_backup")
return call_api("delete", ["folders", path], params, **options)
def restore(public_ids, **options):

View file

@ -422,7 +422,7 @@ var slice = [].slice,
* @returns {boolean} true if item is empty
*/
isEmpty = function(item) {
return (item == null) || (jQuery.isArray(item) || Util.isString(item)) && item.length === 0 || (jQuery.isPlainObject(item) && jQuery.isEmptyObject(item));
return (item == null) || (Array.isArray(item) || Util.isString(item)) && item.length === 0 || (jQuery.isPlainObject(item) && jQuery.isEmptyObject(item));
};
/**
@ -565,7 +565,7 @@ var slice = [].slice,
setData: setData,
width: width,
isString: isString,
isArray: jQuery.isArray,
isArray: Array.isArray,
isEmpty: isEmpty,
/**
@ -4728,7 +4728,7 @@ var slice = [].slice,
return k + '=' + v;
}).join('|');
} else if (Util.isArray(value)) {
if (value.length > 0 && jQuery.isArray(value[0])) {
if (value.length > 0 && Array.isArray(value[0])) {
upload_params[key] = jQuery.map(value, function(array_value) {
return array_value.join(',');
}).join('|');