michangarrito/apps/backend/node_modules/@nestjs/swagger/dist/swagger-ui/helpers.js
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

18 lines
639 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildJSInitOptions = void 0;
function buildJSInitOptions(initOptions) {
const functionPlaceholder = '____FUNCTION_PLACEHOLDER____';
const fns = [];
let json = JSON.stringify(initOptions, (key, value) => {
if (typeof value === 'function') {
fns.push(value);
return functionPlaceholder;
}
return value;
}, 2);
json = json.replace(new RegExp('"' + functionPlaceholder + '"', 'g'), () => fns.shift());
return `let options = ${json};`;
}
exports.buildJSInitOptions = buildJSInitOptions;