Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/utils / lib / getLinkWithNewParams.js
Size: Mime:
export default (function (link, imageParams) {
  var separator = link !== null && link !== void 0 && link.includes('?') ? '&' : '?';
  var params = Object.keys(imageParams).filter(function (key) {
    return imageParams[key] !== 'auto';
  }).filter(function (key) {
    return imageParams[key];
  }).map(function (key) {
    return "".concat(key, "=").concat(imageParams[key]);
  }).join('&');
  return Object.keys(imageParams).some(function (key) {
    return imageParams[key] && imageParams[key] !== 'auto';
  }) ? "".concat(link).concat(separator).concat(params) : link;
});