Skip to content
This repository was archived by the owner on Apr 8, 2021. It is now read-only.

Commit 9e7aaf7

Browse files
author
Amir Tocker
committed
Version 2.3.0
1 parent 97e6345 commit 9e7aaf7

12 files changed

+3511
-29
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloudinary-core",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
44
"homepage": "http://cloudinary.com",
55
"authors": [
66
{

cloudinary-core-shrinkwrap.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/**
3-
* Cloudinary's JavaScript library - Version 2.2.1
3+
* Cloudinary's JavaScript library - Version 2.3.0
44
* Copyright Cloudinary
55
* see https://github.com/cloudinary/cloudinary_js
66
*
@@ -5503,7 +5503,7 @@ var slice = [].slice,
55035503
* @return {Object} Returns a plain object representing this transformation
55045504
*/
55055505
this.toOptions || (this.toOptions = function(withChain) {
5506-
var key, list, opt, ref, tr, value;
5506+
var key, list, opt, ref, ref1, tr, value;
55075507
if (withChain == null) {
55085508
withChain = true;
55095509
}
@@ -5531,9 +5531,15 @@ var slice = [].slice,
55315531
return results;
55325532
}).call(this);
55335533
list.push(opt);
5534-
opt = {
5535-
transformation: list
5536-
};
5534+
opt = {};
5535+
ref1 = this.otherOptions;
5536+
for (key in ref1) {
5537+
value = ref1[key];
5538+
if (value !== void 0) {
5539+
opt[key] = value;
5540+
}
5541+
}
5542+
opt.transformation = list;
55375543
}
55385544
return opt;
55395545
});
@@ -5779,6 +5785,10 @@ var slice = [].slice,
57795785
return new value.constructor(value.toOptions());
57805786
}
57815787
});
5788+
if (options["if"]) {
5789+
this.set("if", options["if"]);
5790+
delete options["if"];
5791+
}
57825792
for (key in options) {
57835793
opt = options[key];
57845794
if (key.match(VAR_NAME_RE)) {
@@ -6852,7 +6862,7 @@ var slice = [].slice,
68526862
Cloudinary = (function() {
68536863
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;
68546864

6855-
VERSION = "2.2.1";
6865+
VERSION = "2.3.0";
68566866

68576867
CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
68586868

@@ -7538,7 +7548,8 @@ var slice = [].slice,
75387548
imgOptions = new Transformation(imgOptions).toHtmlAttributes();
75397549
Util.setData(node, 'src-cache', url);
75407550
node.setAttribute('width', imgOptions.width);
7541-
results.push(node.setAttribute('height', imgOptions.height));
7551+
node.setAttribute('height', imgOptions.height);
7552+
results.push(node);
75427553
}
75437554
return results;
75447555
}).call(this);
@@ -7692,7 +7703,7 @@ var slice = [].slice,
76927703
TextLayer: TextLayer,
76937704
SubtitlesLayer: SubtitlesLayer,
76947705
Cloudinary: Cloudinary,
7695-
VERSION: "2.2.1"
7706+
VERSION: "2.3.0"
76967707
};
76977708
return cloudinary;
76987709
});

cloudinary-core-shrinkwrap.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core-shrinkwrap.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core.d.ts

Lines changed: 808 additions & 0 deletions
Large diffs are not rendered by default.

cloudinary-core.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/**
3-
* Cloudinary's JavaScript library - Version 2.2.1
3+
* Cloudinary's JavaScript library - Version 2.3.0
44
* Copyright Cloudinary
55
* see https://github.com/cloudinary/cloudinary_js
66
*
@@ -2008,7 +2008,7 @@ var slice = [].slice,
20082008
* @return {Object} Returns a plain object representing this transformation
20092009
*/
20102010
this.toOptions || (this.toOptions = function(withChain) {
2011-
var key, list, opt, ref, tr, value;
2011+
var key, list, opt, ref, ref1, tr, value;
20122012
if (withChain == null) {
20132013
withChain = true;
20142014
}
@@ -2036,9 +2036,15 @@ var slice = [].slice,
20362036
return results;
20372037
}).call(this);
20382038
list.push(opt);
2039-
opt = {
2040-
transformation: list
2041-
};
2039+
opt = {};
2040+
ref1 = this.otherOptions;
2041+
for (key in ref1) {
2042+
value = ref1[key];
2043+
if (value !== void 0) {
2044+
opt[key] = value;
2045+
}
2046+
}
2047+
opt.transformation = list;
20422048
}
20432049
return opt;
20442050
});
@@ -2284,6 +2290,10 @@ var slice = [].slice,
22842290
return new value.constructor(value.toOptions());
22852291
}
22862292
});
2293+
if (options["if"]) {
2294+
this.set("if", options["if"]);
2295+
delete options["if"];
2296+
}
22872297
for (key in options) {
22882298
opt = options[key];
22892299
if (key.match(VAR_NAME_RE)) {
@@ -3357,7 +3367,7 @@ var slice = [].slice,
33573367
Cloudinary = (function() {
33583368
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;
33593369

3360-
VERSION = "2.2.1";
3370+
VERSION = "2.3.0";
33613371

33623372
CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
33633373

@@ -4043,7 +4053,8 @@ var slice = [].slice,
40434053
imgOptions = new Transformation(imgOptions).toHtmlAttributes();
40444054
Util.setData(node, 'src-cache', url);
40454055
node.setAttribute('width', imgOptions.width);
4046-
results.push(node.setAttribute('height', imgOptions.height));
4056+
node.setAttribute('height', imgOptions.height);
4057+
results.push(node);
40474058
}
40484059
return results;
40494060
}).call(this);
@@ -4197,7 +4208,7 @@ var slice = [].slice,
41974208
TextLayer: TextLayer,
41984209
SubtitlesLayer: SubtitlesLayer,
41994210
Cloudinary: Cloudinary,
4200-
VERSION: "2.2.1"
4211+
VERSION: "2.3.0"
42014212
};
42024213
return cloudinary;
42034214
});

cloudinary-core.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)