@cloudinary/url-gen
Version:
Cloudinary URL-Gen SDK ========================= [](https://app.travis-ci.com/github/cloudinary/js-url-gen) ## About The Cloudinary URL-Gen SDK allows you to quickly and eas
21 lines (16 loc) • 800 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var backwards_transformationProcessing_processCustomFunction = require('./processCustomFunction.cjs');
require('../../internal/utils/base64Encode.cjs');
require('../utils/isObject.cjs');
/**
* Parse custom_pre_function options
* @private
* @param {object|*} customPreFunction a custom function object containing function_type and source values
* @return {string|*} custom_pre_function transformation string
*/
function processCustomPreFunction(customPreFunction) {
var result = backwards_transformationProcessing_processCustomFunction.processCustomFunction(customPreFunction);
return typeof result === 'string' ? "pre:".concat(result) : null;
}
exports.processCustomPreFunction = processCustomPreFunction;