Socket
Socket
Sign inDemoInstall

cloudinary-microurl

Package Overview
Dependencies
0
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.4.0

LICENSE

3

cloudinaryUrl.js

@@ -32,2 +32,4 @@ const TYPES = {

const version = options.version && `v${options.version}`;
const url = [

@@ -39,2 +41,3 @@ `${scheme}://res.cloudinary.com`,

urlParams,
version,
id

@@ -41,0 +44,0 @@ ]

2

dist/cloudinaryUrl.js

@@ -1,2 +0,2 @@

var e={fetch_format:"f",crop:"c",effect:"e",flags:"fl",gravity:"g",height:"h",radius:"r",quality:"q",width:"w",dpr:"dpr"};module.exports=function(o,r){if(void 0===r&&(r={}),!r.cloud_name)throw Error("options.cloud_name required");var t=r.secure?"https":"http",i=r.source||"upload",n=Object.keys(r).map(function(o){var t=e[o];if(t)return t+"_"+r[o]}).filter(Boolean).join(",");return[t+"://res.cloudinary.com",encodeURIComponent(r.cloud_name),"image",i,n,o].filter(Boolean).join("/")};
var e={fetch_format:"f",crop:"c",effect:"e",flags:"fl",gravity:"g",height:"h",radius:"r",quality:"q",width:"w",dpr:"dpr"};module.exports=function(o,r){if(void 0===r&&(r={}),!r.cloud_name)throw Error("options.cloud_name required");var t=r.secure?"https":"http",i=r.source||"upload",n=Object.keys(r).map(function(o){var t=e[o];if(t)return t+"_"+r[o]}).filter(Boolean).join(","),a=r.version&&"v"+r.version;return[t+"://res.cloudinary.com",encodeURIComponent(r.cloud_name),"image",i,n,a,o].filter(Boolean).join("/")};
//# sourceMappingURL=cloudinaryUrl.js.map

@@ -1,2 +0,2 @@

var e={fetch_format:"f",crop:"c",effect:"e",flags:"fl",gravity:"g",height:"h",radius:"r",quality:"q",width:"w",dpr:"dpr"};module.exports=function(o,r){if(void 0===r&&(r={}),!r.cloud_name)throw Error("options.cloud_name required");var t=r.secure?"https":"http",i=r.source||"upload",n=Object.keys(r).map(function(o){var t=e[o];if(t)return t+"_"+r[o]}).filter(Boolean).join(",");return[t+"://res.cloudinary.com",encodeURIComponent(r.cloud_name),"image",i,n,o].filter(Boolean).join("/")};
var e={fetch_format:"f",crop:"c",effect:"e",flags:"fl",gravity:"g",height:"h",radius:"r",quality:"q",width:"w",dpr:"dpr"};module.exports=function(o,r){if(void 0===r&&(r={}),!r.cloud_name)throw Error("options.cloud_name required");var t=r.secure?"https":"http",i=r.source||"upload",n=Object.keys(r).map(function(o){var t=e[o];if(t)return t+"_"+r[o]}).filter(Boolean).join(","),a=r.version&&"v"+r.version;return[t+"://res.cloudinary.com",encodeURIComponent(r.cloud_name),"image",i,n,a,o].filter(Boolean).join("/")};
//# sourceMappingURL=cloudinaryUrl.m.js.map

@@ -1,2 +0,2 @@

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o():"function"==typeof define&&define.amd?define(o):o()}(0,function(){var e={fetch_format:"f",crop:"c",effect:"e",flags:"fl",gravity:"g",height:"h",radius:"r",quality:"q",width:"w",dpr:"dpr"};module.exports=function(o,t){if(void 0===t&&(t={}),!t.cloud_name)throw Error("options.cloud_name required");var n=t.secure?"https":"http",r=t.source||"upload",i=Object.keys(t).map(function(o){var n=e[o];if(n)return n+"_"+t[o]}).filter(Boolean).join(",");return[n+"://res.cloudinary.com",encodeURIComponent(t.cloud_name),"image",r,i,o].filter(Boolean).join("/")}});
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o():"function"==typeof define&&define.amd?define(o):o()}(0,function(){var e={fetch_format:"f",crop:"c",effect:"e",flags:"fl",gravity:"g",height:"h",radius:"r",quality:"q",width:"w",dpr:"dpr"};module.exports=function(o,n){if(void 0===n&&(n={}),!n.cloud_name)throw Error("options.cloud_name required");var r=n.secure?"https":"http",t=n.source||"upload",i=Object.keys(n).map(function(o){var r=e[o];if(r)return r+"_"+n[o]}).filter(Boolean).join(","),f=n.version&&"v"+n.version;return[r+"://res.cloudinary.com",encodeURIComponent(n.cloud_name),"image",t,i,f,o].filter(Boolean).join("/")}});
//# sourceMappingURL=cloudinaryUrl.umd.js.map
{
"name": "cloudinary-microurl",
"version": "1.3.1",
"version": "1.4.0",
"description": "A tiny library to generate cloudinary URLs from options objects",

@@ -5,0 +5,0 @@ "main": "dist/cloudinaryUrl.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc