Skip to content

Commit

Permalink
fix: fixed the prettier issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatG committed Jul 10, 2023
1 parent 1495ad8 commit 43a2182
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 34 deletions.
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
},
"dependencies": {
"@nestjs/axios": "^3.0.0",
"@nestjs/common": "^10.0.0",
"@nestjs/common": "^10.0.5",
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/core": "^10.0.5",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.0.11",
"@nestjs/platform-express": "^10.0.5",
"@nestjs/swagger": "^7.1.1",
"@nestjs/terminus": "^10.0.1",
"@nestjs/typeorm": "^10.0.0",
"axios": "^1.4.0",
Expand All @@ -41,21 +41,21 @@
"passport": "^0.6.0",
"passport-headerapikey": "^1.2.2",
"pino-http": "^8.3.3",
"pino-pretty": "^10.0.0",
"pino-pretty": "^10.0.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1",
"tsconfig-paths": "^4.2.0",
"tslib": "^2.5.3",
"tslib": "^2.6.0",
"typeorm": "^0.3.17",
"typeorm-extension": "^2.8.1",
"typescript": "^5.1.6"
},
"devDependencies": {
"@commitlint/cli": "^17.6.5",
"@commitlint/config-conventional": "^17.6.5",
"@nestjs/cli": "^10.1.3",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@nestjs/cli": "^10.1.7",
"@nestjs/schematics": "^10.0.1",
"@nestjs/testing": "^10.0.5",
"@tsconfig/node20": "^1.0.2",
"@types/chance": "^1.1.3",
"@types/compression": "^1.7.2",
Expand All @@ -67,7 +67,7 @@
"@typescript-eslint/parser": "^5.61.0",
"chance": "^1.1.11",
"cspell": "^6.31.1",
"eslint": "^8.43.0",
"eslint": "^8.44.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-airbnb-typescript-prettier": "^5.0.0",
Expand All @@ -90,7 +90,7 @@
"jest-when": "^3.5.2",
"lint-staged": "^13.2.3",
"nock": "^13.3.1",
"prettier": "^3.0.0",
"prettier": "^2.8.8",
"sort-package-json": "^2.5.1",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
Expand Down
5 changes: 2 additions & 3 deletions src/helpers/regex.helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// This helper function is used to convert the regex pattern to a string so that it can be used in the swagger documentation.
export const regexToString = (regex: RegExp): string => {
return regex.toString().replace(/^\/|\/$/g, '');
};

return regex.toString().replace(/^\/|\/$/g, '');
};

0 comments on commit 43a2182

Please sign in to comment.