Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Version 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Tocker committed Jul 15, 2016
1 parent d4d3649 commit 75fda04
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudinary-jquery-file-upload",
"version": "2.1.1",
"version": "2.1.2",
"homepage": "http://cloudinary.com",
"authors": [
{
Expand Down
52 changes: 26 additions & 26 deletions cloudinary-jquery-file-upload.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* Cloudinary's JavaScript library - Version 2.1.1
* Cloudinary's JavaScript library - Version 2.1.2
* Copyright Cloudinary
* see https://github.com/cloudinary/cloudinary_js
*
Expand Down Expand Up @@ -450,12 +450,12 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
* Represents a single parameter
* @class Param
* @param {string} name - The name of the parameter in snake_case
* @param {string} short - The name of the serialized form of the parameter.
* @param {string} shortName - The name of the serialized form of the parameter.
* If a value is not provided, the parameter will not be serialized.
* @param {function} [process=cloudinary.Util.identity ] - Manipulate origValue when value is called
* @ignore
*/
function Param(name, short, process) {
function Param(name, shortName, process) {
if (process == null) {
process = cloudinary.Util.identity;
}
Expand All @@ -468,9 +468,9 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal

/**
* The name of the serialized form of the parameter
* @member {string} Param#short
* @member {string} Param#shortName
*/
this.short = short;
this.shortName = shortName;

/**
* Manipulate origValue when value is called
Expand Down Expand Up @@ -503,8 +503,8 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
var val, valid;
val = this.value();
valid = cloudinary.Util.isArray(val) || cloudinary.Util.isPlainObject(val) || cloudinary.Util.isString(val) ? !cloudinary.Util.isEmpty(val) : val != null;
if ((this.short != null) && valid) {
return this.short + "_" + val;
if ((this.shortName != null) && valid) {
return this.shortName + "_" + val;
} else {
return '';
}
Expand Down Expand Up @@ -581,7 +581,7 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
/**
* A parameter that represents an array
* @param {string} name - The name of the parameter in snake_case
* @param {string} short - The name of the serialized form of the parameter
* @param {string} shortName - The name of the serialized form of the parameter
* If a value is not provided, the parameter will not be serialized.
* @param {string} [sep='.'] - The separator to use when joining the array elements together
* @param {function} [process=cloudinary.Util.identity ] - Manipulate origValue when value is called
Expand All @@ -590,17 +590,17 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
* @ignore
*/

function ArrayParam(name, short, sep, process) {
function ArrayParam(name, shortName, sep, process) {
if (sep == null) {
sep = '.';
}
this.sep = sep;
ArrayParam.__super__.constructor.call(this, name, short, process);
ArrayParam.__super__.constructor.call(this, name, shortName, process);
}

ArrayParam.prototype.serialize = function() {
var array, flat, t;
if (this.short != null) {
if (this.shortName != null) {
array = this.value();
if (cloudinary.Util.isEmpty(array)) {
return '';
Expand All @@ -619,7 +619,7 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
}
return results;
}).call(this);
return this.short + "_" + (flat.join(this.sep));
return this.shortName + "_" + (flat.join(this.sep));
}
} else {
return '';
Expand All @@ -644,23 +644,23 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
/**
* A parameter that represents a transformation
* @param {string} name - The name of the parameter in snake_case
* @param {string} [short='t'] - The name of the serialized form of the parameter
* @param {string} [shortName='t'] - The name of the serialized form of the parameter
* @param {string} [sep='.'] - The separator to use when joining the array elements together
* @param {function} [process=cloudinary.Util.identity ] - Manipulate origValue when value is called
* @class TransformationParam
* @extends Param
* @ignore
*/

function TransformationParam(name, short, sep, process) {
if (short == null) {
short = "t";
function TransformationParam(name, shortName, sep, process) {
if (shortName == null) {
shortName = "t";
}
if (sep == null) {
sep = '.';
}
this.sep = sep;
TransformationParam.__super__.constructor.call(this, name, short, process);
TransformationParam.__super__.constructor.call(this, name, shortName, process);
}

TransformationParam.prototype.serialize = function() {
Expand All @@ -670,7 +670,7 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
} else if (cloudinary.Util.allStrings(this.value())) {
joined = this.value().join(this.sep);
if (!cloudinary.Util.isEmpty(joined)) {
return this.short + "_" + joined;
return this.shortName + "_" + joined;
} else {
return '';
}
Expand All @@ -683,7 +683,7 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
t = ref[j];
if (t != null) {
if (cloudinary.Util.isString(t) && !cloudinary.Util.isEmpty(t)) {
results.push(this.short + "_" + t);
results.push(this.shortName + "_" + t);
} else if (cloudinary.Util.isFunction(t.serialize)) {
results.push(t.serialize());
} else if (cloudinary.Util.isPlainObject(t) && !cloudinary.Util.isEmpty(t)) {
Expand Down Expand Up @@ -718,19 +718,19 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
/**
* A parameter that represents a range
* @param {string} name - The name of the parameter in snake_case
* @param {string} short - The name of the serialized form of the parameter
* @param {string} shortName - The name of the serialized form of the parameter
* If a value is not provided, the parameter will not be serialized.
* @param {function} [process=norm_range_value ] - Manipulate origValue when value is called
* @class RangeParam
* @extends Param
* @ignore
*/

function RangeParam(name, short, process) {
function RangeParam(name, shortName, process) {
if (process == null) {
process = this.norm_range_value;
}
RangeParam.__super__.constructor.call(this, name, short, process);
RangeParam.__super__.constructor.call(this, name, shortName, process);
}

RangeParam.norm_range_value = function(value) {
Expand All @@ -749,11 +749,11 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
RawParam = (function(superClass) {
extend(RawParam, superClass);

function RawParam(name, short, process) {
function RawParam(name, shortName, process) {
if (process == null) {
process = cloudinary.Util.identity;
}
RawParam.__super__.constructor.call(this, name, short, process);
RawParam.__super__.constructor.call(this, name, shortName, process);
}

RawParam.prototype.serialize = function() {
Expand Down Expand Up @@ -2847,7 +2847,7 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
Cloudinary = (function() {
var AKAMAI_SHARED_CDN, CF_SHARED_CDN, DEFAULT_POSTER_OPTIONS, DEFAULT_VIDEO_SOURCE_TYPES, OLD_AKAMAI_SHARED_CDN, SHARED_CDN, VERSION, absolutize, applyBreakpoints, cdnSubdomainNumber, closestAbove, cloudinaryUrlPrefix, defaultBreakpoints, finalizeResourceType, findContainerWidth, maxWidth, updateDpr;

VERSION = "2.1.1";
VERSION = "2.1.2";

CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";

Expand Down Expand Up @@ -4063,7 +4063,7 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
TextLayer: TextLayer,
SubtitlesLayer: SubtitlesLayer,
Cloudinary: Cloudinary,
VERSION: "2.1.1",
VERSION: "2.1.2",
CloudinaryJQuery: CloudinaryJQuery
};
return cloudinary;
Expand Down
6 changes: 3 additions & 3 deletions cloudinary-jquery-file-upload.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cloudinary-jquery-file-upload.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudinary-jquery-file-upload",
"version": "2.1.1",
"version": "2.1.2",
"description": "Cloudinary Client Side JS library. Cloudinary streamlines your web application’s image manipulation needs. Cloudinary's cloud-based servers automate image uploading, resizing, cropping, optimizing, sprite generation and more. Cloudinary's jQuery File Upload plugin allows direct uploading from the browser to the cloud and dynamic cloud-based image transformations and effects.",
"main": "cloudinary-jquery-file-upload.js",
"files": ["*.js"],
Expand Down

0 comments on commit 75fda04

Please sign in to comment.