UNPKG

@cloudinary/url-gen

Version:

You are invited to influence our new SDK [Click here to view github discussion](https://github.com/cloudinary/js-url-gen/discussions/602) =========================

21 lines (16 loc) 800 B
'use strict'; 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;