cloudinary
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -0,2 +1,9 @@ | ||
1.4.1 / 2016-06-22 | ||
================== | ||
Other changes | ||
------------- | ||
* Fix #105 #106 - url generation broken width numeric width parameter | ||
1.4.0 / 2016-06-22 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -24,3 +24,3 @@ // Generated by CoffeeScript 1.10.0 | ||
exports.VERSION = "1.4.0"; | ||
exports.VERSION = "1.4.1"; | ||
@@ -342,3 +342,3 @@ exports.USER_AGENT = "CloudinaryNodeJS/" + exports.VERSION; | ||
no_html_sizes = has_layer || utils.present(angle) || crop === "fit" || crop === "limit" || responsive_width; | ||
if (width && (width.startsWith("auto") || no_html_sizes || parseFloat(width) < 1)) { | ||
if (width && (width.toString().indexOf("auto") === 0 || no_html_sizes || parseFloat(width) < 1)) { | ||
delete options["width"]; | ||
@@ -464,3 +464,3 @@ } | ||
} | ||
if ((width != null ? width.startsWith("auto") : void 0) || responsive_width) { | ||
if ((width != null ? width.toString().indexOf("auto") : void 0) === 0 || responsive_width) { | ||
options.responsive = true; | ||
@@ -467,0 +467,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Cloudinary NPM for node.js integration", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"homepage": "http://cloudinary.com", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
3
3
175005
23
2582