express-sweet 1.0.11 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -87
- package/docs/index.html +345 -295
- package/docs/styles/docs.css +5 -10
- package/package.json +1 -1
- package/dist/build.common.js +0 -53
- package/dist/build.esm.js +0 -53
- package/types/database/Database.d.ts +0 -162
- package/types/database/Model.d.ts +0 -158
- package/types/database/index.d.ts +0 -4
- package/types/database/loadModels.d.ts +0 -6
- package/types/exceptions/ApiError.d.ts +0 -29
- package/types/exceptions/index.d.ts +0 -2
- package/types/handlebars_helpers/comparison.d.ts +0 -261
- package/types/handlebars_helpers/html.d.ts +0 -11
- package/types/handlebars_helpers/index.d.ts +0 -5
- package/types/handlebars_helpers/object.d.ts +0 -21
- package/types/handlebars_helpers/string.d.ts +0 -12
- package/types/index.d.ts +0 -9
- package/types/interfaces/AuthenticationOptions.d.ts +0 -84
- package/types/interfaces/BoundingBox.d.ts +0 -25
- package/types/interfaces/Config.d.ts +0 -66
- package/types/interfaces/DatabaseOptions.d.ts +0 -7
- package/types/interfaces/FaceMatch.d.ts +0 -31
- package/types/interfaces/RekognitionOptions.d.ts +0 -26
- package/types/interfaces/ViewOptions.d.ts +0 -30
- package/types/interfaces/index.d.ts +0 -8
- package/types/middlewares/Authentication.d.ts +0 -16
- package/types/middlewares/CORS.d.ts +0 -16
- package/types/middlewares/Environment.d.ts +0 -17
- package/types/middlewares/ErrorHandling.d.ts +0 -16
- package/types/middlewares/Global.d.ts +0 -13
- package/types/middlewares/Http.d.ts +0 -16
- package/types/middlewares/Local.d.ts +0 -20
- package/types/middlewares/View.d.ts +0 -16
- package/types/middlewares/index.d.ts +0 -8
- package/types/mount.d.ts +0 -7
- package/types/package.d.ts +0 -91
- package/types/routing/Router.d.ts +0 -19
- package/types/routing/index.d.ts +0 -2
- package/types/services/AWSRekognitionClient.d.ts +0 -359
- package/types/services/Authentication.d.ts +0 -39
- package/types/services/RedisClient.d.ts +0 -80
- package/types/services/index.d.ts +0 -3
- package/types/utils/Types.d.ts +0 -16
- package/types/utils/index.d.ts +0 -2
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a new string with some or all matches of a pattern replaced by a replacement.
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* {{replace 'The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?' 'dog' 'monkey'}}
|
|
6
|
-
*
|
|
7
|
-
* @param {string} value String.
|
|
8
|
-
* @param {string} find The string to be replaced.
|
|
9
|
-
* @param {string} replace The string to replace.
|
|
10
|
-
* @return {string} Character string after replacement.
|
|
11
|
-
*/
|
|
12
|
-
export declare function replace(value: string, find: string, replace: string): string;
|
package/types/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { version } from '~/package';
|
|
2
|
-
import mount from './mount';
|
|
3
|
-
import * as database from './database';
|
|
4
|
-
import * as services from './services';
|
|
5
|
-
import * as utils from './utils';
|
|
6
|
-
import * as middlewares from './middlewares';
|
|
7
|
-
import * as exceptions from './exceptions';
|
|
8
|
-
import * as interfaces from './interfaces';
|
|
9
|
-
export { version, mount, database, services, utils, middlewares, exceptions, interfaces };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User authentication configuration interface.
|
|
3
|
-
*/
|
|
4
|
-
export default interface {
|
|
5
|
-
/**
|
|
6
|
-
* Enable user authentication, defaults to disabled (false).
|
|
7
|
-
* @type {boolean}
|
|
8
|
-
*/
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Authentication user ID field name, defaults to `username`.
|
|
12
|
-
* @type {string}
|
|
13
|
-
*/
|
|
14
|
-
username: string;
|
|
15
|
-
/**
|
|
16
|
-
* Authentication password field name, defaults to `password`.
|
|
17
|
-
* @type {string}
|
|
18
|
-
*/
|
|
19
|
-
password: string;
|
|
20
|
-
/**
|
|
21
|
-
* URL to redirect after successful authentication, defaults to `/`.
|
|
22
|
-
* @type {string}
|
|
23
|
-
*/
|
|
24
|
-
success_redirect: string;
|
|
25
|
-
/**
|
|
26
|
-
* URL to redirect after log off, defaults to `/login`.
|
|
27
|
-
* @type {string}
|
|
28
|
-
*/
|
|
29
|
-
failure_redirect: string;
|
|
30
|
-
/**
|
|
31
|
-
* This hook is called when authenticating a user.
|
|
32
|
-
* Please find the user information that owns the credentials based on the user name and password you received and return it.
|
|
33
|
-
* If the user who owns the credentials cannot be found, return null.
|
|
34
|
-
*
|
|
35
|
-
* Note that the user information must include an ID value that can identify the user.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* authenticate_user: async (username, password) => {
|
|
39
|
-
* const UserModel = require('../models/UserModel');
|
|
40
|
-
* return UserModel.findOne({
|
|
41
|
-
* where: {
|
|
42
|
-
* email: username,
|
|
43
|
-
* password: password
|
|
44
|
-
* },
|
|
45
|
-
* raw: true
|
|
46
|
-
* });
|
|
47
|
-
* }
|
|
48
|
-
*
|
|
49
|
-
* @type {(username: string, password: string) => Promise<{[key: string]: any}|null>}
|
|
50
|
-
*/
|
|
51
|
-
authenticate_user: (username: string, password: string) => Promise<{
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
} | null>;
|
|
54
|
-
/**
|
|
55
|
-
* This hook is called when user authentication is successful.
|
|
56
|
-
* Please search and return the authenticated user information to be set in the session based on the user ID of the parameter.
|
|
57
|
-
* The returned data will be set in the req.user property and the view's session variable.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
*
|
|
61
|
-
* subscribe_user: async (id) => {
|
|
62
|
-
* const UserModel = require('../models/UserModel');
|
|
63
|
-
* return UserModel.findOne({
|
|
64
|
-
* where: {id},
|
|
65
|
-
* raw: true
|
|
66
|
-
* });
|
|
67
|
-
* }
|
|
68
|
-
*
|
|
69
|
-
* @type {(id: number|string) => Promise<{[key: string]: any}>}
|
|
70
|
-
*/
|
|
71
|
-
subscribe_user: (id: number | string) => Promise<{
|
|
72
|
-
[key: string]: any;
|
|
73
|
-
}>;
|
|
74
|
-
/**
|
|
75
|
-
* URL without authentication. If the URL described in the access URL partially matches, authentication will not be performed, defaults to none.
|
|
76
|
-
* @type {string}
|
|
77
|
-
*/
|
|
78
|
-
allow_unauthenticated: string[];
|
|
79
|
-
/**
|
|
80
|
-
* Authenticated user session expiration, defaults to 24 hours (24 * 3600000).
|
|
81
|
-
* @type {number}
|
|
82
|
-
*/
|
|
83
|
-
expiration: number;
|
|
84
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bounding box interface for faces, labels, borders, etc.
|
|
3
|
-
*/
|
|
4
|
-
export default interface {
|
|
5
|
-
/**
|
|
6
|
-
* The width of the bounding box.
|
|
7
|
-
* @type {number}
|
|
8
|
-
*/
|
|
9
|
-
width: number;
|
|
10
|
-
/**
|
|
11
|
-
* The height of the bounding box.
|
|
12
|
-
* @type {number}
|
|
13
|
-
*/
|
|
14
|
-
height: number;
|
|
15
|
-
/**
|
|
16
|
-
* The x coordinate of the bounding box with the origin (0,0) in the upper left corner.
|
|
17
|
-
* @type {number}
|
|
18
|
-
*/
|
|
19
|
-
left: number;
|
|
20
|
-
/**
|
|
21
|
-
* The y coordinate of the bounding box with the origin (0,0) in the upper left corner.
|
|
22
|
-
* @type {number}
|
|
23
|
-
*/
|
|
24
|
-
top: number;
|
|
25
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Express Sweet basic configuration interface.
|
|
3
|
-
*/
|
|
4
|
-
export default interface {
|
|
5
|
-
/**
|
|
6
|
-
* Environment variable file (.env) path, defaults to none (undefined).
|
|
7
|
-
* @type {string}
|
|
8
|
-
*/
|
|
9
|
-
env_path?: string;
|
|
10
|
-
/**
|
|
11
|
-
* CORS permission, defaults to invalid (false).
|
|
12
|
-
* @type {{enabled: boolean}}
|
|
13
|
-
*/
|
|
14
|
-
cors_enabled?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Maximum body size you can request, defaults to `100kb`.
|
|
17
|
-
* @type {string|number}
|
|
18
|
-
*/
|
|
19
|
-
max_body_size?: string | number;
|
|
20
|
-
/**
|
|
21
|
-
* Absolute path to the router directory, defaults to `<application root directory>/routes`.
|
|
22
|
-
* @type {string}
|
|
23
|
-
*/
|
|
24
|
-
router_dir?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The endpoint to run when the root URL is requested, defaults to none (undefined).
|
|
27
|
-
* @type {string}
|
|
28
|
-
*/
|
|
29
|
-
default_router?: string;
|
|
30
|
-
/**
|
|
31
|
-
* This is a hook that rewrites the base URL.
|
|
32
|
-
* If you want to rewrite the app.locals.baseUrl property and the view's baseUrl variable, use this hook to return a new base URL.
|
|
33
|
-
* The default value is the referrer's origin (eg https://example.com).
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* rewrite_base_url: baseUrl => {
|
|
37
|
-
* return `${baseUrl}/admin`;
|
|
38
|
-
* }
|
|
39
|
-
*
|
|
40
|
-
* @type {(baseUrl: string): string}
|
|
41
|
-
*/
|
|
42
|
-
rewrite_base_url?: (baseUrl: string) => string;
|
|
43
|
-
/**
|
|
44
|
-
* This is a hook for error handling.
|
|
45
|
-
* For example, you can use it when you want to send an external notification of the error received by this hook.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* error_handler: async err => {
|
|
49
|
-
* // Notify system administrator of error.
|
|
50
|
-
* return new Promise((resolve, reject) => {
|
|
51
|
-
* const sendmail = require('sendmail')();
|
|
52
|
-
* sendmail({
|
|
53
|
-
* from: 'no-reply@example.com',
|
|
54
|
-
* to: 'administrator@example.com',
|
|
55
|
-
* subject: 'Error occurred',
|
|
56
|
-
* text: err.message
|
|
57
|
-
* }, err => {
|
|
58
|
-
* err ? reject(err) : resolve();
|
|
59
|
-
* });
|
|
60
|
-
* });
|
|
61
|
-
* }
|
|
62
|
-
*
|
|
63
|
-
* @type {(err: any): void|Promise<void>}
|
|
64
|
-
*/
|
|
65
|
-
error_handler?: (err: any) => void | Promise<void>;
|
|
66
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import BoundingBox from './BoundingBox';
|
|
2
|
-
/**
|
|
3
|
-
* This is the metadata structure of the bounding box coordinates, reliability (the bounding box contains a face), face ID, etc. returned by the searchFaces(), listFaces() methods, etc.
|
|
4
|
-
*/
|
|
5
|
-
export default interface {
|
|
6
|
-
/**
|
|
7
|
-
* A unique identifier assigned to the face.
|
|
8
|
-
* @type {string}
|
|
9
|
-
*/
|
|
10
|
-
faceId: string;
|
|
11
|
-
/**
|
|
12
|
-
* Bounding box of the face.
|
|
13
|
-
* width : Width of the bounding box as a ratio of the overall image width.
|
|
14
|
-
* height : Height of the bounding box as a ratio of the overall image height.
|
|
15
|
-
* left : Left coordinate of the bounding box as a ratio of overall image width.
|
|
16
|
-
* top : Top coordinate of the bounding box as a ratio of overall image height.
|
|
17
|
-
* @type {BoundingBox}
|
|
18
|
-
*/
|
|
19
|
-
boundingBox: BoundingBox;
|
|
20
|
-
/**
|
|
21
|
-
* Identifier that you assign to all the faces in the input image.
|
|
22
|
-
* @type {string}
|
|
23
|
-
*/
|
|
24
|
-
externalImageId?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Confidence in the match of this face with the input face.
|
|
27
|
-
* Valid Range: Minimum value of 0. Maximum value of 100.
|
|
28
|
-
* @type {number}
|
|
29
|
-
*/
|
|
30
|
-
similarity?: number;
|
|
31
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AWS Rekognition Client Optional Interface.
|
|
3
|
-
*/
|
|
4
|
-
export default interface {
|
|
5
|
-
/**
|
|
6
|
-
* Your AWS access key ID.
|
|
7
|
-
* @type {string}
|
|
8
|
-
*/
|
|
9
|
-
accessKeyId: string;
|
|
10
|
-
/**
|
|
11
|
-
* Your AWS secret access key.
|
|
12
|
-
* @type {string}
|
|
13
|
-
*/
|
|
14
|
-
secretAccessKey: string;
|
|
15
|
-
/**
|
|
16
|
-
* The region to send service requests to.
|
|
17
|
-
* @type {string}
|
|
18
|
-
*/
|
|
19
|
-
region: string;
|
|
20
|
-
/**
|
|
21
|
-
* Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds.
|
|
22
|
-
* The default is 5000 milliseconds.
|
|
23
|
-
* @type {number}
|
|
24
|
-
*/
|
|
25
|
-
timeout?: number;
|
|
26
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* View's configuration interface.
|
|
3
|
-
*/
|
|
4
|
-
export default interface {
|
|
5
|
-
/**
|
|
6
|
-
* Absolute path to the directory where the view files are located, defaults to `<application root directory>/views`.
|
|
7
|
-
* @type {string}
|
|
8
|
-
*/
|
|
9
|
-
views_dir?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Path to partials templates, one or several directories, defaults to `<application root directory>/views/partials`.
|
|
12
|
-
* @type {string|string[]}
|
|
13
|
-
*/
|
|
14
|
-
partials_dir?: string | string[];
|
|
15
|
-
/**
|
|
16
|
-
* Path to layout templates, defaults to `<application root directory>/views/layout`.
|
|
17
|
-
* @type {string}
|
|
18
|
-
*/
|
|
19
|
-
layouts_dir?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Absolute path to default layout template. defaults to `<application root directory>/views/layout/default.hbs`.
|
|
22
|
-
* @type {string}
|
|
23
|
-
*/
|
|
24
|
-
default_layout?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Extension for templates & partials, defaults to `.hbs`,
|
|
27
|
-
* @type {string}
|
|
28
|
-
*/
|
|
29
|
-
extension?: string;
|
|
30
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import AuthenticationOptions from './AuthenticationOptions';
|
|
2
|
-
import Config from './Config';
|
|
3
|
-
import DatabaseOptions from './DatabaseOptions';
|
|
4
|
-
import FaceMatch from './FaceMatch';
|
|
5
|
-
import BoundingBox from './BoundingBox';
|
|
6
|
-
import RekognitionOptions from './RekognitionOptions';
|
|
7
|
-
import ViewOptions from './ViewOptions';
|
|
8
|
-
export { AuthenticationOptions, Config, DatabaseOptions, FaceMatch, BoundingBox, RekognitionOptions, ViewOptions };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
/**
|
|
3
|
-
* Incorporate user authentication into your application.
|
|
4
|
-
*/
|
|
5
|
-
export default class {
|
|
6
|
-
/**
|
|
7
|
-
* Mount on application.
|
|
8
|
-
*/
|
|
9
|
-
static mount(app: express.Express): void;
|
|
10
|
-
/**
|
|
11
|
-
* Returns the option.
|
|
12
|
-
*
|
|
13
|
-
* @return {AuthenticationOptions} option.
|
|
14
|
-
*/
|
|
15
|
-
private static loadOptions;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
/**
|
|
3
|
-
* Enables the CORS.
|
|
4
|
-
*/
|
|
5
|
-
export default class {
|
|
6
|
-
/**
|
|
7
|
-
* Mount on application.
|
|
8
|
-
*/
|
|
9
|
-
static mount(app: express.Express): undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Returns the option.
|
|
12
|
-
*
|
|
13
|
-
* @return {Config} option.
|
|
14
|
-
*/
|
|
15
|
-
private static loadOptions;
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Set environment variables.
|
|
3
|
-
*
|
|
4
|
-
* Read the environment variable file in options.path and set it in "process.env".
|
|
5
|
-
*/
|
|
6
|
-
export default class {
|
|
7
|
-
/**
|
|
8
|
-
* Mount on application.
|
|
9
|
-
*/
|
|
10
|
-
static mount(): undefined;
|
|
11
|
-
/**
|
|
12
|
-
* Returns the option.
|
|
13
|
-
*
|
|
14
|
-
* @return {Config} option.
|
|
15
|
-
*/
|
|
16
|
-
private static loadOptions;
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
/**
|
|
3
|
-
* Error handling.
|
|
4
|
-
*/
|
|
5
|
-
export default class {
|
|
6
|
-
/**
|
|
7
|
-
* Mount on application.
|
|
8
|
-
*/
|
|
9
|
-
static mount(app: express.Express): void;
|
|
10
|
-
/**
|
|
11
|
-
* Returns the option.
|
|
12
|
-
*
|
|
13
|
-
* @return {Config} option.
|
|
14
|
-
*/
|
|
15
|
-
private static loadOptions;
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Set global variables.
|
|
3
|
-
* It can be accessed like "global.xxx" in all router and model classes.
|
|
4
|
-
*
|
|
5
|
-
* Below is a description of the variables.
|
|
6
|
-
* APP_DIR: The directory where app.js is located.
|
|
7
|
-
*/
|
|
8
|
-
export default class {
|
|
9
|
-
/**
|
|
10
|
-
* Mount on application.
|
|
11
|
-
*/
|
|
12
|
-
static mount(): void;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
/**
|
|
3
|
-
* Defines all the requisites in HTTP.
|
|
4
|
-
*/
|
|
5
|
-
export default class {
|
|
6
|
-
/**
|
|
7
|
-
* Mount on application.
|
|
8
|
-
*/
|
|
9
|
-
static mount(app: express.Express): void;
|
|
10
|
-
/**
|
|
11
|
-
* Returns the option.
|
|
12
|
-
*
|
|
13
|
-
* @return {Config} option.
|
|
14
|
-
*/
|
|
15
|
-
private static loadOptions;
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
/**
|
|
3
|
-
* Set local variables.
|
|
4
|
-
* It can be accessed in all views as {{var}} or {{{var}}}.
|
|
5
|
-
*
|
|
6
|
-
* Below is a description of the variables.
|
|
7
|
-
* baseUrl: The base URL for this application.
|
|
8
|
-
*/
|
|
9
|
-
export default class {
|
|
10
|
-
/**
|
|
11
|
-
* Mount on application.
|
|
12
|
-
*/
|
|
13
|
-
static mount(app: express.Express): void;
|
|
14
|
-
/**
|
|
15
|
-
* Returns the option.
|
|
16
|
-
*
|
|
17
|
-
* @return {Config} option.
|
|
18
|
-
*/
|
|
19
|
-
private static loadOptions;
|
|
20
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
/**
|
|
3
|
-
* Enable Handlebars template engine.
|
|
4
|
-
*/
|
|
5
|
-
export default class {
|
|
6
|
-
/**
|
|
7
|
-
* Mount on application.
|
|
8
|
-
*/
|
|
9
|
-
static mount(app: express.Express): void;
|
|
10
|
-
/**
|
|
11
|
-
* Returns the option.
|
|
12
|
-
*
|
|
13
|
-
* @return {ViewOptions} option.
|
|
14
|
-
*/
|
|
15
|
-
private static loadOptions;
|
|
16
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import CORS from './CORS';
|
|
2
|
-
import Environment from './Environment';
|
|
3
|
-
import Global from './Global';
|
|
4
|
-
import Http from './Http';
|
|
5
|
-
import Local from './Local';
|
|
6
|
-
import View from './View';
|
|
7
|
-
import ErrorHandling from './ErrorHandling';
|
|
8
|
-
export { CORS, Environment, Global, Http, Local, View, ErrorHandling };
|
package/types/mount.d.ts
DELETED
package/types/package.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export declare var name: string;
|
|
2
|
-
export declare var version: string;
|
|
3
|
-
export declare var description: string;
|
|
4
|
-
export declare var main: string;
|
|
5
|
-
export declare var module: string;
|
|
6
|
-
export declare var types: string;
|
|
7
|
-
export declare var files: string[];
|
|
8
|
-
export declare var scripts: {
|
|
9
|
-
watch: string;
|
|
10
|
-
prewatch: string;
|
|
11
|
-
build: string;
|
|
12
|
-
prebuild: string;
|
|
13
|
-
test: string;
|
|
14
|
-
start: string;
|
|
15
|
-
prestart: string;
|
|
16
|
-
};
|
|
17
|
-
export declare var _moduleAliases: {
|
|
18
|
-
"~": string;
|
|
19
|
-
};
|
|
20
|
-
export declare var repository: {
|
|
21
|
-
type: string;
|
|
22
|
-
url: string;
|
|
23
|
-
};
|
|
24
|
-
export declare var keywords: string[];
|
|
25
|
-
export declare var author: string;
|
|
26
|
-
export declare var license: string;
|
|
27
|
-
export declare var bugs: {
|
|
28
|
-
url: string;
|
|
29
|
-
email: string;
|
|
30
|
-
};
|
|
31
|
-
export declare var homepage: string;
|
|
32
|
-
export declare var dependencies: {
|
|
33
|
-
"aws-sdk": string;
|
|
34
|
-
"body-parser": string;
|
|
35
|
-
"class-transformer": string;
|
|
36
|
-
"class-validator": string;
|
|
37
|
-
"cookie-parser": string;
|
|
38
|
-
cors: string;
|
|
39
|
-
debug: string;
|
|
40
|
-
dotenv: string;
|
|
41
|
-
esm: string;
|
|
42
|
-
express: string;
|
|
43
|
-
"express-hbs": string;
|
|
44
|
-
"express-session": string;
|
|
45
|
-
"fs-extra": string;
|
|
46
|
-
glob: string;
|
|
47
|
-
hbs: string;
|
|
48
|
-
"http-errors": string;
|
|
49
|
-
ioredis: string;
|
|
50
|
-
mariadb: string;
|
|
51
|
-
"mime-types": string;
|
|
52
|
-
"module-alias": string;
|
|
53
|
-
moment: string;
|
|
54
|
-
morgan: string;
|
|
55
|
-
multer: string;
|
|
56
|
-
"nodejs-shared": string;
|
|
57
|
-
passport: string;
|
|
58
|
-
"passport-local": string;
|
|
59
|
-
"reflect-metadata": string;
|
|
60
|
-
sequelize: string;
|
|
61
|
-
uniqid: string;
|
|
62
|
-
};
|
|
63
|
-
export declare var devDependencies: {
|
|
64
|
-
"@types/aws-sdk": string;
|
|
65
|
-
"@types/cookie-parser": string;
|
|
66
|
-
"@types/debug": string;
|
|
67
|
-
"@types/express": string;
|
|
68
|
-
"@types/express-session": string;
|
|
69
|
-
"@types/http-errors": string;
|
|
70
|
-
"@types/ioredis": string;
|
|
71
|
-
"@types/jest": string;
|
|
72
|
-
"@types/multer": string;
|
|
73
|
-
"@types/node": string;
|
|
74
|
-
"@types/passport": string;
|
|
75
|
-
"@types/passport-local": string;
|
|
76
|
-
"@types/validator": string;
|
|
77
|
-
jest: string;
|
|
78
|
-
json2module: string;
|
|
79
|
-
rollup: string;
|
|
80
|
-
"rollup-plugin-commonjs": string;
|
|
81
|
-
"rollup-plugin-json": string;
|
|
82
|
-
"rollup-plugin-node-resolve": string;
|
|
83
|
-
"rollup-plugin-terser": string;
|
|
84
|
-
"rollup-plugin-typescript2": string;
|
|
85
|
-
"ts-loader": string;
|
|
86
|
-
"ts-node": string;
|
|
87
|
-
"tsc-alias": string;
|
|
88
|
-
"tsconfig-paths": string;
|
|
89
|
-
tslint: string;
|
|
90
|
-
typescript: string;
|
|
91
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
/**
|
|
3
|
-
* Set up URL routing.
|
|
4
|
-
*
|
|
5
|
-
* Define URL routing based on the path of the file in the routes directory.
|
|
6
|
-
* For example, if you have "routes/api/users.js", you can request the method in "user.js (ts)" with the base URL as "https:////api/users".
|
|
7
|
-
*/
|
|
8
|
-
export default class {
|
|
9
|
-
/**
|
|
10
|
-
* Mount on application.
|
|
11
|
-
*/
|
|
12
|
-
static mount(app: express.Express): void;
|
|
13
|
-
/**
|
|
14
|
-
* Returns the option.
|
|
15
|
-
*
|
|
16
|
-
* @return {Config} option.
|
|
17
|
-
*/
|
|
18
|
-
private static loadOptions;
|
|
19
|
-
}
|
package/types/routing/index.d.ts
DELETED