Skip to content

Commit a3c1bdc

Browse files
chore: update bundle
1 parent 25a3684 commit a3c1bdc

86 files changed

Lines changed: 3983 additions & 4797 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bundle/common/cache/interfaces/cache-module.interface.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ModuleMetadata, Type } from './../../interfaces';
1+
import { ModuleMetadata, Type } from '../../interfaces';
22
import { CacheManagerOptions } from './cache-manager.interface';
33
export interface CacheModuleOptions extends CacheManagerOptions {
44
[key: string]: any;

bundle/common/constants.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export declare const metadata: {
1+
export declare const METADATA: {
22
MODULES: string;
33
IMPORTS: string;
44
COMPONENTS: string;

bundle/common/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.metadata = {
3+
exports.METADATA = {
44
MODULES: 'modules',
55
IMPORTS: 'imports',
66
COMPONENTS: 'components',

bundle/common/decorators/modules/module.decorator.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
require("reflect-metadata");
43
const deprecate = require("deprecate");
4+
require("reflect-metadata");
55
const constants_1 = require("../../constants");
66
const invalid_module_config_exception_1 = require("./exceptions/invalid-module-config.exception");
77
const metadataKeys = [
8-
constants_1.metadata.MODULES,
9-
constants_1.metadata.IMPORTS,
10-
constants_1.metadata.EXPORTS,
11-
constants_1.metadata.COMPONENTS,
12-
constants_1.metadata.CONTROLLERS,
13-
constants_1.metadata.PROVIDERS,
8+
constants_1.METADATA.MODULES,
9+
constants_1.METADATA.IMPORTS,
10+
constants_1.METADATA.EXPORTS,
11+
constants_1.METADATA.COMPONENTS,
12+
constants_1.METADATA.CONTROLLERS,
13+
constants_1.METADATA.PROVIDERS,
1414
];
1515
const validateKeys = (keys) => {
1616
const isKeyInvalid = key => metadataKeys.findIndex(k => k === key) < 0;
@@ -54,8 +54,8 @@ function overrideModuleMetadata(moduleMetadata) {
5454
: moduleMetadata.components;
5555
}
5656
function showDeprecatedWarnings(moduleMetadata) {
57-
const modulesDeprecatedWarning = 'The "modules" key in the @Module() decorator is deprecated and will be removed within next major release. Use the "imports" key instead.';
58-
const componentsDeprecatetWarning = 'The "components" key in the @Module() decorator is deprecated and will be removed within next major release. Use the "providers" key instead.';
59-
moduleMetadata.modules && deprecate(modulesDeprecatedWarning);
60-
moduleMetadata.components && deprecate(componentsDeprecatetWarning);
57+
const MODULES_DEPRECATED_WARNING = 'The "modules" key in the @Module() decorator is deprecated and will be removed within next major release. Use the "imports" key instead.';
58+
const COMPONENTS_DEPRECATED_WARNING = 'The "components" key in the @Module() decorator is deprecated and will be removed within next major release. Use the "providers" key instead.';
59+
moduleMetadata.modules && deprecate(MODULES_DEPRECATED_WARNING);
60+
moduleMetadata.components && deprecate(COMPONENTS_DEPRECATED_WARNING);
6161
}

bundle/common/exceptions/bad-gateway.exception.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object.defineProperty(exports, "__esModule", { value: true });
33
const http_exception_1 = require("./http.exception");
44
const http_status_enum_1 = require("../enums/http-status.enum");
5-
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
5+
const http_exception_body_util_1 = require("../utils/http-exception-body.util");
66
class BadGatewayException extends http_exception_1.HttpException {
77
constructor(message, error = 'Bad Gateway') {
88
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.BAD_GATEWAY), http_status_enum_1.HttpStatus.BAD_GATEWAY);

bundle/common/exceptions/bad-request.exception.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object.defineProperty(exports, "__esModule", { value: true });
33
const http_exception_1 = require("./http.exception");
44
const http_status_enum_1 = require("../enums/http-status.enum");
5-
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
5+
const http_exception_body_util_1 = require("../utils/http-exception-body.util");
66
class BadRequestException extends http_exception_1.HttpException {
77
constructor(message, error = 'Bad Request') {
88
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.BAD_REQUEST), http_status_enum_1.HttpStatus.BAD_REQUEST);

bundle/common/exceptions/conflict.exception.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object.defineProperty(exports, "__esModule", { value: true });
33
const http_exception_1 = require("./http.exception");
44
const http_status_enum_1 = require("../enums/http-status.enum");
5-
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
5+
const http_exception_body_util_1 = require("../utils/http-exception-body.util");
66
class ConflictException extends http_exception_1.HttpException {
77
constructor(message, error = 'Conflict') {
88
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.CONFLICT), http_status_enum_1.HttpStatus.CONFLICT);

bundle/common/exceptions/forbidden.exception.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object.defineProperty(exports, "__esModule", { value: true });
33
const http_exception_1 = require("./http.exception");
44
const http_status_enum_1 = require("../enums/http-status.enum");
5-
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
5+
const http_exception_body_util_1 = require("../utils/http-exception-body.util");
66
class ForbiddenException extends http_exception_1.HttpException {
77
constructor(message, error = 'Forbidden') {
88
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.FORBIDDEN), http_status_enum_1.HttpStatus.FORBIDDEN);

bundle/common/exceptions/gateway-timeout.exception.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object.defineProperty(exports, "__esModule", { value: true });
33
const http_exception_1 = require("./http.exception");
44
const http_status_enum_1 = require("../enums/http-status.enum");
5-
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
5+
const http_exception_body_util_1 = require("../utils/http-exception-body.util");
66
class GatewayTimeoutException extends http_exception_1.HttpException {
77
constructor(message, error = 'Gateway Timeout') {
88
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.GATEWAY_TIMEOUT), http_status_enum_1.HttpStatus.GATEWAY_TIMEOUT);

bundle/common/exceptions/gone.exception.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object.defineProperty(exports, "__esModule", { value: true });
33
const http_exception_1 = require("./http.exception");
44
const http_status_enum_1 = require("../enums/http-status.enum");
5-
const http_exception_body_util_1 = require("./../utils/http-exception-body.util");
5+
const http_exception_body_util_1 = require("../utils/http-exception-body.util");
66
class GoneException extends http_exception_1.HttpException {
77
constructor(message, error = 'Gone') {
88
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.GONE), http_status_enum_1.HttpStatus.GONE);

0 commit comments

Comments
 (0)