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

Commit 77cd074

Browse files
author
Amir Tocker
committed
Version 2.1.9
1 parent 5bdf5af commit 77cd074

24 files changed

+1644
-38
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.1.8",
3+
"version": "2.1.9",
44
"homepage": "http://cloudinary.com",
55
"authors": [
66
{

cloudinary-core-shrinkwrap.js

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

22
/**
3-
* Cloudinary's JavaScript library - Version 2.1.8
3+
* Cloudinary's JavaScript library - Version 2.1.9
44
* Copyright Cloudinary
55
* see https://github.com/cloudinary/cloudinary_js
66
*
@@ -4976,7 +4976,7 @@ var slice = [].slice,
49764976
secure: (typeof window !== "undefined" && window !== null ? (ref = window.location) != null ? ref.protocol : void 0 : void 0) === 'https:'
49774977
};
49784978

4979-
Configuration.CONFIG_PARAMS = ["api_key", "api_secret", "cdn_subdomain", "cloud_name", "cname", "private_cdn", "protocol", "resource_type", "responsive_class", "responsive_use_breakpoints", "responsive_width", "round_dpr", "secure", "secure_cdn_subdomain", "secure_distribution", "shorten", "type", "url_suffix", "use_root_path", "version"];
4979+
Configuration.CONFIG_PARAMS = ["api_key", "api_secret", "cdn_subdomain", "cloud_name", "cname", "private_cdn", "protocol", "resource_type", "responsive", "responsive_class", "responsive_use_breakpoints", "responsive_width", "round_dpr", "secure", "secure_cdn_subdomain", "secure_distribution", "shorten", "type", "url_suffix", "use_root_path", "version"];
49804980

49814981

49824982
/**
@@ -6321,10 +6321,12 @@ var slice = [].slice,
63216321
/** @override */
63226322

63236323
ImageTag.prototype.attributes = function() {
6324-
var attr;
6324+
var attr, options, srcAttribute;
63256325
attr = ImageTag.__super__.attributes.call(this) || [];
6326-
if (attr['src'] == null) {
6327-
attr['src'] = new Cloudinary(this.getOptions()).url(this.publicId);
6326+
options = this.getOptions();
6327+
srcAttribute = options.responsive && !options.client_hints ? 'data-src' : 'src';
6328+
if (attr[srcAttribute] == null) {
6329+
attr[srcAttribute] = new Cloudinary(this.getOptions()).url(this.publicId);
63286330
}
63296331
return attr;
63306332
};
@@ -6519,7 +6521,7 @@ var slice = [].slice,
65196521
Cloudinary = (function() {
65206522
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;
65216523

6522-
VERSION = "2.1.8";
6524+
VERSION = "2.1.9";
65236525

65246526
CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
65256527

@@ -7359,7 +7361,7 @@ var slice = [].slice,
73597361
TextLayer: TextLayer,
73607362
SubtitlesLayer: SubtitlesLayer,
73617363
Cloudinary: Cloudinary,
7362-
VERSION: "2.1.8"
7364+
VERSION: "2.1.9"
73637365
};
73647366
return cloudinary;
73657367
});

cloudinary-core-shrinkwrap.min.js

Lines changed: 2 additions & 2 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.js

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

22
/**
3-
* Cloudinary's JavaScript library - Version 2.1.8
3+
* Cloudinary's JavaScript library - Version 2.1.9
44
* Copyright Cloudinary
55
* see https://github.com/cloudinary/cloudinary_js
66
*
@@ -1481,7 +1481,7 @@ var slice = [].slice,
14811481
secure: (typeof window !== "undefined" && window !== null ? (ref = window.location) != null ? ref.protocol : void 0 : void 0) === 'https:'
14821482
};
14831483

1484-
Configuration.CONFIG_PARAMS = ["api_key", "api_secret", "cdn_subdomain", "cloud_name", "cname", "private_cdn", "protocol", "resource_type", "responsive_class", "responsive_use_breakpoints", "responsive_width", "round_dpr", "secure", "secure_cdn_subdomain", "secure_distribution", "shorten", "type", "url_suffix", "use_root_path", "version"];
1484+
Configuration.CONFIG_PARAMS = ["api_key", "api_secret", "cdn_subdomain", "cloud_name", "cname", "private_cdn", "protocol", "resource_type", "responsive", "responsive_class", "responsive_use_breakpoints", "responsive_width", "round_dpr", "secure", "secure_cdn_subdomain", "secure_distribution", "shorten", "type", "url_suffix", "use_root_path", "version"];
14851485

14861486

14871487
/**
@@ -2826,10 +2826,12 @@ var slice = [].slice,
28262826
/** @override */
28272827

28282828
ImageTag.prototype.attributes = function() {
2829-
var attr;
2829+
var attr, options, srcAttribute;
28302830
attr = ImageTag.__super__.attributes.call(this) || [];
2831-
if (attr['src'] == null) {
2832-
attr['src'] = new Cloudinary(this.getOptions()).url(this.publicId);
2831+
options = this.getOptions();
2832+
srcAttribute = options.responsive && !options.client_hints ? 'data-src' : 'src';
2833+
if (attr[srcAttribute] == null) {
2834+
attr[srcAttribute] = new Cloudinary(this.getOptions()).url(this.publicId);
28332835
}
28342836
return attr;
28352837
};
@@ -3024,7 +3026,7 @@ var slice = [].slice,
30243026
Cloudinary = (function() {
30253027
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;
30263028

3027-
VERSION = "2.1.8";
3029+
VERSION = "2.1.9";
30283030

30293031
CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
30303032

@@ -3864,7 +3866,7 @@ var slice = [].slice,
38643866
TextLayer: TextLayer,
38653867
SubtitlesLayer: SubtitlesLayer,
38663868
Cloudinary: Cloudinary,
3867-
VERSION: "2.1.8"
3869+
VERSION: "2.1.9"
38683870
};
38693871
return cloudinary;
38703872
});

cloudinary-core.min.js

Lines changed: 2 additions & 2 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)