cloudinary
Advanced tools
Comparing version 1.4.3 to 1.4.4
1.4.3 / 2016-09-21 | ||
1.4.4 / 2016-10-27 | ||
================== | ||
New functionality | ||
----------------- | ||
* Add streaming profiles API | ||
Other changes | ||
------------- | ||
* Change email address in sample project's bower.json | ||
* Add files to `.npmignore` | ||
1.4.3 / 2016-10-27 | ||
================== | ||
1.4.2 / 2016-09-14 | ||
@@ -8,0 +20,0 @@ ================== |
@@ -528,2 +528,42 @@ // Generated by CoffeeScript 1.10.0 | ||
exports.list_streaming_profiles = function(callback, options) { | ||
if (options == null) { | ||
options = {}; | ||
} | ||
return call_api("get", "streaming_profiles", {}, callback, options); | ||
}; | ||
exports.get_streaming_profile = function(name, callback, options) { | ||
if (options == null) { | ||
options = {}; | ||
} | ||
return call_api("get", "streaming_profiles/" + name, {}, callback, options); | ||
}; | ||
exports.delete_streaming_profile = function(name, callback, options) { | ||
if (options == null) { | ||
options = {}; | ||
} | ||
return call_api("delete", "streaming_profiles/" + name, {}, callback, options); | ||
}; | ||
exports.update_streaming_profile = function(name, callback, options) { | ||
var params; | ||
if (options == null) { | ||
options = {}; | ||
} | ||
params = utils.build_streaming_profiles_param(options); | ||
return call_api("put", "streaming_profiles/" + name, params, callback, options); | ||
}; | ||
exports.create_streaming_profile = function(name, callback, options) { | ||
var params; | ||
if (options == null) { | ||
options = {}; | ||
} | ||
params = utils.build_streaming_profiles_param(options); | ||
params["name"] = name; | ||
return call_api("post", 'streaming_profiles', params, callback, options); | ||
}; | ||
exports.only = function() { | ||
@@ -530,0 +570,0 @@ var hash, i, key, keys, len, result; |
@@ -1239,3 +1239,32 @@ // Generated by CoffeeScript 1.10.0 | ||
exports.build_streaming_profiles_param = function(options) { | ||
var params; | ||
if (options == null) { | ||
options = {}; | ||
} | ||
params = utils.only(options, "display_name", "representations"); | ||
if (_.isArray(params["representations"])) { | ||
params["representations"] = JSON.stringify(params["representations"].map(function(r) { | ||
return { | ||
transformation: utils.generate_transformation_string(r.transformation) | ||
}; | ||
})); | ||
} | ||
return params; | ||
}; | ||
exports.only = function() { | ||
var hash, j, key, keys, len, result; | ||
hash = arguments[0], keys = 2 <= arguments.length ? slice.call(arguments, 1) : []; | ||
result = {}; | ||
for (j = 0, len = keys.length; j < len; j++) { | ||
key = keys[j]; | ||
if (hash[key] != null) { | ||
result[key] = hash[key]; | ||
} | ||
} | ||
return result; | ||
}; | ||
/** | ||
@@ -1242,0 +1271,0 @@ * @private |
@@ -43,2 +43,7 @@ // Generated by CoffeeScript 1.10.0 | ||
create_upload_mapping: 1, | ||
list_streaming_profiles: 0, | ||
get_streaming_profile: 1, | ||
delete_streaming_profile: 1, | ||
update_streaming_profile: 1, | ||
create_streaming_profile: 1, | ||
publish_by_ids: 1, | ||
@@ -45,0 +50,0 @@ publish_by_tag: 1, |
@@ -5,3 +5,3 @@ { | ||
"description": "Cloudinary NPM for node.js integration", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"homepage": "http://cloudinary.com", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
710594
10684