Skip to content

Commit

Permalink
feat: fix security vulnerability in sequelize and typing errors (#77)
Browse files Browse the repository at this point in the history
* fix: security vulnerability in sequelize and typing errors

* feat: build package after installation

* fix: add fresh yarn.lock file

* fix: revert script command

* fix: eslint typing error

* fix: jest not finding csv-parse module
  • Loading branch information
Amine27 authored Mar 16, 2023
1 parent 29a647d commit 0ae1c9d
Show file tree
Hide file tree
Showing 3 changed files with 5,558 additions and 5,105 deletions.
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
testEnvironment: 'node',
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
moduleNameMapper: {
'csv-parse': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
};
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
"devDependencies": {
"@types/jest": "^25.2.3",
"@types/node": "^14.14.37",
"@types/sequelize": "^4.28.9",
"@types/validator": "^13.1.3",
"@typescript-eslint/eslint-plugin": "^3.1.0",
"@typescript-eslint/parser": "^3.1.0",
"@typescript-eslint/eslint-plugin": "5.55.0",
"@typescript-eslint/parser": "5.55.0",
"casbin": "<=5.9.0 || >5.9.1",
"coveralls": "^3.1.0",
"eslint": "^7.2.0",
Expand All @@ -34,15 +33,15 @@
"rimraf": "^3.0.2",
"ts-jest": "^26.1.0",
"tslint": "^6.1.2",
"typescript": "^3.9.5"
"typescript": "^4.9.5"
},
"peerDependencies": {
"casbin": "<=5.9.0 || >5.9.1"
},
"dependencies": {
"reflect-metadata": "^0.1.13",
"sequelize": "6.10.0",
"sequelize-typescript": "2.1.2"
"sequelize": "6.29.3",
"sequelize-typescript": "2.1.5"
},
"files": [
"lib",
Expand Down
Loading

0 comments on commit 0ae1c9d

Please sign in to comment.