Initial commit - Event Planner application

This commit is contained in:
mberlin
2026-03-18 14:55:56 -03:00
commit 86d779eb4d
7548 changed files with 1006324 additions and 0 deletions

View File

@@ -0,0 +1 @@
export declare const isRouteExcluded: (req: any, paths?: string[]) => boolean;

View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRouteExcluded = void 0;
const path_to_regexp_1 = require("path-to-regexp");
const isRouteExcluded = (req, paths = []) => {
return paths.some((path) => {
const { regexp } = (0, path_to_regexp_1.pathToRegexp)(path);
const queryParamsIndex = req.originalUrl.indexOf('?');
const pathname = queryParamsIndex >= 0
? req.originalUrl.slice(0, queryParamsIndex)
: req.originalUrl;
if (!regexp.exec(pathname + '/')) {
return false;
}
return true;
});
};
exports.isRouteExcluded = isRouteExcluded;

View File

@@ -0,0 +1,5 @@
export declare function loadPackage<T = any>(
packageName: string,
context: string,
loaderFn?: () => T
): T;

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const common_1 = require("@nestjs/common");
const MISSING_REQUIRED_DEPENDENCY = (name, reason) => `The "${name}" package is missing. Please, make sure to install this library ($ npm install ${name}) to take advantage of ${reason}.`;
const logger = new common_1.Logger('PackageLoader');
function loadPackage(packageName, context, loaderFn) {
try {
return loaderFn ? loaderFn() : require(packageName);
}
catch (e) {
logger.error(MISSING_REQUIRED_DEPENDENCY(packageName, context));
process.exit(1);
}
}
exports.loadPackage = loadPackage;

View File

@@ -0,0 +1 @@
export declare const validateGlobalPrefix: (globalPrefix: string) => boolean;

View File

@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateGlobalPrefix = void 0;
const validateGlobalPrefix = (globalPrefix) => !globalPrefix.match(/^(\/?)$/);
exports.validateGlobalPrefix = validateGlobalPrefix;

View File

@@ -0,0 +1 @@
export declare const validatePath: (path: string) => string;

View File

@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validatePath = void 0;
const validatePath = (path) => path && path.charAt(0) !== '/' ? `/${path}` : path;
exports.validatePath = validatePath;