Initial commit - Event Planner application
This commit is contained in:
3
node_modules/@nestjs/platform-express/interfaces/index.d.ts
generated
vendored
Normal file
3
node_modules/@nestjs/platform-express/interfaces/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './nest-express-application.interface';
|
||||
export { NestExpressBodyParserOptions } from './nest-express-body-parser-options.interface';
|
||||
export * from './nest-express-body-parser.interface';
|
||||
5
node_modules/@nestjs/platform-express/interfaces/index.js
generated
vendored
Normal file
5
node_modules/@nestjs/platform-express/interfaces/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./nest-express-application.interface"), exports);
|
||||
tslib_1.__exportStar(require("./nest-express-body-parser.interface"), exports);
|
||||
119
node_modules/@nestjs/platform-express/interfaces/nest-express-application.interface.d.ts
generated
vendored
Normal file
119
node_modules/@nestjs/platform-express/interfaces/nest-express-application.interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
import { HttpServer, INestApplication } from '@nestjs/common';
|
||||
import type { CorsOptions, CorsOptionsDelegate } from '@nestjs/common/interfaces/external/cors-options.interface';
|
||||
import type { Express } from 'express';
|
||||
import type { Server as CoreHttpServer } from 'http';
|
||||
import type { Server as CoreHttpsServer } from 'https';
|
||||
import { NestExpressBodyParserOptions } from './nest-express-body-parser-options.interface';
|
||||
import { NestExpressBodyParserType } from './nest-express-body-parser.interface';
|
||||
import { ServeStaticOptions } from './serve-static-options.interface';
|
||||
/**
|
||||
* Interface describing methods on NestExpressApplication.
|
||||
*
|
||||
* @see [Platform](https://docs.nestjs.com/first-steps#platform)
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export interface NestExpressApplication<TServer extends CoreHttpServer | CoreHttpsServer = CoreHttpServer> extends INestApplication<TServer> {
|
||||
/**
|
||||
* Returns the underlying HTTP adapter bounded to the Express.js app.
|
||||
*
|
||||
* @returns {HttpServer}
|
||||
*/
|
||||
getHttpAdapter(): HttpServer<Express.Request, Express.Response, Express>;
|
||||
/**
|
||||
* Starts the application.
|
||||
*
|
||||
* @param {number|string} port
|
||||
* @param {string} [hostname]
|
||||
* @param {Function} [callback] Optional callback
|
||||
* @returns {Promise} A Promise that, when resolved, is a reference to the underlying HttpServer.
|
||||
*/
|
||||
listen(port: number | string, callback?: () => void): Promise<TServer>;
|
||||
listen(port: number | string, hostname: string, callback?: () => void): Promise<TServer>;
|
||||
/**
|
||||
* A wrapper function around native `express.set()` method.
|
||||
*
|
||||
* @example
|
||||
* app.set('trust proxy', 'loopback')
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
set(...args: any[]): this;
|
||||
/**
|
||||
* A wrapper function around native `express.engine()` method.
|
||||
* @example
|
||||
* app.engine('mustache', mustacheExpress())
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
engine(...args: any[]): this;
|
||||
/**
|
||||
* A wrapper function around native `express.enable()` method.
|
||||
* @example
|
||||
* app.enable('x-powered-by')
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
enable(...args: any[]): this;
|
||||
/**
|
||||
* A wrapper function around native `express.disable()` method.
|
||||
*
|
||||
* @example
|
||||
* app.disable('x-powered-by')
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
disable(...args: any[]): this;
|
||||
useStaticAssets(options: ServeStaticOptions): this;
|
||||
/**
|
||||
* Sets a base directory for public assets.
|
||||
* @example
|
||||
* app.useStaticAssets('public')
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
useStaticAssets(path: string, options?: ServeStaticOptions): this;
|
||||
enableCors(options?: CorsOptions | CorsOptionsDelegate<any>): void;
|
||||
/**
|
||||
* Register Express body parsers on the fly. Will respect
|
||||
* the application's `rawBody` option.
|
||||
*
|
||||
* @example
|
||||
* const app = await NestFactory.create<NestExpressApplication>(
|
||||
* AppModule,
|
||||
* { rawBody: true }
|
||||
* );
|
||||
* app.useBodyParser('json', { limit: '50mb' });
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
useBodyParser<Options = NestExpressBodyParserOptions>(parser: NestExpressBodyParserType, options?: Omit<Options, 'verify'>): this;
|
||||
/**
|
||||
* Sets one or multiple base directories for templates (views).
|
||||
*
|
||||
* @example
|
||||
* app.setBaseViewsDir('views')
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
setBaseViewsDir(path: string | string[]): this;
|
||||
/**
|
||||
* Sets a view engine for templates (views).
|
||||
* @example
|
||||
* app.setViewEngine('pug')
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
setViewEngine(engine: string): this;
|
||||
/**
|
||||
* Sets app-level globals for view templates.
|
||||
*
|
||||
* @example
|
||||
* app.setLocal('title', 'My Site')
|
||||
*
|
||||
* @see https://expressjs.com/en/4x/api.html#app.locals
|
||||
*
|
||||
* @returns {this}
|
||||
*/
|
||||
setLocal(key: string, value: any): this;
|
||||
}
|
||||
2
node_modules/@nestjs/platform-express/interfaces/nest-express-application.interface.js
generated
vendored
Normal file
2
node_modules/@nestjs/platform-express/interfaces/nest-express-application.interface.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
21
node_modules/@nestjs/platform-express/interfaces/nest-express-body-parser-options.interface.d.ts
generated
vendored
Normal file
21
node_modules/@nestjs/platform-express/interfaces/nest-express-body-parser-options.interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { IncomingMessage } from 'http';
|
||||
/**
|
||||
* Type alias to keep compatibility with @types/body-parser
|
||||
* @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/dcd1673c4fa18a15ea8cd8ff8af7d563bb6dc8e6/types/body-parser/index.d.ts#L48-L66#L48-L66
|
||||
* @publicApi
|
||||
*/
|
||||
export interface NestExpressBodyParserOptions {
|
||||
/** When set to true, then deflated (compressed) bodies will be inflated; when false, deflated bodies are rejected. Defaults to true. */
|
||||
inflate?: boolean | undefined;
|
||||
/**
|
||||
* Controls the maximum request body size. If this is a number,
|
||||
* then the value specifies the number of bytes; if it is a string,
|
||||
* the value is passed to the bytes library for parsing. Defaults to '100kb'.
|
||||
*/
|
||||
limit?: number | string | undefined;
|
||||
/**
|
||||
* The type option is used to determine what media type the middleware will parse
|
||||
*/
|
||||
type?: string | string[] | ((req: IncomingMessage) => any) | undefined;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
2
node_modules/@nestjs/platform-express/interfaces/nest-express-body-parser-options.interface.js
generated
vendored
Normal file
2
node_modules/@nestjs/platform-express/interfaces/nest-express-body-parser-options.interface.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
4
node_modules/@nestjs/platform-express/interfaces/nest-express-body-parser.interface.d.ts
generated
vendored
Normal file
4
node_modules/@nestjs/platform-express/interfaces/nest-express-body-parser.interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* Interface defining possible body parser types, to be used with `NestExpressApplication.useBodyParser()`.
|
||||
*/
|
||||
export type NestExpressBodyParserType = 'json' | 'urlencoded' | 'text' | 'raw';
|
||||
2
node_modules/@nestjs/platform-express/interfaces/nest-express-body-parser.interface.js
generated
vendored
Normal file
2
node_modules/@nestjs/platform-express/interfaces/nest-express-body-parser.interface.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
69
node_modules/@nestjs/platform-express/interfaces/serve-static-options.interface.d.ts
generated
vendored
Normal file
69
node_modules/@nestjs/platform-express/interfaces/serve-static-options.interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Interface describing options for serving static assets.
|
||||
*
|
||||
* @see [Serving static files in Express](https://expressjs.com/en/starter/static-files.html)
|
||||
* @see [Model-View-Controller](https://docs.nestjs.com/techniques/mvc)
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export interface ServeStaticOptions {
|
||||
/**
|
||||
* Set how "dotfiles" are treated when encountered. A dotfile is a file or directory that begins with a dot (".").
|
||||
* Note this check is done on the path itself without checking if the path actually exists on the disk.
|
||||
* If root is specified, only the dotfiles above the root are checked (i.e. the root itself can be within a dotfile when when set to "deny").
|
||||
* The default value is 'ignore'.
|
||||
* 'allow' No special treatment for dotfiles
|
||||
* 'deny' Send a 403 for any request for a dotfile
|
||||
* 'ignore' Pretend like the dotfile does not exist and call next()
|
||||
*/
|
||||
dotfiles?: string;
|
||||
/**
|
||||
* Enable or disable etag generation, defaults to true.
|
||||
*/
|
||||
etag?: boolean;
|
||||
/**
|
||||
* Set file extension fallbacks. When set, if a file is not found, the given extensions will be added to the file name and search for.
|
||||
* The first that exists will be served. Example: ['html', 'htm'].
|
||||
* The default value is false.
|
||||
*/
|
||||
extensions?: string[];
|
||||
/**
|
||||
* Let client errors fall-through as unhandled requests, otherwise forward a client error.
|
||||
* The default value is false.
|
||||
*/
|
||||
fallthrough?: boolean;
|
||||
/**
|
||||
* Enable or disable the immutable directive in the Cache-Control response header.
|
||||
* If enabled, the maxAge option should also be specified to enable caching. The immutable directive will prevent supported clients from making conditional requests during the life of the maxAge option to check if the file has changed.
|
||||
*/
|
||||
immutable?: boolean;
|
||||
/**
|
||||
* By default this module will send "index.html" files in response to a request on a directory.
|
||||
* To disable this set false or to supply a new index pass a string or an array in preferred order.
|
||||
*/
|
||||
index?: boolean | string | string[];
|
||||
/**
|
||||
* Enable or disable Last-Modified header, defaults to true. Uses the file system's last modified value.
|
||||
*/
|
||||
lastModified?: boolean;
|
||||
/**
|
||||
* Provide a max-age in milliseconds for http caching, defaults to 0. This can also be a string accepted by the ms module.
|
||||
*/
|
||||
maxAge?: number | string;
|
||||
/**
|
||||
* Redirect to trailing "/" when the pathname is a dir. Defaults to true.
|
||||
*/
|
||||
redirect?: boolean;
|
||||
/**
|
||||
* Function to set custom headers on response. Alterations to the headers need to occur synchronously.
|
||||
* The function is called as `fn(res, path, stat)`, where the arguments are:
|
||||
* `res` - the response object
|
||||
* `path` - the file path that is being sent
|
||||
* `stat` - the stat object of the file that is being sent
|
||||
*/
|
||||
setHeaders?: (res: any, path: string, stat: any) => any;
|
||||
/**
|
||||
* Creates a virtual path prefix
|
||||
*/
|
||||
prefix?: string;
|
||||
}
|
||||
2
node_modules/@nestjs/platform-express/interfaces/serve-static-options.interface.js
generated
vendored
Normal file
2
node_modules/@nestjs/platform-express/interfaces/serve-static-options.interface.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
Reference in New Issue
Block a user