@darraghor/nest-backend-libs 2.14.3 → 2.15.0
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/dist/cli/cli.js +24 -4
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/commands/WriteApiClientCommand.d.ts +1 -1
- package/dist/cli/commands/WriteApiClientCommand.js +2 -1
- package/dist/cli/commands/WriteApiClientCommand.js.map +1 -1
- package/dist/health/Health.controller.d.ts +8 -0
- package/dist/health/Health.controller.js +49 -0
- package/dist/health/Health.controller.js.map +1 -0
- package/dist/health/Health.module.d.ts +2 -0
- package/dist/health/Health.module.js +22 -0
- package/dist/health/Health.module.js.map +1 -0
- package/dist/root-app/core-app.module.js +5 -0
- package/dist/root-app/core-app.module.js.map +1 -1
- package/package.json +21 -19
package/dist/cli/cli.js
CHANGED
|
@@ -1,13 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
5
25
|
};
|
|
6
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
27
|
require("reflect-metadata");
|
|
8
|
-
const
|
|
28
|
+
const yargs = __importStar(require("yargs"));
|
|
9
29
|
const WriteApiClientCommand_1 = require("./commands/WriteApiClientCommand");
|
|
10
|
-
void
|
|
30
|
+
void yargs
|
|
11
31
|
.usage("Usage: $0 <command> [options]")
|
|
12
32
|
.command(new WriteApiClientCommand_1.WriteApiClientCommand())
|
|
13
33
|
.recommendCommands()
|
package/dist/cli/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4BAA0B;AAC1B,6CAA+B;AAC/B,4EAAuE;AAEvE,KAAK,KAAK;KACL,KAAK,CAAC,+BAA+B,CAAC;KACtC,OAAO,CAAC,IAAI,6CAAqB,EAAE,CAAC;KACpC,iBAAiB,EAAE;KACnB,aAAa,CAAC,CAAC,CAAC;KAChB,MAAM,EAAE;KACR,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC;KACrB,IAAI,CAAC,GAAG,CAAC;KACT,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -20,6 +20,6 @@ export declare class WriteApiClientCommand implements yargs.CommandModule<Argume
|
|
|
20
20
|
} & {
|
|
21
21
|
packageName: string;
|
|
22
22
|
}>;
|
|
23
|
-
handler(args: yargs.ArgumentsCamelCase<
|
|
23
|
+
handler(args: yargs.ArgumentsCamelCase<any>): Promise<void>;
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -37,7 +37,8 @@ class WriteApiClientCommand {
|
|
|
37
37
|
}
|
|
38
38
|
async handler(
|
|
39
39
|
// eslint-disable-next-line unicorn/prevent-abbreviations
|
|
40
|
-
args
|
|
40
|
+
args // this breaks if i use ArgumentsType but change back for dev
|
|
41
|
+
) {
|
|
41
42
|
// call the script
|
|
42
43
|
console.log("Starting api client write. Please be patient. This might take a minute...");
|
|
43
44
|
const execPromise = util_1.default.promisify(child_process_1.exec);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WriteApiClientCommand.js","sourceRoot":"","sources":["../../../src/cli/commands/WriteApiClientCommand.ts"],"names":[],"mappings":";;;;;;AAEA,iDAAmC;AACnC,gDAAgD;AAChD,gDAAwB;AACxB,gDAAwB;AAaxB,MAAa,qBAAqB;IAG9B,OAAO,GAAG,kBAAkB,CAAC;IAC7B,QAAQ,GACJ,qFAAqF,CAAC;IAE1F,yDAAyD;IACzD,OAAO,CAAC,IAAgB;QACpB,OAAO,IAAI;aACN,MAAM,CAAC,GAAG,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,8BAA8B;YACvC,QAAQ,EAAE,gDAAgD;SAC7D,CAAC;aACD,MAAM,CAAC,QAAQ,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,qBAAqB;YAC9B,QAAQ,EAAE,wCAAwC;SACrD,CAAC;aACD,MAAM,CAAC,QAAQ,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAwB;YACjC,QAAQ,EAAE,gDAAgD;SAC7D,CAAC;aACD,MAAM,CAAC,aAAa,EAAE;YACnB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,mCAAmC;SAChD,CAAC,CAAC;IACX,CAAC;IAED,KAAK,CAAC,OAAO;IACT,yDAAyD;IACzD,
|
|
1
|
+
{"version":3,"file":"WriteApiClientCommand.js","sourceRoot":"","sources":["../../../src/cli/commands/WriteApiClientCommand.ts"],"names":[],"mappings":";;;;;;AAEA,iDAAmC;AACnC,gDAAgD;AAChD,gDAAwB;AACxB,gDAAwB;AAaxB,MAAa,qBAAqB;IAG9B,OAAO,GAAG,kBAAkB,CAAC;IAC7B,QAAQ,GACJ,qFAAqF,CAAC;IAE1F,yDAAyD;IACzD,OAAO,CAAC,IAAgB;QACpB,OAAO,IAAI;aACN,MAAM,CAAC,GAAG,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,8BAA8B;YACvC,QAAQ,EAAE,gDAAgD;SAC7D,CAAC;aACD,MAAM,CAAC,QAAQ,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,qBAAqB;YAC9B,QAAQ,EAAE,wCAAwC;SACrD,CAAC;aACD,MAAM,CAAC,QAAQ,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAwB;YACjC,QAAQ,EAAE,gDAAgD;SAC7D,CAAC;aACD,MAAM,CAAC,aAAa,EAAE;YACnB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,mCAAmC;SAChD,CAAC,CAAC;IACX,CAAC;IAED,KAAK,CAAC,OAAO;IACT,yDAAyD;IACzD,IAAmC,CAAC,6DAA6D;;QAEjG,kBAAkB;QAClB,OAAO,CAAC,GAAG,CACP,2EAA2E,CAC9E,CAAC;QACF,MAAM,WAAW,GAAG,cAAI,CAAC,SAAS,CAAC,oBAAI,CAAC,CAAC;QACzC,MAAM,gBAAgB,GAAG;YACrB,IAAI,CAAC,CAAC;YACN,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,WAAW;SACnB,CAAC;QACF,8BAA8B;QAC9B,6DAA6D;QAE7D,MAAM,UAAU,GAAG,cAAI,CAAC,IAAI;QACxB,kDAAkD;QAClD,SAAS,EACT,uCAAuC,CAC1C,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,WAAW,CAC5B,GAAG,UAAU,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAChD,CAAC;QAEF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;CACJ;AA7DD,sDA6DC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HealthCheckService, HttpHealthIndicator, HealthCheckResult, TypeOrmHealthIndicator } from "@nestjs/terminus";
|
|
2
|
+
export declare class HealthController {
|
|
3
|
+
private health;
|
|
4
|
+
private http;
|
|
5
|
+
private database;
|
|
6
|
+
constructor(health: HealthCheckService, http: HttpHealthIndicator, database: TypeOrmHealthIndicator);
|
|
7
|
+
check(): Promise<HealthCheckResult>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HealthController = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const terminus_1 = require("@nestjs/terminus");
|
|
16
|
+
let HealthController = class HealthController {
|
|
17
|
+
health;
|
|
18
|
+
http;
|
|
19
|
+
database;
|
|
20
|
+
constructor(health, http, database) {
|
|
21
|
+
this.health = health;
|
|
22
|
+
this.http = http;
|
|
23
|
+
this.database = database;
|
|
24
|
+
}
|
|
25
|
+
async check() {
|
|
26
|
+
return this.health.check([
|
|
27
|
+
() => this.http.pingCheck("frontend-app", process.env.FRONTEND_APP_URL || "http://localhost"),
|
|
28
|
+
() => this.http.pingCheck("backend-api", process.env.BACKEND_APP_URL || "http://localhost"),
|
|
29
|
+
() => this.database.pingCheck("app-database"),
|
|
30
|
+
]);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, common_1.Get)(),
|
|
35
|
+
(0, terminus_1.HealthCheck)(),
|
|
36
|
+
(0, swagger_1.ApiOkResponse)(),
|
|
37
|
+
__metadata("design:type", Function),
|
|
38
|
+
__metadata("design:paramtypes", []),
|
|
39
|
+
__metadata("design:returntype", Promise)
|
|
40
|
+
], HealthController.prototype, "check", null);
|
|
41
|
+
HealthController = __decorate([
|
|
42
|
+
(0, common_1.Controller)("health"),
|
|
43
|
+
(0, swagger_1.ApiTags)("Application Support"),
|
|
44
|
+
__metadata("design:paramtypes", [terminus_1.HealthCheckService,
|
|
45
|
+
terminus_1.HttpHealthIndicator,
|
|
46
|
+
terminus_1.TypeOrmHealthIndicator])
|
|
47
|
+
], HealthController);
|
|
48
|
+
exports.HealthController = HealthController;
|
|
49
|
+
//# sourceMappingURL=Health.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Health.controller.js","sourceRoot":"","sources":["../../src/health/Health.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA+C;AAC/C,6CAAuD;AACvD,+CAM0B;AAInB,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAEb;IACA;IACA;IAHZ,YACY,MAA0B,EAC1B,IAAyB,EACzB,QAAgC;QAFhC,WAAM,GAAN,MAAM,CAAoB;QAC1B,SAAI,GAAJ,IAAI,CAAqB;QACzB,aAAQ,GAAR,QAAQ,CAAwB;IACzC,CAAC;IAKE,AAAN,KAAK,CAAC,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YACrB,GAAG,EAAE,CACD,IAAI,CAAC,IAAI,CAAC,SAAS,CACf,cAAc,EACd,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,kBAAkB,CACrD;YACL,GAAG,EAAE,CACD,IAAI,CAAC,IAAI,CAAC,SAAS,CACf,aAAa,EACb,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,kBAAkB,CACpD;YACL,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,cAAc,CAAC;SAChD,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAfS;IAHL,IAAA,YAAG,GAAE;IACL,IAAA,sBAAW,GAAE;IACb,IAAA,uBAAa,GAAE;;;;6CAef;AAxBQ,gBAAgB;IAF5B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACpB,IAAA,iBAAO,EAAC,qBAAqB,CAAC;qCAGP,6BAAkB;QACpB,8BAAmB;QACf,iCAAsB;GAJnC,gBAAgB,CAyB5B;AAzBY,4CAAgB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.HealthModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const terminus_1 = require("@nestjs/terminus");
|
|
12
|
+
const Health_controller_1 = require("./Health.controller");
|
|
13
|
+
let HealthModule = class HealthModule {
|
|
14
|
+
};
|
|
15
|
+
HealthModule = __decorate([
|
|
16
|
+
(0, common_1.Module)({
|
|
17
|
+
imports: [terminus_1.TerminusModule],
|
|
18
|
+
controllers: [Health_controller_1.HealthController],
|
|
19
|
+
})
|
|
20
|
+
], HealthModule);
|
|
21
|
+
exports.HealthModule = HealthModule;
|
|
22
|
+
//# sourceMappingURL=Health.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Health.module.js","sourceRoot":"","sources":["../../src/health/Health.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,+CAAgD;AAChD,2DAAqD;AAM9C,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,YAAY;IAJxB,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,yBAAc,CAAC;QACzB,WAAW,EAAE,CAAC,oCAAgB,CAAC;KAClC,CAAC;GACW,YAAY,CAAG;AAAf,oCAAY"}
|
|
@@ -14,6 +14,7 @@ exports.CoreModule = void 0;
|
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
15
15
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
16
16
|
require("reflect-metadata");
|
|
17
|
+
const helmet_1 = __importDefault(require("helmet"));
|
|
17
18
|
const common_1 = require("@nestjs/common");
|
|
18
19
|
const logger_module_1 = require("../logger/logger.module");
|
|
19
20
|
const app_controller_1 = require("./app.controller");
|
|
@@ -26,6 +27,7 @@ const LoggingInterceptor_1 = require("../logger/LoggingInterceptor");
|
|
|
26
27
|
const CoreConfig_module_1 = require("../core-config/CoreConfig.module");
|
|
27
28
|
const config_1 = require("@nestjs/config");
|
|
28
29
|
const bull_1 = require("@nestjs/bull");
|
|
30
|
+
const Health_module_1 = require("../health/Health.module");
|
|
29
31
|
let CoreModule = class CoreModule {
|
|
30
32
|
static initApplication(
|
|
31
33
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types,@typescript-eslint/no-explicit-any
|
|
@@ -41,6 +43,7 @@ let CoreModule = class CoreModule {
|
|
|
41
43
|
const loggerService = app.get(CoreLoggerService_1.default);
|
|
42
44
|
const configService = app.get(CoreConfigurationService_1.CoreConfigurationService);
|
|
43
45
|
app.useLogger(loggerService);
|
|
46
|
+
app.use((0, helmet_1.default)());
|
|
44
47
|
app.enableCors({ origin: configService.frontEndAppUrl });
|
|
45
48
|
app.useGlobalPipes(new common_1.ValidationPipe({
|
|
46
49
|
transform: true,
|
|
@@ -54,6 +57,7 @@ let CoreModule = class CoreModule {
|
|
|
54
57
|
swaggerGen.generate(app, "open-api/swagger.json");
|
|
55
58
|
loggerService.log(`will listen on port ${configService.webPort} (DEV: http://localhost:${configService.webPort} )`);
|
|
56
59
|
loggerService.log(`swagger will be available at (DEV: http://localhost:${configService.webPort}/swagger )`);
|
|
60
|
+
app.enableShutdownHooks();
|
|
57
61
|
await callback(app);
|
|
58
62
|
}
|
|
59
63
|
catch (initialisationError) {
|
|
@@ -84,6 +88,7 @@ CoreModule = __decorate([
|
|
|
84
88
|
},
|
|
85
89
|
inject: [CoreConfigurationService_1.CoreConfigurationService],
|
|
86
90
|
}),
|
|
91
|
+
Health_module_1.HealthModule,
|
|
87
92
|
],
|
|
88
93
|
controllers: [app_controller_1.AppController],
|
|
89
94
|
providers: [app_service_1.AppService, SwaggerGen_1.SwaggerGen],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-app.module.js","sourceRoot":"","sources":["../../src/root-app/core-app.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAsD;AACtD,+DAA+D;A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AAU,EAAE,KAAK,EACb,aAAuC;gBAEvC,4DAA4D;kBAC9D,EAAE;oBACA,OAAO;wBACH,KAAK,EAAE,aAAa,CAAC,aAAa;qBACrC,CAAC;gBACN,CAAC;gBACD,MAAM,EAAE,CAAC,mDAAwB,CAAC;aACrC,CAAC;YACF,4BAAY;SACf;QACD,WAAW,EAAE,CAAC,8BAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,wBAAU,EAAE,uBAAU,CAAC;QACnC,OAAO,EAAE,CAAC,uBAAU,EAAE,iBAAU,CAAC;KACpC,CAAC;GACW,UAAU,CAuDtB;AAvDY,gCAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darraghor/nest-backend-libs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"description": "Some helpers for personal projects in nestjs",
|
|
6
6
|
"homepage": "https://github.com/darraghoriordan/nest-backend-libs",
|
|
@@ -53,61 +53,63 @@
|
|
|
53
53
|
"@nestjs/typeorm": "^9.0.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@nestjs/
|
|
57
|
-
"@nestjs/
|
|
58
|
-
"@nestjs/
|
|
59
|
-
"@nestjs/
|
|
60
|
-
"@nestjs/
|
|
56
|
+
"@nestjs/axios": "2.0.0",
|
|
57
|
+
"@nestjs/common": "^9.3.2",
|
|
58
|
+
"@nestjs/config": "^2.3.0",
|
|
59
|
+
"@nestjs/core": "^9.3.2",
|
|
60
|
+
"@nestjs/passport": "^9.0.1",
|
|
61
|
+
"@nestjs/platform-express": "^9.3.2",
|
|
61
62
|
"@nestjs/swagger": "^6.1.4",
|
|
63
|
+
"@nestjs/terminus": "9.2.0",
|
|
62
64
|
"@nestjs/typeorm": "^9.0.0",
|
|
63
65
|
"auth0": "3.1.2",
|
|
64
|
-
"
|
|
66
|
+
"bull": "4.10.3",
|
|
67
|
+
"chalk": "5.2.0",
|
|
65
68
|
"class-transformer": "0.5.1",
|
|
66
69
|
"class-validator": "0.14.0",
|
|
67
70
|
"date-fns": "2.29.3",
|
|
68
71
|
"dotenv": "16.0.3",
|
|
72
|
+
"helmet": "6.0.1",
|
|
69
73
|
"jwks-rsa": "3.0.1",
|
|
70
74
|
"nodemailer": "6.9.1",
|
|
71
75
|
"passport": "0.6.0",
|
|
72
76
|
"passport-jwt": "4.0.1",
|
|
73
|
-
"pg": "8.
|
|
77
|
+
"pg": "8.9.0",
|
|
74
78
|
"reflect-metadata": "0.1.13",
|
|
75
79
|
"res": "^0.4.0",
|
|
76
80
|
"resource": "0.8.1",
|
|
77
81
|
"rimraf": "4.1.2",
|
|
78
82
|
"rxjs": "7.8.0",
|
|
79
|
-
"stripe": "11.
|
|
83
|
+
"stripe": "11.9.1",
|
|
80
84
|
"swagger-ui-express": "4.6.0",
|
|
81
85
|
"tslog": "3.3.4",
|
|
82
|
-
"twitter-api-v2": "1.14.
|
|
83
|
-
"typeorm": "^0.3.11"
|
|
84
|
-
"bull": "4.10.2"
|
|
86
|
+
"twitter-api-v2": "1.14.1",
|
|
87
|
+
"typeorm": "^0.3.11"
|
|
85
88
|
},
|
|
86
89
|
"devDependencies": {
|
|
87
90
|
"@commitlint/cli": "17.4.2",
|
|
88
91
|
"@commitlint/config-conventional": "17.4.2",
|
|
89
92
|
"@darraghor/eslint-plugin-nestjs-typed": "3.18.0",
|
|
90
93
|
"@nestjs/bull": "0.6.2",
|
|
91
|
-
"@nestjs/cli": "9.
|
|
94
|
+
"@nestjs/cli": "9.2.0",
|
|
92
95
|
"@nestjs/schematics": "^9.0.4",
|
|
93
96
|
"@semantic-release/changelog": "6.0.2",
|
|
94
97
|
"@semantic-release/exec": "6.0.3",
|
|
95
98
|
"@types/auth0": "2.35.9",
|
|
96
|
-
"@types/express": "4.17.
|
|
99
|
+
"@types/express": "4.17.17",
|
|
97
100
|
"@types/jest": "29.4.0",
|
|
98
101
|
"@types/node": "18.11.18",
|
|
99
102
|
"@types/nodemailer": "6.4.7",
|
|
100
103
|
"@types/passport-jwt": "3.0.8",
|
|
101
|
-
"@types/rimraf": "3.0.2",
|
|
102
104
|
"@types/supertest": "2.0.12",
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
104
|
-
"@typescript-eslint/parser": "5.
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "5.50.0",
|
|
106
|
+
"@typescript-eslint/parser": "5.50.0",
|
|
105
107
|
"copyfiles": "2.4.1",
|
|
106
108
|
"eslint": "8.26.0",
|
|
107
109
|
"eslint-config-prettier": "8.6.0",
|
|
108
110
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
109
111
|
"eslint-plugin-jest": "27.2.1",
|
|
110
|
-
"eslint-plugin-jsdoc": "39.
|
|
112
|
+
"eslint-plugin-jsdoc": "39.8.0",
|
|
111
113
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
112
114
|
"eslint-plugin-promise": "6.1.1",
|
|
113
115
|
"eslint-plugin-sonarjs": "0.18.0",
|
|
@@ -122,7 +124,7 @@
|
|
|
122
124
|
"ts-loader": "9.4.2",
|
|
123
125
|
"ts-node": "10.9.1",
|
|
124
126
|
"tsconfig-paths": "4.1.2",
|
|
125
|
-
"typescript": "4.9.
|
|
127
|
+
"typescript": "4.9.5"
|
|
126
128
|
},
|
|
127
129
|
"lint-staged": {
|
|
128
130
|
"*.ts": "eslint --cache --fix",
|