Skip to content

Commit

Permalink
build: update envalid to fix npm audit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanVerbner committed Jan 30, 2024
1 parent 0fbba16 commit 3fcbfb9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 23 deletions.
2 changes: 1 addition & 1 deletion cardano-rosetta-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@emurgo/cardano-serialization-lib-nodejs": "11.1.1",
"cbor": "5.1.0",
"dotenv": "8.2.0",
"envalid": "6.0.2",
"envalid": "^8.0.0",
"execa": "4.0.3",
"fastify": "2.15.1",
"fastify-blipp": "2.3.1",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions cardano-rosetta-server/src/server/utils/environment-parser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import envalid, { host, makeValidator, num, str, bool } from 'envalid';
import { cleanEnv, host, makeValidator, num, str, bool } from 'envalid';
/* eslint-disable no-console */
import fs from 'fs';
import path from 'path';
Expand Down Expand Up @@ -29,7 +29,7 @@ const existingFileValidator = makeValidator((filePath: string) => {
});

export const parseEnvironment = (): Environment => {
const environment = envalid.cleanEnv(process.env, {
const environment = cleanEnv(process.env, {
PORT: num(),
BIND_ADDRESS: host(),
DB_CONNECTION_STRING: str(),
Expand Down
32 changes: 12 additions & 20 deletions cardano-rosetta-server/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ doctrine@^3.0.0:
dependencies:
esutils "^2.0.2"

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

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

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

husky@^9.0.7:
[email protected]:
version "9.0.7"
resolved "https://registry.yarnpkg.com/husky/-/husky-9.0.7.tgz#047f24ec1b6c681206af714b4217c13ee97fff20"
integrity sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==
Expand Down Expand Up @@ -3493,11 +3490,6 @@ map-obj@^1.0.0, map-obj@^1.0.1:
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"
integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=

meant@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/meant/-/meant-1.0.2.tgz#5d0c78310a3d8ae1408a16be0fe0bd42a969f560"
integrity sha512-KN+1uowN/NK+sT/Lzx7WSGIj2u+3xe5n2LbwObfjOhPZiA+cCfCm6idVl0RkEfjThkw5XJ96CyRcanq6GmKtUg==

meow@^3.3.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb"
Expand Down Expand Up @@ -4893,6 +4885,11 @@ tsconfig@^7.0.0:
strip-bom "^3.0.0"
strip-json-comments "^2.0.0"

[email protected]:
version "2.6.2"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==

tslib@^1.9.0:
version "1.13.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043"
Expand Down Expand Up @@ -4997,11 +4994,6 @@ validator@^12.0.0:
resolved "https://registry.yarnpkg.com/validator/-/validator-12.2.0.tgz#660d47e96267033fd070096c3b1a6f2db4380a0a"
integrity sha512-jJfE/DW6tIK1Ek8nCfNFqt8Wb3nzMoAbocBF6/Icgg1ZFSBpObdnwVY2jQj6qUqzhx5jc71fpvBWyLGO7Xl+nQ==

validator@^13.0.0:
version "13.1.1"
resolved "https://registry.yarnpkg.com/validator/-/validator-13.1.1.tgz#f8811368473d2173a9d8611572b58c5783f223bf"
integrity sha512-8GfPiwzzRoWTg7OV1zva1KvrSemuMkv07MA9TTl91hfhe+wKrsrgVN4H2QSFd/U/FhiU3iWPYVgvbsOGwhyFWw==

walker@^1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f"
Expand Down

0 comments on commit 3fcbfb9

Please sign in to comment.