Skip to content

Commit 77976bb

Browse files
jauntybraincabljac
authored andcommitted
fix(firestore-bigquery-export): resolve npm vulnerabilities (#2050)
* fix(firestore-bigquery-export): json-bigint & node-forge vulnerabilities * fix: try bumping jest dependency * chore: update node version * chore: add `skipLibCheck` * chore: update @types/jest to the newest version * fix: attempt at fixing jest issues * chore: migrate to @jest/globals * chore: formatting * chore: add jest-environment-jsdom dependency * Update jest-environment-jsdom to jest-environment-node * chore: set all jest packages to the same ver (29.5.0) * chore: update jest configuration and dependencies * chore: enable verbose jest logging * fix: standartize jest and ts-jest versions * fix: jest config snapshotFormat * chore: update firebase-functions-test version to 3.2.0 * chore: firebase-functions version to 4.9.0 * chore: bring back bq tests * chore: bump firebase-functions-test, migrate * chore: fix formatting * fix(firestore-bigquery-export): bring back @types/jest, resolve all vulnerabilities * chore: cleanup * chore(auth-mailchimp-sync): bump dependencies, fix vulnerabilities * chore(delete-user-data): bump dependencies, fix vulnerabilities * chore(firestore-counter): bump dependencies, fix vulnerabilities
1 parent ea8fa83 commit 77976bb

File tree

34 files changed

+68730
-107777
lines changed

34 files changed

+68730
-107777
lines changed

auth-mailchimp-sync/functions/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ module.exports = {
99
tsConfig: "<rootDir>/__tests__/tsconfig.json",
1010
},
1111
},
12+
snapshotFormat: {
13+
escapeString: true,
14+
printBasicPrototype: true,
15+
},
1216
testEnvironment: "node",
1317
preset: "ts-jest",
1418
globalSetup: "./jest.setup.js",

auth-mailchimp-sync/functions/package-lock.json

Lines changed: 4498 additions & 9440 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auth-mailchimp-sync/functions/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,17 @@
1111
"generate-readme": "firebase ext:info .. --markdown > ../README.md"
1212
},
1313
"dependencies": {
14-
"firebase-admin": "^11.4.1",
15-
"firebase-functions": "^4.2.0",
16-
17-
"mailchimp-api-v3": "^1.12.1",
18-
"typescript": "^4.4.4",
14+
"firebase-admin": "^12.1.0",
15+
"firebase-functions": "^4.9.0",
16+
"mailchimp-api-v3": "^1.15.0",
17+
"typescript": "^4.8.4",
1918
"rimraf": "^2.6.3"
2019
},
2120
"devDependencies": {
22-
"firebase-functions-test": "^0.1.7",
23-
"@types/jest": "^24.0.18",
24-
"jest": "^24.9.0",
25-
"ts-jest": "^24.1.0"
21+
"firebase-functions-test": "^3.2.0",
22+
"@types/jest": "29.5.0",
23+
"jest": "29.5.0",
24+
"ts-jest": "29.1.2"
2625
},
2726
"engines": {
2827
"node": "18"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "lib",
5+
"target": "ES2020"
6+
},
37
"include": ["**/*"]
48
}

delete-user-data/functions/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ module.exports = {
1212
"<rootDir>/node_modules/firebase-admin/lib/firestore",
1313
"firebase-admin/auth": "<rootDir>/node_modules/firebase-admin/lib/auth",
1414
},
15+
snapshotFormat: {
16+
escapeString: true,
17+
printBasicPrototype: true,
18+
},
1519
};

0 commit comments

Comments
 (0)