template-saas/apps/backend/node_modules/@nestjs/swagger/dist/swagger-ui/helpers.js
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
Template base para proyectos SaaS multi-tenant.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React/Vite)
- apps/database (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:24 -06:00

17 lines
602 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildJSInitOptions = buildJSInitOptions;
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};`;
}