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

Commit d7a69f6

Browse files
author
Amir Tocker
committed
Version 2.1.7
1 parent 20a30a6 commit d7a69f6

23 files changed

+145
-138
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.6",
3+
"version": "2.1.7",
44
"homepage": "http://cloudinary.com",
55
"authors": [
66
{

cloudinary-core-shrinkwrap.js

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

22
/**
3-
* Cloudinary's JavaScript library - Version 2.1.5
3+
* Cloudinary's JavaScript library - Version 2.1.7
44
* Copyright Cloudinary
55
* see https://github.com/cloudinary/cloudinary_js
66
*
@@ -3525,7 +3525,7 @@ var slice = [].slice,
35253525
/*
35263526
* Includes common utility methods and shims
35273527
*/
3528-
var ArrayParam, BaseUtil, Cloudinary, Condition, Configuration, HtmlTag, ImageTag, Layer, LayerParam, Param, RangeParam, RawParam, SubtitlesLayer, TextLayer, Transformation, TransformationBase, TransformationParam, Util, VideoTag, addClass, allStrings, augmentWidthOrHeight, camelCase, cloudinary, contains, convertKeys, crc32, cssExpand, cssValue, curCSS, defaults, domStyle, getAttribute, getData, getStyles, getWidthOrHeight, hasClass, isNumberLike, m, parameters, pnum, reWords, removeAttribute, rnumnonpx, setAttribute, setAttributes, setData, smartEscape, snakeCase, utf8_encode, width, withCamelCaseKeys, withSnakeCaseKeys, without;
3528+
var ArrayParam, BaseUtil, ClientHintsMetaTag, Cloudinary, Condition, Configuration, HtmlTag, ImageTag, Layer, LayerParam, Param, RangeParam, RawParam, SubtitlesLayer, TextLayer, Transformation, TransformationBase, TransformationParam, Util, VideoTag, addClass, allStrings, augmentWidthOrHeight, camelCase, cloudinary, contains, convertKeys, crc32, cssExpand, cssValue, curCSS, defaults, domStyle, getAttribute, getData, getStyles, getWidthOrHeight, hasClass, isNumberLike, m, parameters, pnum, reWords, removeAttribute, rnumnonpx, setAttribute, setAttributes, setData, smartEscape, snakeCase, utf8_encode, width, withCamelCaseKeys, withSnakeCaseKeys, without;
35293529
allStrings = function(list) {
35303530
var item, j, len;
35313531
for (j = 0, len = list.length; j < len; j++) {
@@ -4966,7 +4966,6 @@ var slice = [].slice,
49664966

49674967
/**
49684968
* Defaults configuration.
4969-
* @const {Object} Configuration.DEFAULT_CONFIGURATION_PARAMS
49704969
*/
49714970
var DEFAULT_CONFIGURATION_PARAMS, ref;
49724971

@@ -5600,7 +5599,7 @@ var slice = [].slice,
56005599
continue;
56015600
}
56025601
attrName = /^html_/.test(key) ? key.slice(5) : key;
5603-
options[Util.camelCase(attrName)] = value;
5602+
options[attrName] = value;
56045603
}
56055604
ref1 = this.keys();
56065605
for (j = 0, len = ref1.length; j < len; j++) {
@@ -5772,7 +5771,7 @@ var slice = [].slice,
57725771
};
57735772

57745773
Transformation.prototype.delay = function(value) {
5775-
return this.param(value, "delay", "l");
5774+
return this.param(value, "delay", "dl");
57765775
};
57775776

57785777
Transformation.prototype.density = function(value) {
@@ -6468,11 +6467,43 @@ var slice = [].slice,
64686467

64696468
return VideoTag;
64706469

6470+
})(HtmlTag);
6471+
6472+
/**
6473+
* Image Tag
6474+
* Depends on 'tags/htmltag', 'cloudinary'
6475+
*/
6476+
ClientHintsMetaTag = (function(superClass) {
6477+
extend(ClientHintsMetaTag, superClass);
6478+
6479+
6480+
/**
6481+
* Creates an HTML (DOM) Meta tag that enables client-hints.
6482+
* @constructor ClientHintsMetaTag
6483+
* @extends HtmlTag
6484+
*/
6485+
6486+
function ClientHintsMetaTag(options) {
6487+
ClientHintsMetaTag.__super__.constructor.call(this, 'meta', void 0, Util.assign({
6488+
"http-equiv": "Accept-CH",
6489+
content: "DPR, Viewport-Width, Width"
6490+
}, options));
6491+
}
6492+
6493+
6494+
/** @override */
6495+
6496+
ClientHintsMetaTag.prototype.closeTag = function() {
6497+
return "";
6498+
};
6499+
6500+
return ClientHintsMetaTag;
6501+
64716502
})(HtmlTag);
64726503
Cloudinary = (function() {
64736504
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;
64746505

6475-
VERSION = "2.1.5";
6506+
VERSION = "2.1.7";
64766507

64776508
CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
64786509

@@ -6661,7 +6692,7 @@ var slice = [].slice,
66616692
*/
66626693

66636694
Cloudinary.prototype.url = function(publicId, options) {
6664-
var prefix, ref, resourceTypeAndType, transformation, transformationString, url, version;
6695+
var error, error1, prefix, ref, resourceTypeAndType, transformation, transformationString, url, version;
66656696
if (options == null) {
66666697
options = {};
66676698
}
@@ -6694,7 +6725,12 @@ var slice = [].slice,
66946725
publicId = encodeURIComponent(publicId).replace(/%3A/g, ':').replace(/%2F/g, '/');
66956726
}
66966727
} else {
6697-
publicId = encodeURIComponent(decodeURIComponent(publicId)).replace(/%3A/g, ':').replace(/%2F/g, '/');
6728+
try {
6729+
publicId = decodeURIComponent(publicId);
6730+
} catch (error1) {
6731+
error = error1;
6732+
}
6733+
publicId = encodeURIComponent(publicId).replace(/%3A/g, ':').replace(/%2F/g, '/');
66986734
if (options.url_suffix) {
66996735
if (options.url_suffix.match(/[\.\/]/)) {
67006736
throw 'url_suffix should not include . or /';
@@ -7302,11 +7338,12 @@ var slice = [].slice,
73027338
HtmlTag: HtmlTag,
73037339
ImageTag: ImageTag,
73047340
VideoTag: VideoTag,
7341+
ClientHintsMetaTag: ClientHintsMetaTag,
73057342
Layer: Layer,
73067343
TextLayer: TextLayer,
73077344
SubtitlesLayer: SubtitlesLayer,
73087345
Cloudinary: Cloudinary,
7309-
VERSION: "2.1.5"
7346+
VERSION: "2.1.7"
73107347
};
73117348
return cloudinary;
73127349
});

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: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/**
3-
* Cloudinary's JavaScript library - Version 2.1.5
3+
* Cloudinary's JavaScript library - Version 2.1.7
44
* Copyright Cloudinary
55
* see https://github.com/cloudinary/cloudinary_js
66
*
@@ -30,7 +30,7 @@ var slice = [].slice,
3030
/*
3131
* Includes common utility methods and shims
3232
*/
33-
var ArrayParam, BaseUtil, Cloudinary, Condition, Configuration, HtmlTag, ImageTag, Layer, LayerParam, Param, RangeParam, RawParam, SubtitlesLayer, TextLayer, Transformation, TransformationBase, TransformationParam, Util, VideoTag, addClass, allStrings, augmentWidthOrHeight, camelCase, cloudinary, contains, convertKeys, crc32, cssExpand, cssValue, curCSS, defaults, domStyle, getAttribute, getData, getStyles, getWidthOrHeight, hasClass, isNumberLike, m, parameters, pnum, reWords, removeAttribute, rnumnonpx, setAttribute, setAttributes, setData, smartEscape, snakeCase, utf8_encode, width, withCamelCaseKeys, withSnakeCaseKeys, without;
33+
var ArrayParam, BaseUtil, ClientHintsMetaTag, Cloudinary, Condition, Configuration, HtmlTag, ImageTag, Layer, LayerParam, Param, RangeParam, RawParam, SubtitlesLayer, TextLayer, Transformation, TransformationBase, TransformationParam, Util, VideoTag, addClass, allStrings, augmentWidthOrHeight, camelCase, cloudinary, contains, convertKeys, crc32, cssExpand, cssValue, curCSS, defaults, domStyle, getAttribute, getData, getStyles, getWidthOrHeight, hasClass, isNumberLike, m, parameters, pnum, reWords, removeAttribute, rnumnonpx, setAttribute, setAttributes, setData, smartEscape, snakeCase, utf8_encode, width, withCamelCaseKeys, withSnakeCaseKeys, without;
3434
allStrings = function(list) {
3535
var item, j, len;
3636
for (j = 0, len = list.length; j < len; j++) {
@@ -1471,7 +1471,6 @@ var slice = [].slice,
14711471

14721472
/**
14731473
* Defaults configuration.
1474-
* @const {Object} Configuration.DEFAULT_CONFIGURATION_PARAMS
14751474
*/
14761475
var DEFAULT_CONFIGURATION_PARAMS, ref;
14771476

@@ -2105,7 +2104,7 @@ var slice = [].slice,
21052104
continue;
21062105
}
21072106
attrName = /^html_/.test(key) ? key.slice(5) : key;
2108-
options[Util.camelCase(attrName)] = value;
2107+
options[attrName] = value;
21092108
}
21102109
ref1 = this.keys();
21112110
for (j = 0, len = ref1.length; j < len; j++) {
@@ -2277,7 +2276,7 @@ var slice = [].slice,
22772276
};
22782277

22792278
Transformation.prototype.delay = function(value) {
2280-
return this.param(value, "delay", "l");
2279+
return this.param(value, "delay", "dl");
22812280
};
22822281

22832282
Transformation.prototype.density = function(value) {
@@ -2973,11 +2972,43 @@ var slice = [].slice,
29732972

29742973
return VideoTag;
29752974

2975+
})(HtmlTag);
2976+
2977+
/**
2978+
* Image Tag
2979+
* Depends on 'tags/htmltag', 'cloudinary'
2980+
*/
2981+
ClientHintsMetaTag = (function(superClass) {
2982+
extend(ClientHintsMetaTag, superClass);
2983+
2984+
2985+
/**
2986+
* Creates an HTML (DOM) Meta tag that enables client-hints.
2987+
* @constructor ClientHintsMetaTag
2988+
* @extends HtmlTag
2989+
*/
2990+
2991+
function ClientHintsMetaTag(options) {
2992+
ClientHintsMetaTag.__super__.constructor.call(this, 'meta', void 0, Util.assign({
2993+
"http-equiv": "Accept-CH",
2994+
content: "DPR, Viewport-Width, Width"
2995+
}, options));
2996+
}
2997+
2998+
2999+
/** @override */
3000+
3001+
ClientHintsMetaTag.prototype.closeTag = function() {
3002+
return "";
3003+
};
3004+
3005+
return ClientHintsMetaTag;
3006+
29763007
})(HtmlTag);
29773008
Cloudinary = (function() {
29783009
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;
29793010

2980-
VERSION = "2.1.5";
3011+
VERSION = "2.1.7";
29813012

29823013
CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
29833014

@@ -3166,7 +3197,7 @@ var slice = [].slice,
31663197
*/
31673198

31683199
Cloudinary.prototype.url = function(publicId, options) {
3169-
var prefix, ref, resourceTypeAndType, transformation, transformationString, url, version;
3200+
var error, error1, prefix, ref, resourceTypeAndType, transformation, transformationString, url, version;
31703201
if (options == null) {
31713202
options = {};
31723203
}
@@ -3199,7 +3230,12 @@ var slice = [].slice,
31993230
publicId = encodeURIComponent(publicId).replace(/%3A/g, ':').replace(/%2F/g, '/');
32003231
}
32013232
} else {
3202-
publicId = encodeURIComponent(decodeURIComponent(publicId)).replace(/%3A/g, ':').replace(/%2F/g, '/');
3233+
try {
3234+
publicId = decodeURIComponent(publicId);
3235+
} catch (error1) {
3236+
error = error1;
3237+
}
3238+
publicId = encodeURIComponent(publicId).replace(/%3A/g, ':').replace(/%2F/g, '/');
32033239
if (options.url_suffix) {
32043240
if (options.url_suffix.match(/[\.\/]/)) {
32053241
throw 'url_suffix should not include . or /';
@@ -3807,11 +3843,12 @@ var slice = [].slice,
38073843
HtmlTag: HtmlTag,
38083844
ImageTag: ImageTag,
38093845
VideoTag: VideoTag,
3846+
ClientHintsMetaTag: ClientHintsMetaTag,
38103847
Layer: Layer,
38113848
TextLayer: TextLayer,
38123849
SubtitlesLayer: SubtitlesLayer,
38133850
Cloudinary: Cloudinary,
3814-
VERSION: "2.1.5"
3851+
VERSION: "2.1.7"
38153852
};
38163853
return cloudinary;
38173854
});

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.

docs/Cloudinary.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<li class="dropdown">
2929
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
3030
<ul class="dropdown-menu ">
31-
<li><a href="Cloudinary.html">Cloudinary</a></li><li><a href="Condition.html">Condition</a></li><li><a href="Configuration.html">Configuration</a></li><li><a href="HtmlTag.html">HtmlTag</a></li><li><a href="ImageTag.html">ImageTag</a></li><li><a href="Layer.html">Layer</a></li><li><a href="SubtitlesLayer.html">SubtitlesLayer</a></li><li><a href="TextLayer.html">TextLayer</a></li><li><a href="Transformation.html">Transformation</a></li><li><a href="TransformationBase.html">TransformationBase</a></li><li><a href="Util.html">Util</a></li><li><a href="VideoTag.html">VideoTag</a></li>
31+
<li><a href="ClientHintsMetaTag.html">ClientHintsMetaTag</a></li><li><a href="Cloudinary.html">Cloudinary</a></li><li><a href="Condition.html">Condition</a></li><li><a href="Configuration.html">Configuration</a></li><li><a href="HtmlTag.html">HtmlTag</a></li><li><a href="ImageTag.html">ImageTag</a></li><li><a href="Layer.html">Layer</a></li><li><a href="SubtitlesLayer.html">SubtitlesLayer</a></li><li><a href="TextLayer.html">TextLayer</a></li><li><a href="Transformation.html">Transformation</a></li><li><a href="TransformationBase.html">TransformationBase</a></li><li><a href="Util.html">Util</a></li><li><a href="VideoTag.html">VideoTag</a></li>
3232
</ul>
3333
</li>
3434

@@ -4831,7 +4831,7 @@ <h5>Returns:
48314831

48324832
<span class="jsdoc-message">
48334833
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
4834-
on Wed Oct 26th 2016 using the <a
4834+
on Sun Dec 4th 2016 using the <a
48354835
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
48364836
</span>
48374837
</footer>

docs/Condition.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<li class="dropdown">
2929
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
3030
<ul class="dropdown-menu ">
31-
<li><a href="Cloudinary.html">Cloudinary</a></li><li><a href="Condition.html">Condition</a></li><li><a href="Configuration.html">Configuration</a></li><li><a href="HtmlTag.html">HtmlTag</a></li><li><a href="ImageTag.html">ImageTag</a></li><li><a href="Layer.html">Layer</a></li><li><a href="SubtitlesLayer.html">SubtitlesLayer</a></li><li><a href="TextLayer.html">TextLayer</a></li><li><a href="Transformation.html">Transformation</a></li><li><a href="TransformationBase.html">TransformationBase</a></li><li><a href="Util.html">Util</a></li><li><a href="VideoTag.html">VideoTag</a></li>
31+
<li><a href="ClientHintsMetaTag.html">ClientHintsMetaTag</a></li><li><a href="Cloudinary.html">Cloudinary</a></li><li><a href="Condition.html">Condition</a></li><li><a href="Configuration.html">Configuration</a></li><li><a href="HtmlTag.html">HtmlTag</a></li><li><a href="ImageTag.html">ImageTag</a></li><li><a href="Layer.html">Layer</a></li><li><a href="SubtitlesLayer.html">SubtitlesLayer</a></li><li><a href="TextLayer.html">TextLayer</a></li><li><a href="Transformation.html">Transformation</a></li><li><a href="TransformationBase.html">TransformationBase</a></li><li><a href="Util.html">Util</a></li><li><a href="VideoTag.html">VideoTag</a></li>
3232
</ul>
3333
</li>
3434

@@ -1573,7 +1573,7 @@ <h5>Returns:
15731573

15741574
<span class="jsdoc-message">
15751575
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
1576-
on Wed Oct 26th 2016 using the <a
1576+
on Sun Dec 4th 2016 using the <a
15771577
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
15781578
</span>
15791579
</footer>

docs/Configuration.html

Lines changed: 2 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<li class="dropdown">
2929
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
3030
<ul class="dropdown-menu ">
31-
<li><a href="Cloudinary.html">Cloudinary</a></li><li><a href="Condition.html">Condition</a></li><li><a href="Configuration.html">Configuration</a></li><li><a href="HtmlTag.html">HtmlTag</a></li><li><a href="ImageTag.html">ImageTag</a></li><li><a href="Layer.html">Layer</a></li><li><a href="SubtitlesLayer.html">SubtitlesLayer</a></li><li><a href="TextLayer.html">TextLayer</a></li><li><a href="Transformation.html">Transformation</a></li><li><a href="TransformationBase.html">TransformationBase</a></li><li><a href="Util.html">Util</a></li><li><a href="VideoTag.html">VideoTag</a></li>
31+
<li><a href="ClientHintsMetaTag.html">ClientHintsMetaTag</a></li><li><a href="Cloudinary.html">Cloudinary</a></li><li><a href="Condition.html">Condition</a></li><li><a href="Configuration.html">Configuration</a></li><li><a href="HtmlTag.html">HtmlTag</a></li><li><a href="ImageTag.html">ImageTag</a></li><li><a href="Layer.html">Layer</a></li><li><a href="SubtitlesLayer.html">SubtitlesLayer</a></li><li><a href="TextLayer.html">TextLayer</a></li><li><a href="Transformation.html">Transformation</a></li><li><a href="TransformationBase.html">TransformationBase</a></li><li><a href="Util.html">Util</a></li><li><a href="VideoTag.html">VideoTag</a></li>
3232
</ul>
3333
</li>
3434

@@ -212,81 +212,6 @@ <h5>Parameters:</h5>
212212

213213

214214

215-
<h3 class="subsection-title">Members</h3>
216-
217-
<dl>
218-
219-
<hr>
220-
<dt class="name" id=".DEFAULT_CONFIGURATION_PARAMS">
221-
<h4><span class="type-signature">&lt;static, constant> </span>DEFAULT_CONFIGURATION_PARAMS<span class="type-signature"> :Object</span></h4>
222-
223-
224-
</dt>
225-
<dd>
226-
227-
<div class="description">
228-
<p>Defaults configuration.</p>
229-
</div>
230-
231-
232-
233-
<h5>Type:</h5>
234-
<ul>
235-
<li>
236-
237-
<span class="param-type">Object</span>
238-
239-
240-
241-
</li>
242-
</ul>
243-
244-
245-
246-
<dl class="details">
247-
248-
249-
250-
251-
252-
253-
254-
255-
256-
257-
258-
259-
260-
261-
262-
263-
264-
265-
266-
267-
268-
269-
270-
271-
272-
273-
274-
275-
276-
277-
278-
279-
280-
281-
282-
</dl>
283-
284-
285-
286-
</dd>
287-
288-
</dl>
289-
290215

291216

292217
<h3 class="subsection-title">Methods</h3>
@@ -1269,7 +1194,7 @@ <h5>Returns:
12691194

12701195
<span class="jsdoc-message">
12711196
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
1272-
on Wed Oct 26th 2016 using the <a
1197+
on Sun Dec 4th 2016 using the <a
12731198
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
12741199
</span>
12751200
</footer>

0 commit comments

Comments
 (0)