Skip to content

Commit

Permalink
chore: add pnpm audit to the CI and update deps (#457)
Browse files Browse the repository at this point in the history
* chore: add pnpm audit to the CI and update deps

* fix: add axios module to moduleNameMapper in jest.config.js

* fix: add missing type in validation

* chore: add changeset

---------

Co-authored-by: Hassan Ben Jobrane <[email protected]>
  • Loading branch information
dbarrosop and onehassan authored Jan 11, 2024
1 parent 011516e commit 68aa985
Show file tree
Hide file tree
Showing 7 changed files with 2,492 additions and 2,646 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-hounds-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'hasura-auth': patch
---

chore: add pnpm audit to the CI and update deps
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dev: check-port dev-env-up ## Start development environment.

.PHONY: test
test: check-port dev-env-up ## Run end-to-end tests.
pnpm audit
pnpm test

.PHONY: check-port
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

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

3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
moduleNameMapper: {
'^@config$': '<rootDir>/src/config',
'^@/(.*)$': '<rootDir>/src/$1',
axios: require.resolve('axios'),
},
testPathIgnorePatterns: [
'<rootDir>/dist/',
Expand All @@ -17,4 +18,4 @@ module.exports = {
setupFilesAfterEnv: ['jest-extended'],
preset: 'ts-jest',
testEnvironment: 'node',
}
};
110 changes: 61 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,92 +23,92 @@
"changeset": "changeset"
},
"dependencies": {
"@djgrant/postgres-migrations": "^4.1.0-rc.1",
"@simplewebauthn/server": "^5.3.0",
"axios": "0.21.1",
"@djgrant/postgres-migrations": "4.1.0-rc.1",
"@simplewebauthn/server": "^5.4.5",
"axios": "^1.6.5",
"bcryptjs": "^2.4.3",
"body-parser": "1.19.0",
"compare-urls": "^2.0.0",
"cors": "2.8.5",
"dot-prop": "^6.0.1",
"dotenv": "8.2.0",
"email-templates": "^10.0.0",
"email-templates": "^10.0.1",
"email-validator": "^2.0.4",
"express": "4.17.1",
"express-jsdoc-swagger": "^1.6.7",
"express-jsdoc-swagger": "^1.8.0",
"express-session": "^1.17.3",
"express-winston": "^4.2.0",
"grant": "^5.4.21",
"grant": "^5.4.22",
"graphql": "16.2.0",
"graphql-request": "^3.7.0",
"graphql-tag": "2.12.6",
"gravatar": "^1.8.1",
"gravatar": "^1.8.2",
"helmet": "3.22.0",
"hibp": "9.0.0",
"http-status-codes": "^2.2.0",
"joi": "^17.4.0",
"joi-to-swagger": "^6.0.1",
"jose": "4.8.3",
"http-status-codes": "^2.3.0",
"joi": "^17.11.0",
"joi-to-swagger": "^6.2.0",
"jose": "^5.2.0",
"js-yaml": "3.13.1",
"json-to-graphql-query": "^2.2.0",
"jsonata": "^1.8.5",
"jsonwebtoken": "^8.5.1",
"libphonenumber-js": "^1.10.6",
"json-to-graphql-query": "^2.2.5",
"jsonata": "^1.8.6",
"jsonwebtoken": "^9.0.2",
"libphonenumber-js": "^1.10.53",
"micromatch": "^4.0.5",
"nocache": "^2.1.0",
"node-fetch": "^2.6.1",
"node-fetch": "^2.7.0",
"nodemailer": "6.9.3",
"otplib": "12.0.1",
"pascal-case": "^3.1.2",
"pg": "^8.6.0",
"pg": "^8.11.3",
"postinstall-postinstall": "^2.1.0",
"qrcode": "1.4.4",
"random-number-csprng": "^1.0.2",
"twilio": "^3.67.1",
"twilio": "^3.84.1",
"url-join": "^4.0.1",
"uuid": "7.0.3",
"winston": "^3.8.2"
"winston": "^3.11.0"
},
"devDependencies": {
"@changesets/cli": "^2.25.2",
"@commitlint/cli": "^16.0.2",
"@commitlint/config-conventional": "^16.0.0",
"@graphql-codegen/add": "^3.1.1",
"@graphql-codegen/cli": "^2.13.7",
"@graphql-codegen/typescript": "^2.8.0",
"@graphql-codegen/typescript-graphql-request": "^4.5.7",
"@graphql-codegen/typescript-operations": "^2.5.5",
"@simplewebauthn/typescript-types": "^5.3.0",
"@types/bcryptjs": "^2.4.2",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@graphql-codegen/add": "^3.2.3",
"@graphql-codegen/cli": "^2.16.5",
"@graphql-codegen/typescript": "^2.8.8",
"@graphql-codegen/typescript-graphql-request": "^4.5.9",
"@graphql-codegen/typescript-operations": "^2.5.13",
"@simplewebauthn/typescript-types": "^5.4.0",
"@types/bcryptjs": "^2.4.6",
"@types/body-parser": "1.19.0",
"@types/cors": "2.8.6",
"@types/ejs": "3.0.2",
"@types/email-templates": "7.0.1",
"@types/express": "4.17.6",
"@types/express-session": "^1.17.5",
"@types/faker": "^5.5.7",
"@types/gravatar": "^1.8.1",
"@types/express-session": "^1.17.10",
"@types/faker": "^5.5.9",
"@types/gravatar": "^1.8.6",
"@types/hapi__joi": "16.0.12",
"@types/helmet": "0.0.45",
"@types/jest": "^27.4.0",
"@types/micromatch": "^4.0.2",
"@types/jest": "^27.5.2",
"@types/jsonwebtoken": "^8.5.9",
"@types/node": "^17.0.9",
"@types/node-fetch": "^2.5.7",
"@types/micromatch": "^4.0.6",
"@types/node": "^17.0.45",
"@types/node-fetch": "^2.6.10",
"@types/nodemailer": "6.4.0",
"@types/pg": "^7.14.11",
"@types/qrcode": "1.3.4",
"@types/random-number-csprng": "^1.0.0",
"@types/rfc2047": "^2.0.1",
"@types/supertest": "^2.0.8",
"@types/swagger-ui-express": "^4.1.3",
"@types/url-join": "^4.0.1",
"@types/random-number-csprng": "^1.0.2",
"@types/rfc2047": "^2.0.3",
"@types/supertest": "^2.0.16",
"@types/swagger-ui-express": "^4.1.6",
"@types/url-join": "^4.0.3",
"@types/uuid": "7.0.2",
"@typescript-eslint/eslint-plugin": "2.28.0",
"@typescript-eslint/parser": "2.28.0",
"@vuepress/plugin-back-to-top": "1.4.1",
"codecov": "^3.7.1",
"commitizen": "^4.2.4",
"codecov": "^3.8.3",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "3.1.0",
"dotenv-cli": "^4.1.1",
"eslint": "6.8.0",
Expand All @@ -117,19 +117,19 @@
"eslint-plugin-prettier": "3.1.3",
"faker": "^5.5.3",
"get-port": "^5.1.1",
"git-cz": "^4.8.0",
"git-cz": "^4.9.0",
"husky": "^7.0.4",
"jest": "^27.4.7",
"jest": "^27.5.1",
"jest-extended": "0.11.5",
"lint-staged": "10.1.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"prettier": "^2.8.8",
"rfc2047": "^3.0.1",
"rimraf": "^3.0.2",
"supertest": "^6.1.6",
"ts-jest": "^27.1.3",
"supertest": "^6.3.3",
"ts-jest": "^27.1.5",
"ts-node-dev": "^1.1.8",
"tsc-alias": "^1.5.0",
"tsc-alias": "^1.8.8",
"tsconfig-paths": "3.12.0",
"typescript": "4.5.4"
},
Expand All @@ -150,5 +150,17 @@
]
]
}
},
"pnpm": {
"overrides": {
"jsonwebtoken@<=8.5.1": ">=9.0.0",
"jsonwebtoken@<9.0.0": ">=9.0.0",
"jose@>=4.0.0 <=4.9.1": ">=4.9.2",
"qs@>=6.7.0 <6.7.3": ">=6.7.3",
"axios@>=0.8.1 <1.6.0": ">=1.6.0",
"axios@<0.21.2": ">=0.21.2",
"semver@<5.7.2": ">=5.7.2",
"semver@>=7.0.0 <7.5.2": ">=7.5.2"
}
}
}
Loading

0 comments on commit 68aa985

Please sign in to comment.