Skip to content

Commit 3fcbfb9

Browse files
committed
build: update envalid to fix npm audit issues
1 parent 0fbba16 commit 3fcbfb9

File tree

8 files changed

+15
-23
lines changed

8 files changed

+15
-23
lines changed

cardano-rosetta-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"@emurgo/cardano-serialization-lib-nodejs": "11.1.1",
7777
"cbor": "5.1.0",
7878
"dotenv": "8.2.0",
79-
"envalid": "6.0.2",
79+
"envalid": "^8.0.0",
8080
"execa": "4.0.3",
8181
"fastify": "2.15.1",
8282
"fastify-blipp": "2.3.1",
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

cardano-rosetta-server/src/server/utils/environment-parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import envalid, { host, makeValidator, num, str, bool } from 'envalid';
1+
import { cleanEnv, host, makeValidator, num, str, bool } from 'envalid';
22
/* eslint-disable no-console */
33
import fs from 'fs';
44
import path from 'path';
@@ -29,7 +29,7 @@ const existingFileValidator = makeValidator((filePath: string) => {
2929
});
3030

3131
export const parseEnvironment = (): Environment => {
32-
const environment = envalid.cleanEnv(process.env, {
32+
const environment = cleanEnv(process.env, {
3333
PORT: num(),
3434
BIND_ADDRESS: host(),
3535
DB_CONNECTION_STRING: str(),

cardano-rosetta-server/yarn.lock

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ doctrine@^3.0.0:
17791779
dependencies:
17801780
esutils "^2.0.2"
17811781

1782-
[email protected], dotenv@^8.2.0:
1782+
17831783
version "8.2.0"
17841784
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
17851785
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
@@ -1835,15 +1835,12 @@ enquirer@^2.3.5:
18351835
dependencies:
18361836
ansi-colors "^4.1.1"
18371837

1838-
envalid@6.0.2:
1839-
version "6.0.2"
1840-
resolved "https://registry.yarnpkg.com/envalid/-/envalid-6.0.2.tgz#7139770e089acc945c0e47b5075d72915d8683e8"
1841-
integrity sha512-ChJb9a5rjwZ/NkcXfBrzEl5cFZaGLg38N7MlWJkv5qsmSypX2WJe28LkoAWcklC60nKZXYKRlBbsjuJSjYw0Xg==
1838+
envalid@^8.0.0:
1839+
version "8.0.0"
1840+
resolved "https://registry.yarnpkg.com/envalid/-/envalid-8.0.0.tgz#2314451e18e88051c98540ab60640e330279e486"
1841+
integrity sha512-PGeYJnJB5naN0ME6SH8nFcDj9HVbLpYIfg1p5lAyM9T4cH2lwtu2fLbozC/bq+HUUOIFxhX/LP0/GmlqPHT4tQ==
18421842
dependencies:
1843-
chalk "^3.0.0"
1844-
dotenv "^8.2.0"
1845-
meant "^1.0.1"
1846-
validator "^13.0.0"
1843+
tslib "2.6.2"
18471844

18481845
error-ex@^1.2.0, error-ex@^1.3.1:
18491846
version "1.3.2"
@@ -2566,7 +2563,7 @@ human-signals@^2.1.0:
25662563
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
25672564
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
25682565

2569-
husky@^9.0.7:
2566+
25702567
version "9.0.7"
25712568
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.7.tgz#047f24ec1b6c681206af714b4217c13ee97fff20"
25722569
integrity sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==
@@ -3493,11 +3490,6 @@ map-obj@^1.0.0, map-obj@^1.0.1:
34933490
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"
34943491
integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=
34953492

3496-
meant@^1.0.1:
3497-
version "1.0.2"
3498-
resolved "https://registry.yarnpkg.com/meant/-/meant-1.0.2.tgz#5d0c78310a3d8ae1408a16be0fe0bd42a969f560"
3499-
integrity sha512-KN+1uowN/NK+sT/Lzx7WSGIj2u+3xe5n2LbwObfjOhPZiA+cCfCm6idVl0RkEfjThkw5XJ96CyRcanq6GmKtUg==
3500-
35013493
meow@^3.3.0:
35023494
version "3.7.0"
35033495
resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb"
@@ -4893,6 +4885,11 @@ tsconfig@^7.0.0:
48934885
strip-bom "^3.0.0"
48944886
strip-json-comments "^2.0.0"
48954887

4888+
4889+
version "2.6.2"
4890+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
4891+
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
4892+
48964893
tslib@^1.9.0:
48974894
version "1.13.0"
48984895
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043"
@@ -4997,11 +4994,6 @@ validator@^12.0.0:
49974994
resolved "https://registry.yarnpkg.com/validator/-/validator-12.2.0.tgz#660d47e96267033fd070096c3b1a6f2db4380a0a"
49984995
integrity sha512-jJfE/DW6tIK1Ek8nCfNFqt8Wb3nzMoAbocBF6/Icgg1ZFSBpObdnwVY2jQj6qUqzhx5jc71fpvBWyLGO7Xl+nQ==
49994996

5000-
validator@^13.0.0:
5001-
version "13.1.1"
5002-
resolved "https://registry.yarnpkg.com/validator/-/validator-13.1.1.tgz#f8811368473d2173a9d8611572b58c5783f223bf"
5003-
integrity sha512-8GfPiwzzRoWTg7OV1zva1KvrSemuMkv07MA9TTl91hfhe+wKrsrgVN4H2QSFd/U/FhiU3iWPYVgvbsOGwhyFWw==
5004-
50054997
walker@^1.0.8:
50064998
version "1.0.8"
50074999
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f"

0 commit comments

Comments
 (0)