Initial commit - Event Planner application
This commit is contained in:
4
node_modules/@nestjs/common/utils/assign-custom-metadata.util.d.ts
generated
vendored
Normal file
4
node_modules/@nestjs/common/utils/assign-custom-metadata.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ParamData, RouteParamMetadata } from '../decorators/http/route-params.decorator';
|
||||
import { PipeTransform, Type } from '../interfaces';
|
||||
import { CustomParamFactory } from '../interfaces/features/custom-route-param-factory.interface';
|
||||
export declare function assignCustomParameterMetadata(args: Record<number, RouteParamMetadata>, paramtype: number | string, index: number, factory: CustomParamFactory, data?: ParamData, ...pipes: (Type<PipeTransform> | PipeTransform)[]): {};
|
||||
15
node_modules/@nestjs/common/utils/assign-custom-metadata.util.js
generated
vendored
Normal file
15
node_modules/@nestjs/common/utils/assign-custom-metadata.util.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.assignCustomParameterMetadata = assignCustomParameterMetadata;
|
||||
const constants_1 = require("../constants");
|
||||
function assignCustomParameterMetadata(args, paramtype, index, factory, data, ...pipes) {
|
||||
return {
|
||||
...args,
|
||||
[`${paramtype}${constants_1.CUSTOM_ROUTE_ARGS_METADATA}:${index}`]: {
|
||||
index,
|
||||
factory,
|
||||
data,
|
||||
pipes,
|
||||
},
|
||||
};
|
||||
}
|
||||
10
node_modules/@nestjs/common/utils/cli-colors.util.d.ts
generated
vendored
Normal file
10
node_modules/@nestjs/common/utils/cli-colors.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export declare const isColorAllowed: () => boolean;
|
||||
export declare const clc: {
|
||||
bold: (text: string) => string;
|
||||
green: (text: string) => string;
|
||||
yellow: (text: string) => string;
|
||||
red: (text: string) => string;
|
||||
magentaBright: (text: string) => string;
|
||||
cyanBright: (text: string) => string;
|
||||
};
|
||||
export declare const yellow: (text: string) => string;
|
||||
15
node_modules/@nestjs/common/utils/cli-colors.util.js
generated
vendored
Normal file
15
node_modules/@nestjs/common/utils/cli-colors.util.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.yellow = exports.clc = exports.isColorAllowed = void 0;
|
||||
const isColorAllowed = () => !process.env.NO_COLOR;
|
||||
exports.isColorAllowed = isColorAllowed;
|
||||
const colorIfAllowed = (colorFn) => (text) => (0, exports.isColorAllowed)() ? colorFn(text) : text;
|
||||
exports.clc = {
|
||||
bold: colorIfAllowed((text) => `\x1B[1m${text}\x1B[0m`),
|
||||
green: colorIfAllowed((text) => `\x1B[32m${text}\x1B[39m`),
|
||||
yellow: colorIfAllowed((text) => `\x1B[33m${text}\x1B[39m`),
|
||||
red: colorIfAllowed((text) => `\x1B[31m${text}\x1B[39m`),
|
||||
magentaBright: colorIfAllowed((text) => `\x1B[95m${text}\x1B[39m`),
|
||||
cyanBright: colorIfAllowed((text) => `\x1B[96m${text}\x1B[39m`),
|
||||
};
|
||||
exports.yellow = colorIfAllowed((text) => `\x1B[38;5;3m${text}\x1B[39m`);
|
||||
1
node_modules/@nestjs/common/utils/extend-metadata.util.d.ts
generated
vendored
Normal file
1
node_modules/@nestjs/common/utils/extend-metadata.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function extendArrayMetadata<T extends Array<unknown>>(key: string, metadata: T, target: Function): void;
|
||||
8
node_modules/@nestjs/common/utils/extend-metadata.util.js
generated
vendored
Normal file
8
node_modules/@nestjs/common/utils/extend-metadata.util.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.extendArrayMetadata = extendArrayMetadata;
|
||||
function extendArrayMetadata(key, metadata, target) {
|
||||
const previousValue = Reflect.getMetadata(key, target) || [];
|
||||
const value = [...previousValue, ...metadata];
|
||||
Reflect.defineMetadata(key, value, target);
|
||||
}
|
||||
5
node_modules/@nestjs/common/utils/forward-ref.util.d.ts
generated
vendored
Normal file
5
node_modules/@nestjs/common/utils/forward-ref.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ForwardReference } from '../interfaces/modules/forward-reference.interface';
|
||||
/**
|
||||
* @publicApi
|
||||
*/
|
||||
export declare const forwardRef: (fn: () => any) => ForwardReference;
|
||||
10
node_modules/@nestjs/common/utils/forward-ref.util.js
generated
vendored
Normal file
10
node_modules/@nestjs/common/utils/forward-ref.util.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.forwardRef = void 0;
|
||||
/**
|
||||
* @publicApi
|
||||
*/
|
||||
const forwardRef = (fn) => ({
|
||||
forwardRef: fn,
|
||||
});
|
||||
exports.forwardRef = forwardRef;
|
||||
4
node_modules/@nestjs/common/utils/http-error-by-code.util.d.ts
generated
vendored
Normal file
4
node_modules/@nestjs/common/utils/http-error-by-code.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { HttpStatus } from '../enums';
|
||||
import { Type } from '../interfaces';
|
||||
export type ErrorHttpStatusCode = HttpStatus.BAD_GATEWAY | HttpStatus.BAD_REQUEST | HttpStatus.CONFLICT | HttpStatus.FORBIDDEN | HttpStatus.GATEWAY_TIMEOUT | HttpStatus.GONE | HttpStatus.I_AM_A_TEAPOT | HttpStatus.INTERNAL_SERVER_ERROR | HttpStatus.METHOD_NOT_ALLOWED | HttpStatus.NOT_ACCEPTABLE | HttpStatus.NOT_FOUND | HttpStatus.NOT_IMPLEMENTED | HttpStatus.PAYLOAD_TOO_LARGE | HttpStatus.PRECONDITION_FAILED | HttpStatus.REQUEST_TIMEOUT | HttpStatus.SERVICE_UNAVAILABLE | HttpStatus.UNAUTHORIZED | HttpStatus.UNPROCESSABLE_ENTITY | HttpStatus.UNSUPPORTED_MEDIA_TYPE;
|
||||
export declare const HttpErrorByCode: Record<ErrorHttpStatusCode, Type<unknown>>;
|
||||
26
node_modules/@nestjs/common/utils/http-error-by-code.util.js
generated
vendored
Normal file
26
node_modules/@nestjs/common/utils/http-error-by-code.util.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.HttpErrorByCode = void 0;
|
||||
const enums_1 = require("../enums");
|
||||
const exceptions_1 = require("../exceptions");
|
||||
exports.HttpErrorByCode = {
|
||||
[enums_1.HttpStatus.BAD_GATEWAY]: exceptions_1.BadGatewayException,
|
||||
[enums_1.HttpStatus.BAD_REQUEST]: exceptions_1.BadRequestException,
|
||||
[enums_1.HttpStatus.CONFLICT]: exceptions_1.ConflictException,
|
||||
[enums_1.HttpStatus.FORBIDDEN]: exceptions_1.ForbiddenException,
|
||||
[enums_1.HttpStatus.GATEWAY_TIMEOUT]: exceptions_1.GatewayTimeoutException,
|
||||
[enums_1.HttpStatus.GONE]: exceptions_1.GoneException,
|
||||
[enums_1.HttpStatus.I_AM_A_TEAPOT]: exceptions_1.ImATeapotException,
|
||||
[enums_1.HttpStatus.INTERNAL_SERVER_ERROR]: exceptions_1.InternalServerErrorException,
|
||||
[enums_1.HttpStatus.METHOD_NOT_ALLOWED]: exceptions_1.MethodNotAllowedException,
|
||||
[enums_1.HttpStatus.NOT_ACCEPTABLE]: exceptions_1.NotAcceptableException,
|
||||
[enums_1.HttpStatus.NOT_FOUND]: exceptions_1.NotFoundException,
|
||||
[enums_1.HttpStatus.NOT_IMPLEMENTED]: exceptions_1.NotImplementedException,
|
||||
[enums_1.HttpStatus.PAYLOAD_TOO_LARGE]: exceptions_1.PayloadTooLargeException,
|
||||
[enums_1.HttpStatus.PRECONDITION_FAILED]: exceptions_1.PreconditionFailedException,
|
||||
[enums_1.HttpStatus.REQUEST_TIMEOUT]: exceptions_1.RequestTimeoutException,
|
||||
[enums_1.HttpStatus.SERVICE_UNAVAILABLE]: exceptions_1.ServiceUnavailableException,
|
||||
[enums_1.HttpStatus.UNAUTHORIZED]: exceptions_1.UnauthorizedException,
|
||||
[enums_1.HttpStatus.UNPROCESSABLE_ENTITY]: exceptions_1.UnprocessableEntityException,
|
||||
[enums_1.HttpStatus.UNSUPPORTED_MEDIA_TYPE]: exceptions_1.UnsupportedMediaTypeException,
|
||||
};
|
||||
1
node_modules/@nestjs/common/utils/index.d.ts
generated
vendored
Normal file
1
node_modules/@nestjs/common/utils/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './forward-ref.util';
|
||||
4
node_modules/@nestjs/common/utils/index.js
generated
vendored
Normal file
4
node_modules/@nestjs/common/utils/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./forward-ref.util"), exports);
|
||||
1
node_modules/@nestjs/common/utils/load-package.util.d.ts
generated
vendored
Normal file
1
node_modules/@nestjs/common/utils/load-package.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function loadPackage(packageName: string, context: string, loaderFn?: Function): any;
|
||||
16
node_modules/@nestjs/common/utils/load-package.util.js
generated
vendored
Normal file
16
node_modules/@nestjs/common/utils/load-package.util.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.loadPackage = loadPackage;
|
||||
const logger_service_1 = require("../services/logger.service");
|
||||
const MISSING_REQUIRED_DEPENDENCY = (name, reason) => `The "${name}" package is missing. Please, make sure to install it to take advantage of ${reason}.`;
|
||||
const logger = new logger_service_1.Logger('PackageLoader');
|
||||
function loadPackage(packageName, context, loaderFn) {
|
||||
try {
|
||||
return loaderFn ? loaderFn() : require(packageName);
|
||||
}
|
||||
catch (e) {
|
||||
logger.error(MISSING_REQUIRED_DEPENDENCY(packageName, context));
|
||||
logger_service_1.Logger.flush();
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
4
node_modules/@nestjs/common/utils/merge-with-values.util.d.ts
generated
vendored
Normal file
4
node_modules/@nestjs/common/utils/merge-with-values.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export type Constructor<T> = new (...args: any[]) => T;
|
||||
export declare const MergeWithValues: <T extends Constructor<{}>>(data: {
|
||||
[param: string]: any;
|
||||
}) => (Metatype: T) => any;
|
||||
18
node_modules/@nestjs/common/utils/merge-with-values.util.js
generated
vendored
Normal file
18
node_modules/@nestjs/common/utils/merge-with-values.util.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MergeWithValues = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
||||
const MergeWithValues = (data) => {
|
||||
return (Metatype) => {
|
||||
const Type = class extends Metatype {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
}
|
||||
};
|
||||
const token = Metatype.name + JSON.stringify(data);
|
||||
Object.defineProperty(Type, 'name', { value: token });
|
||||
Object.assign(Type.prototype, data);
|
||||
return Type;
|
||||
};
|
||||
};
|
||||
exports.MergeWithValues = MergeWithValues;
|
||||
1
node_modules/@nestjs/common/utils/random-string-generator.util.d.ts
generated
vendored
Normal file
1
node_modules/@nestjs/common/utils/random-string-generator.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const randomStringGenerator: () => string;
|
||||
6
node_modules/@nestjs/common/utils/random-string-generator.util.js
generated
vendored
Normal file
6
node_modules/@nestjs/common/utils/random-string-generator.util.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.randomStringGenerator = void 0;
|
||||
const uid_1 = require("uid");
|
||||
const randomStringGenerator = () => (0, uid_1.uid)(21);
|
||||
exports.randomStringGenerator = randomStringGenerator;
|
||||
2
node_modules/@nestjs/common/utils/select-exception-filter-metadata.util.d.ts
generated
vendored
Normal file
2
node_modules/@nestjs/common/utils/select-exception-filter-metadata.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { ExceptionFilterMetadata } from '../interfaces/exceptions';
|
||||
export declare const selectExceptionFilterMetadata: <T = any>(filters: ExceptionFilterMetadata[], exception: T) => ExceptionFilterMetadata | undefined;
|
||||
6
node_modules/@nestjs/common/utils/select-exception-filter-metadata.util.js
generated
vendored
Normal file
6
node_modules/@nestjs/common/utils/select-exception-filter-metadata.util.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.selectExceptionFilterMetadata = void 0;
|
||||
const selectExceptionFilterMetadata = (filters, exception) => filters.find(({ exceptionMetatypes }) => !exceptionMetatypes.length ||
|
||||
exceptionMetatypes.some(ExceptionMetaType => exception instanceof ExceptionMetaType));
|
||||
exports.selectExceptionFilterMetadata = selectExceptionFilterMetadata;
|
||||
13
node_modules/@nestjs/common/utils/shared.utils.d.ts
generated
vendored
Normal file
13
node_modules/@nestjs/common/utils/shared.utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
export declare const isUndefined: (obj: any) => obj is undefined;
|
||||
export declare const isObject: (fn: any) => fn is object;
|
||||
export declare const isPlainObject: (fn: any) => fn is object;
|
||||
export declare const addLeadingSlash: (path?: string) => string;
|
||||
export declare const normalizePath: (path?: string) => string;
|
||||
export declare const stripEndSlash: (path: string) => string;
|
||||
export declare const isFunction: (val: any) => val is Function;
|
||||
export declare const isString: (val: any) => val is string;
|
||||
export declare const isNumber: (val: any) => val is number;
|
||||
export declare const isConstructor: (val: any) => boolean;
|
||||
export declare const isNil: (val: any) => val is null | undefined;
|
||||
export declare const isEmpty: (array: any) => boolean;
|
||||
export declare const isSymbol: (val: any) => val is symbol;
|
||||
51
node_modules/@nestjs/common/utils/shared.utils.js
generated
vendored
Normal file
51
node_modules/@nestjs/common/utils/shared.utils.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isSymbol = exports.isEmpty = exports.isNil = exports.isConstructor = exports.isNumber = exports.isString = exports.isFunction = exports.stripEndSlash = exports.normalizePath = exports.addLeadingSlash = exports.isPlainObject = exports.isObject = exports.isUndefined = void 0;
|
||||
const isUndefined = (obj) => typeof obj === 'undefined';
|
||||
exports.isUndefined = isUndefined;
|
||||
const isObject = (fn) => !(0, exports.isNil)(fn) && typeof fn === 'object';
|
||||
exports.isObject = isObject;
|
||||
const isPlainObject = (fn) => {
|
||||
if (!(0, exports.isObject)(fn)) {
|
||||
return false;
|
||||
}
|
||||
const proto = Object.getPrototypeOf(fn);
|
||||
if (proto === null) {
|
||||
return true;
|
||||
}
|
||||
const ctor = Object.prototype.hasOwnProperty.call(proto, 'constructor') &&
|
||||
proto.constructor;
|
||||
return (typeof ctor === 'function' &&
|
||||
ctor instanceof ctor &&
|
||||
Function.prototype.toString.call(ctor) ===
|
||||
Function.prototype.toString.call(Object));
|
||||
};
|
||||
exports.isPlainObject = isPlainObject;
|
||||
const addLeadingSlash = (path) => path && typeof path === 'string'
|
||||
? path.charAt(0) !== '/' && path.substring(0, 2) !== '{/'
|
||||
? '/' + path
|
||||
: path
|
||||
: '';
|
||||
exports.addLeadingSlash = addLeadingSlash;
|
||||
const normalizePath = (path) => path
|
||||
? path.startsWith('/')
|
||||
? ('/' + path.replace(/\/+$/, '')).replace(/\/+/g, '/')
|
||||
: '/' + path.replace(/\/+$/, '')
|
||||
: '/';
|
||||
exports.normalizePath = normalizePath;
|
||||
const stripEndSlash = (path) => path[path.length - 1] === '/' ? path.slice(0, path.length - 1) : path;
|
||||
exports.stripEndSlash = stripEndSlash;
|
||||
const isFunction = (val) => typeof val === 'function';
|
||||
exports.isFunction = isFunction;
|
||||
const isString = (val) => typeof val === 'string';
|
||||
exports.isString = isString;
|
||||
const isNumber = (val) => typeof val === 'number';
|
||||
exports.isNumber = isNumber;
|
||||
const isConstructor = (val) => val === 'constructor';
|
||||
exports.isConstructor = isConstructor;
|
||||
const isNil = (val) => (0, exports.isUndefined)(val) || val === null;
|
||||
exports.isNil = isNil;
|
||||
const isEmpty = (array) => !(array && array.length > 0);
|
||||
exports.isEmpty = isEmpty;
|
||||
const isSymbol = (val) => typeof val === 'symbol';
|
||||
exports.isSymbol = isSymbol;
|
||||
8
node_modules/@nestjs/common/utils/validate-each.util.d.ts
generated
vendored
Normal file
8
node_modules/@nestjs/common/utils/validate-each.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export declare class InvalidDecoratorItemException extends Error {
|
||||
private readonly msg;
|
||||
constructor(decorator: string, item: string, context: string);
|
||||
what(): string;
|
||||
}
|
||||
export declare function validateEach(context: {
|
||||
name: string;
|
||||
}, arr: any[], predicate: Function, decorator: string, item: string): boolean;
|
||||
25
node_modules/@nestjs/common/utils/validate-each.util.js
generated
vendored
Normal file
25
node_modules/@nestjs/common/utils/validate-each.util.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InvalidDecoratorItemException = void 0;
|
||||
exports.validateEach = validateEach;
|
||||
class InvalidDecoratorItemException extends Error {
|
||||
constructor(decorator, item, context) {
|
||||
const message = `Invalid ${item} passed to ${decorator}() decorator (${context}).`;
|
||||
super(message);
|
||||
this.msg = message;
|
||||
}
|
||||
what() {
|
||||
return this.msg;
|
||||
}
|
||||
}
|
||||
exports.InvalidDecoratorItemException = InvalidDecoratorItemException;
|
||||
function validateEach(context, arr, predicate, decorator, item) {
|
||||
if (!context || !context.name) {
|
||||
return true;
|
||||
}
|
||||
const errors = arr.some(str => !predicate(str));
|
||||
if (errors) {
|
||||
throw new InvalidDecoratorItemException(decorator, item, context.name);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
2
node_modules/@nestjs/common/utils/validate-module-keys.util.d.ts
generated
vendored
Normal file
2
node_modules/@nestjs/common/utils/validate-module-keys.util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const INVALID_MODULE_CONFIG_MESSAGE: (text: TemplateStringsArray, property: string) => string;
|
||||
export declare function validateModuleKeys(keys: string[]): void;
|
||||
22
node_modules/@nestjs/common/utils/validate-module-keys.util.js
generated
vendored
Normal file
22
node_modules/@nestjs/common/utils/validate-module-keys.util.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.INVALID_MODULE_CONFIG_MESSAGE = void 0;
|
||||
exports.validateModuleKeys = validateModuleKeys;
|
||||
const constants_1 = require("../constants");
|
||||
const INVALID_MODULE_CONFIG_MESSAGE = (text, property) => `Invalid property '${property}' passed into the @Module() decorator.`;
|
||||
exports.INVALID_MODULE_CONFIG_MESSAGE = INVALID_MODULE_CONFIG_MESSAGE;
|
||||
const metadataKeys = [
|
||||
constants_1.MODULE_METADATA.IMPORTS,
|
||||
constants_1.MODULE_METADATA.EXPORTS,
|
||||
constants_1.MODULE_METADATA.CONTROLLERS,
|
||||
constants_1.MODULE_METADATA.PROVIDERS,
|
||||
];
|
||||
function validateModuleKeys(keys) {
|
||||
const validateKey = (key) => {
|
||||
if (metadataKeys.includes(key)) {
|
||||
return;
|
||||
}
|
||||
throw new Error((0, exports.INVALID_MODULE_CONFIG_MESSAGE) `${key}`);
|
||||
};
|
||||
keys.forEach(validateKey);
|
||||
}
|
||||
Reference in New Issue
Block a user