From 62753c4868847a92d30853077b0ce606047ff59a Mon Sep 17 00:00:00 2001 From: Eitan Peer Date: Sun, 30 Oct 2016 11:49:40 +0200 Subject: [PATCH] Support multiple eager transformations with explicit api --- lib/utils.js | 29 +++-------------------------- lib/utils.js.map | 2 +- src/utils.coffee | 14 ++------------ test/utils_spec.coffee | 18 ++++++++++++++++++ 4 files changed, 24 insertions(+), 39 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 3e3c4fb0..f52057e1 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript 1.10.0 (function() { - var CLOUDINARY_JS_CONFIG_PARAMS, CONDITIONAL_OPERATORS, CONDITIONAL_PARAMETERS, DEFAULT_RESPONSIVE_WIDTH_TRANSFORMATION, LAYER_KEYWORD_PARAMS, _, build_custom_headers, build_eager, config, crc32, crypto, error, finalize_resource_type, finalize_source, hashToQuery, join_pair, norm_range_value, number_pattern, offset_any_pattern, offset_any_pattern_re, process_if, process_layer, process_video_params, querystring, smart_escape, split_range, textStyle, unsigned_url_prefix, utf8_encode, utils, v1_adapter, v1_result_adapter, + var CLOUDINARY_JS_CONFIG_PARAMS, CONDITIONAL_OPERATORS, CONDITIONAL_PARAMETERS, DEFAULT_RESPONSIVE_WIDTH_TRANSFORMATION, LAYER_KEYWORD_PARAMS, _, build_custom_headers, config, crc32, crypto, error, finalize_resource_type, finalize_source, hashToQuery, join_pair, norm_range_value, number_pattern, offset_any_pattern, offset_any_pattern_re, process_if, process_layer, process_video_params, querystring, smart_escape, split_range, textStyle, unsigned_url_prefix, utf8_encode, utils, v1_adapter, v1_result_adapter, slice = [].slice; _ = require("lodash"); @@ -1169,7 +1169,7 @@ tags: options.tags && exports.build_array(options.tags), public_ids: options.public_ids && exports.build_array(options.public_ids), prefixes: options.prefixes && exports.build_array(options.prefixes), - transformations: build_eager(options.transformations) + transformations: utils.build_eager(options.transformations) }; }; @@ -1198,7 +1198,7 @@ { callback: options.callback, custom_coordinates: options.custom_coordinates && utils.encode_double_array(options.custom_coordinates), - eager: build_eager(options.eager), + eager: utils.build_eager(options.eager), eager_async: utils.as_safe_bool(options.eager_async), eager_notification_url: options.eager_notification_url, face_coordinates: options.face_coordinates && utils.encode_double_array(options.face_coordinates), @@ -1270,29 +1270,6 @@ * @private */ - build_eager = function(eager) { - var format, ret, transformation; - if (eager == null) { - return void 0; - } - ret = ((function() { - var j, len, ref, results; - ref = Array(eager); - results = []; - for (j = 0, len = ref.length; j < len; j++) { - transformation = ref[j]; - transformation = _.clone(transformation); - if (transformation.format != null) { - format = transformation.format; - } - delete transformation.format; - results.push(_.compact([utils.generate_transformation_string(transformation), format]).join("/")); - } - return results; - })()).join("|"); - return ret; - }; - hashToQuery = function(hash) { var key, v, value; return _.compact((function() { diff --git a/lib/utils.js.map b/lib/utils.js.map index 61b73ff8..d2814b11 100644 --- a/lib/utils.js.map +++ b/lib/utils.js.map @@ -6,5 +6,5 @@ "src/utils.coffee" ], "names": [], - "mappings": ";AAAA;AAAA,MAAA,ugBAAA;IAAA;;EAAA,CAAA,GAAI,OAAA,CAAQ,QAAR;;EACJ,MAAA,GAAS,OAAA,CAAQ,UAAR;;EACT,MAAA,GAAS,OAAA,CAAQ,QAAR;;EACT,WAAA,GAAc,OAAA,CAAQ,aAAR;;EACd,KAAA,GAAQ;;EAER,OAAO,CAAC,aAAR,GAAwB;;EACxB,OAAO,CAAC,qBAAR,GAAgC;;EAChC,OAAO,CAAC,iBAAR,GAA4B;;EAC5B,OAAO,CAAC,UAAR,GAAqB,OAAO,CAAC;;AAE7B;IACE,OAAO,CAAC,OAAR,GAAkB,OAAA,CAAQ,iBAAR,CAA0B,CAAC,QAD/C;GAAA,aAAA;AAAA;;;EAKA,OAAO,CAAC,UAAR,GAAqB,mBAAA,GAAoB,OAAO,CAAC;;EAGjD,OAAO,CAAC,YAAR,GAAuB;;EACvB,OAAO,CAAC,YAAR,GAAuB,SAAA;IACrB,IAAG,CAAC,CAAC,OAAF,CAAU,KA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AA,sCAAA;;MACE,IAA2B,iBAA3B;QAAA,MAAO,CAAA,GAAA,CAAP,GAAc,IAAK,CAAA,GAAA,EAAnB;;AADF;WAEA;EAJa;;;AAMf;;;;EAIA,WAAA,GAAc,SAAC,IAAD;AACZ,QAAA;WAAA,CAAC,CAAC,OAAF;;AAAU;WAAA,WAAA;;QACR,IAAG,CAAC,CAAC,OAAF,CAAU,KAAV,CAAH;uBACE;;AAAC;iBAAA,uCAAA;;cACC,IAAA,CAAwB,GAAG,CAAC,KAAJ,CAAU,SAAV,CAAxB;gBAAA,GAAA,GAAS,GAAD,GAAK,KAAb;;4BACE,CAAC,WAAW,CAAC,MAAZ,CAAmB,EAAA,GAAG,GAAtB,CAAD,CAAA,GAA8B,GAA9B,GAAgC,CAAC,WAAW,CAAC,MAAZ,CAAmB,CAAnB,CAAD;AAFnC;;cAAD,CAGC,CAAC,IAHF,CAGO,GAHP,GADF;SAAA,MAAA;uBAMI,CAAC,WAAW,CAAC,MAAZ,CAAmB,GAAnB,CAAD,CAAA,GAAyB,GAAzB,GAA2B,CAAC,WAAW,CAAC,MAAZ,CAAmB,KAAnB,CAAD,GAN/B;;AADQ;;QAAV,CAQC,CAAC,IARF,CAAA,CAQQ,CAAC,IART,CAQc,GARd;EADY;AAv3Bd" } \ No newline at end of file diff --git a/src/utils.coffee b/src/utils.coffee index 883a8fe2..7b35e026 100644 --- a/src/utils.coffee +++ b/src/utils.coffee @@ -828,7 +828,7 @@ exports.archive_params = (options = {})-> tags: options.tags && exports.build_array(options.tags) public_ids: options.public_ids && exports.build_array(options.public_ids) prefixes: options.prefixes && exports.build_array(options.prefixes) - transformations: build_eager(options.transformations) + transformations: utils.build_eager(options.transformations) build_custom_headers = (headers)-> (for a in Array(headers) when a?.join? @@ -839,7 +839,7 @@ exports.build_explicit_api_params = (public_id, options = {})-> opt = [ callback: options.callback custom_coordinates: options.custom_coordinates && utils.encode_double_array(options.custom_coordinates) - eager: build_eager(options.eager) + eager: utils.build_eager(options.eager) eager_async: utils.as_safe_bool(options.eager_async) eager_notification_url: options.eager_notification_url face_coordinates: options.face_coordinates && utils.encode_double_array(options.face_coordinates) @@ -884,16 +884,6 @@ exports.only = (hash, keys...) -> ###* # @private ### -build_eager = (eager)-> - return undefined unless eager? - ret = (for transformation in Array(eager) - transformation = _.clone(transformation) - format = transformation.format if transformation.format? - delete transformation.format - _.compact([utils.generate_transformation_string(transformation), format]).join("/") - ).join("|") - ret - hashToQuery = (hash)-> _.compact(for key, value of hash diff --git a/test/utils_spec.coffee b/test/utils_spec.coffee index e7cb2b1b..ca53399a 100644 --- a/test/utils_spec.coffee +++ b/test/utils_spec.coffee @@ -381,6 +381,24 @@ describe "utils", -> expect(utils.build_upload_params(options)['transformation']).to.eql("c_scale,w_100") expect(Object.keys(options).length).to.eql(2) + it "build_explicit_api_params should support mutiple eager transformations with a pipe" , -> + options = { + eager: [ + {width:100, crop:"scale"}, + {height:100, crop:"fit"}, + ] + } + expect(utils.build_explicit_api_params('some_id', options)[0]['eager']).to.eql("c_scale,w_100|c_fit,h_100") + + it "archive_params should support mutiple eager transformations with a pipe" , -> + options = { + transformations: [ + {width:200, crop:"scale"}, + {height:200, crop:"fit"}, + ] + } + expect(utils.archive_params(options)['transformations']).to.eql("c_scale,w_200|c_fit,h_200") + it "build_upload_params canonize booleans" , -> options = {backup:true, use_filename:false, colors:"true", exif:"false", colors:"true", image_metadata:"false", invalidate:1, eager_async:"1"} params = utils.build_upload_params(options)