Skip to content

Commit

Permalink
build(deps): bump depedencies (#4)
Browse files Browse the repository at this point in the history
Bump dependency which fixes backend bug.

---------

Signed-off-by: Luca Georges Francois <[email protected]>
  • Loading branch information
0xpanoramix authored May 18, 2024
1 parent 473da24 commit e152187
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"class-validator": "^0.14.1",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1",
"viem": "^2.9.32"
"viem": "^2.10.9"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
Expand Down
23 changes: 13 additions & 10 deletions backend/src/positions/positions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,21 @@ export class PositionsService {

const res: ListPositionsRO = {};

// Note that we don't use Promise.all here because for some reason viem does not work properly in that case.
for (const [chainID, resolvers] of store) {
const positions: PositionsPerProtocol = {};
await Promise.all(
[...store.entries()].map(async ([chainID, resolvers]) => {
const positions: PositionsPerProtocol = {};

for (const resolver of resolvers) {
const resolverPositions =
await resolver.findAllPositions<ResolverPositionExtra>(owner);
positions[resolver.getProtocolName()] = resolverPositions;
}
await Promise.all(
resolvers.map(async (resolver) => {
const resolverPositions =
await resolver.findAllPositions<ResolverPositionExtra>(owner);
positions[resolver.getProtocolName()] = resolverPositions;
}),
);

res[chainID] = positions;
}
res[chainID] = positions;
}),
);

return res;
}
Expand Down
18 changes: 9 additions & 9 deletions backend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2981,10 +2981,10 @@ isexe@^2.0.0:
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==

[email protected].3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.3.tgz#93c1cf0575daf56e7120bab5c8c448b0809d0d74"
integrity sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg==
[email protected].4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.4.tgz#810cd0d90cc4995c26395d2aa4cfa4037ebdf061"
integrity sha512-hEzjY+x9u9hPmBom9IIAqdJCwNLax+xrPb51vEPpERoFlIxgmZcHzsT5jKG06nvInKOBGvReAVz80Umed5CczQ==

istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0:
version "3.2.2"
Expand Down Expand Up @@ -4858,18 +4858,18 @@ vary@^1, vary@~1.1.2:
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==

viem@^2.9.32:
version "2.9.32"
resolved "https://registry.yarnpkg.com/viem/-/viem-2.9.32.tgz#7270beb447d0df5185030172403a67334cb99970"
integrity sha512-V2K1kkR+L/JZ1be/3NTsqLhN7BsMXXTTFOH3/LyEALbL8gln7QCHvmI942VbY9l5eYYH1EQ90vwKh24TqDd9gw==
viem@^2.10.9:
version "2.10.9"
resolved "https://registry.yarnpkg.com/viem/-/viem-2.10.9.tgz#2ccd69cb073b547507ea86c42c122daa3128af55"
integrity sha512-XsbEXhOcmQOkI80zDLW0EdksimNuYTS61HZ03vQYpHoug7gwVHDQ83nY+nuyT7punuFx0fmRG6+HZg3yVQhptQ==
dependencies:
"@adraffy/ens-normalize" "1.10.0"
"@noble/curves" "1.2.0"
"@noble/hashes" "1.3.2"
"@scure/bip32" "1.3.2"
"@scure/bip39" "1.2.1"
abitype "1.0.0"
isows "1.0.3"
isows "1.0.4"
ws "8.13.0"

walker@^1.0.8:
Expand Down

0 comments on commit e152187

Please sign in to comment.