|
1 | 1 | /* |
2 | | - * Cloudinary's JavaScript library - Version 2.0.3 |
| 2 | + * Cloudinary's JavaScript library - Version 2.0.4 |
3 | 3 | * Copyright Cloudinary |
4 | 4 | * see https://github.com/cloudinary/cloudinary_js |
5 | 5 | */ |
|
2216 | 2216 | return Cloudinary = (function() { |
2217 | 2217 | 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, parentWidth; |
2218 | 2218 |
|
2219 | | - VERSION = "2.0.3"; |
| 2219 | + VERSION = "2.0.4"; |
2220 | 2220 |
|
2221 | 2221 | CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net"; |
2222 | 2222 |
|
|
2279 | 2279 | this.devicePixelRatioCache = {}; |
2280 | 2280 | this.responsiveConfig = {}; |
2281 | 2281 | this.responsiveResizeInitialized = false; |
2282 | | - configuration = new cloudinary.Configuration(options); |
| 2282 | + configuration = new Configuration(options); |
2283 | 2283 | this.config = function(newConfig, newValue) { |
2284 | 2284 | return configuration.config(newConfig, newValue); |
2285 | 2285 | }; |
|
2795 | 2795 | }; |
2796 | 2796 |
|
2797 | 2797 | cloudinaryUrlPrefix = function(publicId, options) { |
2798 | | - var cdnPart, host, path, protocol, ref, ref1, subdomain; |
| 2798 | + var cdnPart, host, path, protocol, ref, subdomain; |
2799 | 2799 | if (((ref = options.cloud_name) != null ? ref.indexOf("/") : void 0) === 0) { |
2800 | 2800 | return '/res' + options.cloud_name; |
2801 | 2801 | } |
|
2806 | 2806 | path = "/" + options.cloud_name; |
2807 | 2807 | if (options.protocol) { |
2808 | 2808 | protocol = options.protocol + '//'; |
2809 | | - } else if ((typeof window !== "undefined" && window !== null ? (ref1 = window.location) != null ? ref1.protocol : void 0 : void 0) === 'file:') { |
2810 | | - protocol = 'file://'; |
2811 | 2809 | } |
2812 | 2810 | if (options.private_cdn) { |
2813 | 2811 | cdnPart = options.cloud_name + "-"; |
|
3055 | 3053 | (function() { |
3056 | 3054 | (function(root, factory) { |
3057 | 3055 | if ((typeof define === 'function') && define.amd) { |
3058 | | - return define('cloudinary-core-full',['utf8_encode', 'crc32', 'util', 'transformation', 'configuration', 'tags/htmltag', 'tags/imagetag', 'tags/videotag', 'cloudinary'], factory); |
| 3056 | + return define(['utf8_encode', 'crc32', 'util', 'transformation', 'configuration', 'tags/htmltag', 'tags/imagetag', 'tags/videotag', 'cloudinary'], factory); |
3059 | 3057 | } else if (typeof exports === 'object') { |
3060 | 3058 | return module.exports = factory(require('utf8_encode'), require('crc32'), require('util'), require('transformation'), require('configuration'), require('tags/htmltag'), require('tags/imagetag'), require('tags/videotag'), require('cloudinary')); |
3061 | 3059 | } else { |
|
0 commit comments