Skip to content

Commit

Permalink
Update cloudinary==1.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 committed May 10, 2024
1 parent 5e90f3b commit 96c20ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/cloudinary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
URI_SCHEME = "cloudinary"
API_VERSION = "v1_1"

VERSION = "1.39.1"
VERSION = "1.40.0"

_USER_PLATFORM_DETAILS = "; ".join((platform(), "Python {}".format(python_version())))

Expand Down
4 changes: 3 additions & 1 deletion lib/cloudinary/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions lib/cloudinary/static/cloudinary/js/jquery.cloudinary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};

/**
Expand Down Expand Up @@ -565,7 +565,7 @@ var slice = [].slice,
setData: setData,
width: width,
isString: isString,
isArray: jQuery.isArray,
isArray: Array.isArray,
isEmpty: isEmpty,

/**
Expand Down Expand Up @@ -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('|');
Expand Down

0 comments on commit 96c20ad

Please sign in to comment.