diff --git a/package-lock.json b/package-lock.json index 51e962ae4..d5592a9f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1282,9 +1282,9 @@ } }, "@nestjs/common": { - "version": "6.11.5", - "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-6.11.5.tgz", - "integrity": "sha512-pCM3aK876ubnJS9g/ni44BpzNU3sja+dTw61H3VkYJTq1tBWjhn50fAe5ezTXEZPND4pG8HAO3gjdHFanEXH2g==", + "version": "6.11.6", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-6.11.6.tgz", + "integrity": "sha512-KUqXIklIivO7O7V7bELZLRthBqK+KPzCy4Zt0CWHfmoW3fuxnBKEE3hEqt9awWP3l2GeLCakYi472F3BFLGL5Q==", "dev": true, "requires": { "axios": "0.19.2", @@ -1302,9 +1302,9 @@ } }, "@nestjs/core": { - "version": "6.11.5", - "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-6.11.5.tgz", - "integrity": "sha512-UFtMZBFXeNdSH3wdv9czCSZMO47nPcsauANf8xrzYP9m3amEOhhEMR+FIjwuFXZ5RralsLuz+U2LcaChWZjSHg==", + "version": "6.11.6", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-6.11.6.tgz", + "integrity": "sha512-jFMpr2wspGMVs7ddhkIG0vjXt+4OdOb5wLBCw1+D7P01FxeC2XB9et1BWwx9prHo0uScePfkIkgTIRjlxwkPZg==", "dev": true, "requires": { "@nuxtjs/opencollective": "0.2.2", @@ -1325,9 +1325,9 @@ } }, "@nestjs/platform-express": { - "version": "6.11.5", - "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-6.11.5.tgz", - "integrity": "sha512-kPbUzlo7eN68LesTQ3Y1siJ1BJZo2DUINqdrv92hPv834nTX9P36+Ee4LNGHmO8I4vCdRweudrurxAYntuN+gw==", + "version": "6.11.6", + "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-6.11.6.tgz", + "integrity": "sha512-+W63WZA1n8Z6xLGjDsahk21xJU11L1s/1dYDD5DYYt7di7h6JNlKAluwfp57eUbbRN6usT+wr0rGLYU8vbRJQA==", "dev": true, "requires": { "body-parser": "1.19.0", @@ -1338,9 +1338,9 @@ } }, "@nestjs/platform-fastify": { - "version": "6.11.5", - "resolved": "https://registry.npmjs.org/@nestjs/platform-fastify/-/platform-fastify-6.11.5.tgz", - "integrity": "sha512-cvqmFCvVzFTcLH1bmWuUp7d1WxL6DJjqdQo+t9wcN96eIGP0xV+XeQ4Jc/D2CJNWJoqhh/FxVAPWWbCVa36nGg==", + "version": "6.11.6", + "resolved": "https://registry.npmjs.org/@nestjs/platform-fastify/-/platform-fastify-6.11.6.tgz", + "integrity": "sha512-RDBCeGZ+SOqXgkKGdIXnNcsRbv7LUIpwBvmJW+kJ4hhSBhrLA9WBGEsh79K1XyF0Eder7jFiYKAEF+7tQulCxQ==", "dev": true, "requires": { "fastify": "2.11.0", @@ -1611,9 +1611,9 @@ } }, "@types/jest": { - "version": "25.1.1", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-25.1.1.tgz", - "integrity": "sha512-bKSZJYZJLzwaoVYNN4W3A0RvKNYsrLm5tsuXaMlfYDxKf4gY2sFrMYneCugNQWGg1gjPW+FHBwNrwPzEi4sIsw==", + "version": "25.1.2", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-25.1.2.tgz", + "integrity": "sha512-EsPIgEsonlXmYV7GzUqcvORsSS9Gqxw/OvkGwHfAdpjduNRxMlhsav0O5Kb0zijc/eXSO/uW6SJt9nwull8AUQ==", "dev": true, "requires": { "jest-diff": "^25.1.0", @@ -1657,9 +1657,9 @@ "dev": true }, "@types/yargs": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.2.tgz", - "integrity": "sha512-hFkuAp58M2xOc1QgJhkFrLMnqa8KWTFRTnzrI1zlEcOfg3DZ0eH3aPAo/N6QlVVu8E4KS4xD1jtEG3rdQYFmIg==", + "version": "15.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.3.tgz", + "integrity": "sha512-XCMQRK6kfpNBixHLyHUsGmXrpEmFFxzMrcnSXFMziHd8CoNJo8l16FkHyQq4x+xbM7E2XL83/O78OD8u+iZTdQ==", "dev": true, "requires": { "@types/yargs-parser": "*" @@ -3926,14 +3926,34 @@ "dev": true }, "fast-json-stringify": { - "version": "1.16.2", - "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-1.16.2.tgz", - "integrity": "sha512-DDB+C5mAZ5RhN6fmgRJcKUwhscevRlDrbIV+Q/eEZ3mAyBNjms/qxpLMlDsTf8U3K8d+yObuMdAsxnIVhCbkvA==", + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-1.16.3.tgz", + "integrity": "sha512-FSb9SrdvqgxICQyJf74T1xSRRpAsHTb7Sv2mD81v6URXlsOo3+/x0ATwMu5Cm8LXxkHsrwuVr6soTGj9Hc9pXg==", "dev": true, "requires": { - "ajv": "^6.10.2", - "deepmerge": "^4.0.0", + "ajv": "^6.11.0", + "deepmerge": "^4.2.2", "string-similarity": "^4.0.1" + }, + "dependencies": { + "ajv": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz", + "integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "fast-deep-equal": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", + "dev": true + } } }, "fast-levenshtein": { @@ -7802,9 +7822,9 @@ } }, "light-my-request": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/light-my-request/-/light-my-request-3.7.0.tgz", - "integrity": "sha512-4avdwnTZdK6S7l4he1vt96mvZ0PexrqKJacvp8kYfzSS6Kk8/rpMtlWMlIoHQ7WsIn3utKSt5HwvZJCPFmuhlw==", + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/light-my-request/-/light-my-request-3.7.1.tgz", + "integrity": "sha512-GxfIH347ObYtJJ+NnRzBnQeGlnuG+ThA3D4HvGOwB+cjw490wO/8YhkfxpyqOQtP9uE5XmhXyozVayftswu/sA==", "dev": true, "requires": { "ajv": "^6.10.2", diff --git a/package.json b/package.json index 08f04f927..4a5c2c196 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,11 @@ "devDependencies": { "@commitlint/cli": "8.3.5", "@commitlint/config-angular": "8.3.4", - "@nestjs/common": "6.11.5", - "@nestjs/core": "6.11.5", - "@nestjs/platform-express": "6.11.5", - "@nestjs/platform-fastify": "6.11.5", - "@types/jest": "25.1.1", + "@nestjs/common": "6.11.6", + "@nestjs/core": "6.11.6", + "@nestjs/platform-express": "6.11.6", + "@nestjs/platform-fastify": "6.11.6", + "@types/jest": "25.1.2", "@types/lodash": "4.14.149", "@types/node": "11.15.0", "express": "4.17.1", diff --git a/test/plugin/controller-class-visitor.spec.ts b/test/plugin/controller-class-visitor.spec.ts index 63377cf7f..5cc4fbfce 100644 --- a/test/plugin/controller-class-visitor.spec.ts +++ b/test/plugin/controller-class-visitor.spec.ts @@ -10,6 +10,7 @@ describe('Controller methods', () => { const options: ts.CompilerOptions = { module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ESNext, + newLine: ts.NewLineKind.LineFeed, noEmitHelpers: true }; const filename = 'app.controller.ts'; diff --git a/test/plugin/model-class-visitor.spec.ts b/test/plugin/model-class-visitor.spec.ts index 13db0a893..5aa317e33 100644 --- a/test/plugin/model-class-visitor.spec.ts +++ b/test/plugin/model-class-visitor.spec.ts @@ -22,6 +22,7 @@ describe('API model properties', () => { const options: ts.CompilerOptions = { module: ts.ModuleKind.ESNext, target: ts.ScriptTarget.ESNext, + newLine: ts.NewLineKind.LineFeed, noEmitHelpers: true }; const filename = 'create-cat.dto.ts'; @@ -41,6 +42,7 @@ describe('API model properties', () => { const options: ts.CompilerOptions = { module: ts.ModuleKind.ESNext, target: ts.ScriptTarget.ESNext, + newLine: ts.NewLineKind.LineFeed, noEmitHelpers: true }; const filename = 'create-cat.dto.ts'; @@ -60,6 +62,7 @@ describe('API model properties', () => { const options: ts.CompilerOptions = { module: ts.ModuleKind.ESNext, target: ts.ScriptTarget.ESNext, + newLine: ts.NewLineKind.LineFeed, noEmitHelpers: true }; const filename = 'create-cat-alt2.dto.ts'; @@ -79,6 +82,7 @@ describe('API model properties', () => { const options: ts.CompilerOptions = { module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES5, + newLine: ts.NewLineKind.LineFeed, noEmitHelpers: true }; const filename = 'es5-class.dto.ts';