Skip to content

Commit 384818b

Browse files
authored
fix(security): vulnerabilities + remove coveralls (#1333)
1 parent 2e2bcfa commit 384818b

File tree

25 files changed

+2437
-2710
lines changed

25 files changed

+2437
-2710
lines changed

.circleci/config.yml

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ jobs:
133133
command: 'yarn workspace @requestnetwork/request-client.js run test --ci --maxWorkers=1'
134134
- store_test_results:
135135
path: packages/request-client.js/reports/
136-
- persist_to_workspace:
137-
root: *working_directory
138-
paths:
139-
- packages/request-client.js/coverage/
140136
test-data-access:
141137
docker:
142138
- *node_image
@@ -152,10 +148,6 @@ jobs:
152148
command: 'yarn workspace @requestnetwork/data-access run test --ci --maxWorkers=1'
153149
- store_test_results:
154150
path: packages/data-access/reports/
155-
- persist_to_workspace:
156-
root: *working_directory
157-
paths:
158-
- packages/data-access/coverage/
159151
test-data-format:
160152
docker:
161153
- *node_image
@@ -171,10 +163,6 @@ jobs:
171163
command: 'yarn workspace @requestnetwork/data-format run test --ci --maxWorkers=1'
172164
- store_test_results:
173165
path: packages/data-format/reports/
174-
- persist_to_workspace:
175-
root: *working_directory
176-
paths:
177-
- packages/data-format/coverage/
178166
test-transaction-manager:
179167
docker:
180168
- *node_image
@@ -190,10 +178,6 @@ jobs:
190178
command: 'yarn workspace @requestnetwork/transaction-manager run test --ci --maxWorkers=1'
191179
- store_test_results:
192180
path: packages/transaction-manager/reports/
193-
- persist_to_workspace:
194-
root: *working_directory
195-
paths:
196-
- packages/transaction-manager/coverage/
197181
test-ethereum-storage:
198182
docker:
199183
- *node_image
@@ -214,10 +198,6 @@ jobs:
214198
command: 'yarn workspace @requestnetwork/ethereum-storage run test --ci --maxWorkers=1'
215199
- store_test_results:
216200
path: packages/ethereum-storage/reports/
217-
- persist_to_workspace:
218-
root: *working_directory
219-
paths:
220-
- packages/ethereum-storage/coverage/
221201
test-smart-contracts:
222202
docker:
223203
- *node_image
@@ -253,10 +233,6 @@ jobs:
253233
command: 'yarn workspace @requestnetwork/request-logic run test --ci --maxWorkers=1'
254234
- store_test_results:
255235
path: packages/request-logic/reports/
256-
- persist_to_workspace:
257-
root: *working_directory
258-
paths:
259-
- packages/request-logic/coverage/
260236
test-advanced-logic:
261237
docker:
262238
- *node_image
@@ -272,10 +248,6 @@ jobs:
272248
command: 'yarn workspace @requestnetwork/advanced-logic run test --ci --maxWorkers=1'
273249
- store_test_results:
274250
path: packages/advanced-logic/reports/
275-
- persist_to_workspace:
276-
root: *working_directory
277-
paths:
278-
- packages/advanced-logic/coverage/
279251
test-request-node:
280252
docker:
281253
- *node_image
@@ -299,10 +271,6 @@ jobs:
299271
command: 'yarn workspace @requestnetwork/request-node run test --ci'
300272
- store_test_results:
301273
path: packages/request-node/reports/
302-
- persist_to_workspace:
303-
root: *working_directory
304-
paths:
305-
- packages/request-node/coverage/
306274
test-utils:
307275
docker:
308276
- *node_image
@@ -316,10 +284,6 @@ jobs:
316284
command: 'yarn workspace @requestnetwork/utils run test --ci --maxWorkers=1'
317285
- store_test_results:
318286
path: packages/utils/reports/
319-
- persist_to_workspace:
320-
root: *working_directory
321-
paths:
322-
- packages/utils/coverage/
323287
test-currency:
324288
docker:
325289
- *node_image
@@ -332,10 +296,6 @@ jobs:
332296
command: 'yarn workspace @requestnetwork/currency run test --ci --maxWorkers=1'
333297
- store_test_results:
334298
path: packages/currency/reports/
335-
- persist_to_workspace:
336-
root: *working_directory
337-
paths:
338-
- packages/currency/coverage/
339299
test-epk-signature:
340300
docker:
341301
- *node_image
@@ -351,10 +311,6 @@ jobs:
351311
command: 'yarn workspace @requestnetwork/epk-signature run test --ci --maxWorkers=1'
352312
- store_test_results:
353313
path: packages/epk-signature/reports/
354-
- persist_to_workspace:
355-
root: *working_directory
356-
paths:
357-
- packages/epk-signature/coverage/
358314
test-epk-decryption:
359315
docker:
360316
- *node_image
@@ -370,10 +326,6 @@ jobs:
370326
command: 'yarn workspace @requestnetwork/epk-decryption run test --ci --maxWorkers=1'
371327
- store_test_results:
372328
path: packages/epk-decryption/reports/
373-
- persist_to_workspace:
374-
root: *working_directory
375-
paths:
376-
- packages/epk-decryption/coverage/
377329
test-web3-signature:
378330
docker:
379331
- *node_image
@@ -389,10 +341,6 @@ jobs:
389341
command: 'yarn workspace @requestnetwork/web3-signature run test --ci --maxWorkers=1'
390342
- store_test_results:
391343
path: packages/web3-signature/reports/
392-
- persist_to_workspace:
393-
root: *working_directory
394-
paths:
395-
- packages/web3-signature/coverage/
396344
test-integration-test:
397345
docker:
398346
- *node_image
@@ -460,10 +408,6 @@ jobs:
460408
command: 'yarn workspace @requestnetwork/multi-format run test --ci --maxWorkers=1'
461409
- store_test_results:
462410
path: packages/multi-format/reports/
463-
- persist_to_workspace:
464-
root: *working_directory
465-
paths:
466-
- packages/multi-format/coverage/
467411
test-payment-detection:
468412
docker:
469413
- *node_image
@@ -483,10 +427,6 @@ jobs:
483427
command: 'yarn workspace @requestnetwork/payment-detection run test --ci'
484428
- store_test_results:
485429
path: packages/payment-detection/reports/
486-
- persist_to_workspace:
487-
root: *working_directory
488-
paths:
489-
- packages/payment-detection/coverage/
490430
test-payment-processor:
491431
docker:
492432
- *node_image
@@ -506,20 +446,6 @@ jobs:
506446
command: 'yarn workspace @requestnetwork/payment-processor run test --ci'
507447
- store_test_results:
508448
path: packages/payment-processor/reports/
509-
- persist_to_workspace:
510-
root: *working_directory
511-
paths:
512-
- packages/payment-processor/coverage/
513-
publish-coverage:
514-
docker:
515-
- *node_image
516-
working_directory: *working_directory
517-
steps:
518-
- attach_workspace:
519-
at: *working_directory
520-
- run:
521-
name: 'Publish Coverage'
522-
command: 'yarn publish-coverage'
523449
test-nightly:
524450
docker:
525451
- *node_image
@@ -657,29 +583,6 @@ workflows:
657583
requires:
658584
- build
659585

660-
# Publish the code coverage
661-
- publish-coverage:
662-
requires:
663-
- lint
664-
- test-advanced-logic
665-
- test-currency
666-
- test-data-access
667-
- test-data-format
668-
- test-epk-decryption
669-
- test-epk-signature
670-
- test-ethereum-storage
671-
- test-integration-test
672-
- test-multi-format
673-
- test-payment-detection
674-
- test-payment-processor
675-
- test-request-client
676-
- test-request-logic
677-
- test-request-node
678-
- test-smart-contracts
679-
- test-transaction-manager
680-
- test-utils
681-
- test-web3-signature
682-
683586
# Release a next version package everytime we merge to master
684587
- next-release:
685588
requires:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
---
44

55
[![CircleCI](https://img.shields.io/circleci/project/github/RequestNetwork/requestNetwork/master.svg)](https://circleci.com/gh/RequestNetwork/requestNetwork)
6-
[![Coverage Status](https://coveralls.io/repos/github/RequestNetwork/requestNetwork/badge.svg?branch=master)](https://coveralls.io/github/RequestNetwork/requestNetwork?branch=master)
76
[![Commit Activity](https://img.shields.io/github/commit-activity/m/RequestNetwork/requestNetwork.svg?color=green)](https://github.com/RequestNetwork/requestNetwork/pulse/monthly)
87

98
[Request][website-url] is a decentralized network built on top of Ethereum, which allows anyone, anywhere to request a payment. A full description of the protocol may be found in our [whitepaper][whitepaper-url].

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
module.exports = {
33
preset: 'ts-jest',
44
testEnvironment: 'node',
5-
collectCoverage: true,
65
reporters: [
76
'default',
87
[

package.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"lint-staged": "lint-staged",
2424
"lerna": "lerna",
2525
"packageJsonLint": "npmPkgJsonLint ./packages",
26-
"publish-coverage": "mkdir -p ./coverage && node scripts/collect.js && nyc merge ./coverage ./coverage/coverage.json && node scripts/remap.js && cat coverage/lcov.info | coveralls",
2726
"publish-npm": "lerna publish --conventional-commits --exact",
2827
"publish-manual-prerelease": "lerna publish prerelease --conventional-commits --exact",
2928
"publish-prerelease": "yarn lerna publish --preid development --skip-git --yes --canary",
@@ -36,21 +35,30 @@
3635
"devDependencies": {
3736
"@typescript-eslint/eslint-plugin": "4.18.0",
3837
"@typescript-eslint/parser": "4.18.0",
39-
"coveralls": "3.1.0",
4038
"eslint": "7.22.0",
4139
"eslint-config-prettier": "8.1.0",
4240
"eslint-plugin-import": "2.22.1",
4341
"eslint-plugin-jsdoc": "32.3.0",
4442
"eslint-plugin-monorepo": "0.3.2",
4543
"eslint-plugin-prefer-arrow": "1.2.3",
4644
"husky": "8.0.1",
47-
"lerna": "3.22.1",
45+
"lerna": "6.6.2",
4846
"lint-staged": "10.5.4",
4947
"npm-package-json-lint": "5.1.0",
50-
"nyc": "15.1.0",
5148
"prettier": "3.0.3",
5249
"prettier-plugin-solidity": "1.0.0-beta.19",
53-
"remap-istanbul": "0.13.0",
5450
"typescript": "5.1.3"
51+
},
52+
"resolutions": {
53+
"underscore": "^1.12.1",
54+
"crypto-js": "^4.2.0",
55+
"minimist": "^0.2.4",
56+
"semver": "^7.5.4"
57+
},
58+
"resolutionsDocs": {
59+
"underscore": "https://github.com/RequestNetwork/requestNetwork/security/dependabot/14",
60+
"crypto-js": "https://github.com/RequestNetwork/requestNetwork/security/dependabot/207",
61+
"minimist": "https://github.com/RequestNetwork/requestNetwork/security/dependabot/177",
62+
"semver": "https://github.com/RequestNetwork/requestNetwork/security/dependabot/197"
5563
}
5664
}

packages/advanced-logic/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"@types/node": "18.11.9",
5050
"jest": "29.5.0",
5151
"jest-junit": "16.0.0",
52-
"nyc": "15.1.0",
5352
"shx": "0.3.2",
5453
"ts-jest": "29.1.0",
5554
"ts-node": "10.9.1",

packages/data-access/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"@types/node": "18.11.9",
5050
"jest": "29.5.0",
5151
"jest-junit": "16.0.0",
52-
"nyc": "15.1.0",
5352
"shx": "0.3.2",
5453
"source-map-support": "0.5.19",
5554
"ts-jest": "29.1.0",

packages/data-format/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"devDependencies": {
4848
"@types/node": "18.11.9",
4949
"jest-junit": "16.0.0",
50-
"nyc": "15.1.0",
5150
"rimraf": "3.0.2",
5251
"shx": "0.3.2",
5352
"ts-node": "10.9.1",

packages/epk-decryption/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"jest": "29.5.0",
5555
"jest-junit": "16.0.0",
5656
"npm-run-all": "4.1.5",
57-
"nyc": "15.1.0",
5857
"shx": "0.3.2",
5958
"source-map-support": "0.5.19",
6059
"stream-browserify": "3.0.0",

packages/epk-signature/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"jest": "29.5.0",
5454
"jest-junit": "16.0.0",
5555
"npm-run-all": "4.1.5",
56-
"nyc": "15.1.0",
5756
"shx": "0.3.2",
5857
"source-map-support": "0.5.19",
5958
"stream-browserify": "3.0.0",

packages/ethereum-storage/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"jest": "29.5.0",
5959
"jest-junit": "16.0.0",
6060
"msw": "2.0.6",
61-
"nyc": "15.1.0",
6261
"shx": "0.3.2",
6362
"solium": "1.2.5",
6463
"source-map-support": "0.5.19",

0 commit comments

Comments
 (0)